Author Topic: command separator symbol  (Read 8173 times)

nobody

  • Guest
command separator symbol
« 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?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: command separator symbol
« Reply #1 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

nobody

  • Guest
Re: command separator symbol
« Reply #2 on: February 13, 2009, 06:14:32 PM »
You should grab a copy of Rosasm:

http://betov.free.fr/

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