NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: nobody on March 04, 2006, 06:07:50 AM
-
I was wondering if anyone would be able to explain this. It seems that wherever there is a backslash NASM omits the line after it. For example in the code below NASM omits the line "mov ax,4". Is this a bug?
I am using NASM 0.98.39 on Windows XP. The following code was assembled into a .COM file.
Thank You!
org 100h
mov ax,1
mov ax,2 ;blah blah blah
mov ax,3 ;\
mov ax,4
mov ax,5 ;Comment blah blah
mov ax,6
-
The line is omitted only if there is nothing after the backslash. If there is a space or any thing else after it, it works fine.
-
It's not a bug, it's a line-continuation character.
mov ax, 3 ;\
this line is part of the comment
Best,
Frank