NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on February 13, 2009, 03:12:42 AM

Title: command separator symbol
Post by: nobody on February 13, 2009, 03:12:42 AM
In C++, and PHP, I can have multiple commands on the same line and I can separate them using semi-colons.

I can separate commands on the same line in Visual Basic using a colon.

What can I use in NASM to separate two commands on the same line?
Title: Re: command separator symbol
Post by: Frank Kotler on February 13, 2009, 04:45:08 AM
The enter key.

Seriously, if you really want to do such a depraved thing, you can use anything you want, but you'll have to run it through a preprocessor before you feed it to Nasm.

I think I've got one for dos that replaces "//" with a CRLF. Maybe a Perl script that uses ";" to separate lines... something else - "#"? - for comments. Not too difficult to write yourself such a utility.  Makes the code harder to read and *much* harder to maintain. You do it, you deserve it!

Best,
Frank
Title: Re: command separator symbol
Post by: nobody on February 13, 2009, 06:14:32 PM
You should grab a copy of Rosasm:

http://betov.free.fr/ (http://betov.free.fr/)

It allows one to bunch-up a lot of commands onto the same line.