NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on January 10, 2006, 06:01:17 PM

Title: line continuation
Post by: nobody on January 10, 2006, 06:01:17 PM
The documentation that I have says that backslash(\) is the line continuation character.

I would assume that if that is the case then I should be able to do the following:
      mov    eax, \
             prompt1



But I get an expression syntax error!
Any suggestions?
Title: Re: line continuation
Post by: Frank Kotler on January 10, 2006, 06:37:54 PM
Works fine for me. Is the '\' the *very* last thing on the line? Spaces or tabs after it won't work.

Best,
Frank
Title: Re: line continuation
Post by: nobody on January 10, 2006, 06:39:05 PM
Ensure that the backslash is the last
character on its line, i.e. that it is
not followed by whitespaces or tabs.
Title: Re: line continuation
Post by: nobody on January 10, 2006, 06:57:54 PM
It is the last thing on the line not counting the newline character.
I am running on Linux use ELF with i686 architecture.  Other suggestions?