Author Topic: Nasm omits line after backslash  (Read 15893 times)

nobody

  • Guest
Nasm omits line after backslash
« 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

nobody

  • Guest
Re: Nasm omits line after backslash
« Reply #1 on: March 04, 2006, 06:11:42 AM »
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.

nobody

  • Guest
Re: Nasm omits line after backslash
« Reply #2 on: March 04, 2006, 08:40:34 AM »
It's not a bug, it's a line-continuation character.

mov ax, 3 ;\
this line is part of the comment

Best,
Frank