Author Topic: line continuation  (Read 17495 times)

nobody

  • Guest
line continuation
« 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?

Offline Frank Kotler

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

nobody

  • Guest
Re: line continuation
« Reply #2 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.

nobody

  • Guest
Re: line continuation
« Reply #3 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?