NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on September 19, 2005, 03:51:28 AM

Title: why cannot use 'loop' as label name?
Post by: nobody on September 19, 2005, 03:51:28 AM
eg:

loop:
    inc ax
    jmp loop

>nasm test.asm
test.asm:1: error: expression syntax error
test.asm:3: error: expression syntax error

If  loop a remained key word of nasm?
Title: Re: why cannot use 'loop' as label name?
Post by: Frank Kotler on September 19, 2005, 03:59:49 AM
"loop" is an instruction. Call your label "loop_top" or something.

Best,
Frank
Title: Re: why cannot use 'loop' as label name?
Post by: nobody on September 19, 2005, 07:26:58 AM
I see, thanks!