News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Divide array into increasing and decreasing subsequence without changing the ord

Started by meitargal17, February 18, 2024, 12:56:52 AM

Previous topic - Next topic

meitargal17

I'm trying to implement the above algorithm but running into issues, for some reasons it seems to fail. a file is attached with the code inside and a link too for the case its not working -

https://pastebin.com/87822PWP

NoCforMe

Just a meta-comment here: You might want to consider posting your code as a plain ASCII text file rather than a Rich Text file that requires something like Word to open (or better yet, just put it into your post using the [code]-- [/code] tags. A lot easier for us to deal with it.
Assembly language programming should be fun. That's why I do it.

mikeburr

are you trying to create a linked list..its not very clear from the rtf screed
regards mikeb

jj2007

Quote from: NoCforMe on February 18, 2024, 09:51:35 AMa Rich Text file that requires something like Word to open

M$ Word, WordPad, RichMasm. Or use the attached 2,560 byte RtfReader.

Oops, that would require you to download something - my apologies :cool:

NoCforMe

Look, pal, it isn't just me. It's a pain in the ass to have to go out of one's way just to download a stupid text file which one may have, at best, a passing interest in, so I'm not sure why you're so high-handed about this. Sheesh.

Use a goddamn plain-text file like everyone else does for code.
Assembly language programming should be fun. That's why I do it.

jj2007

Quote from: NoCforMe on February 21, 2024, 12:41:52 PMIt's a pain in the ass

It's a pain in the ass to argue with somebody who almost never downloads attachments carefully prepared by others, but spends most of his time nitpicking on working members while expecting generous help from others when his own coding efforts are concerned.

Btw if you hadn't been too lazy to download OP's rtf file and open it with a simply right-click ("Open with" definitely points you to some rtf reader on your machine), you would have discovered, surprise surprise, that OP uses GAS syntax. And that is indeed a PITA, a hundred times more severe than having to open an rtf file.

TimoVJL

Quote from: NoCforMe on February 21, 2024, 12:41:52 PMUse a goddamn plain-text file like everyone else does for code.
These days we need to handle UTF-8 text files for good reason and UNICODE is often used for resource files.

May the source be with you