Author Topic: why cannot use 'loop' as label name?  (Read 12897 times)

nobody

  • Guest
why cannot use 'loop' as label name?
« 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?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: why cannot use 'loop' as label name?
« Reply #1 on: September 19, 2005, 03:59:49 AM »
"loop" is an instruction. Call your label "loop_top" or something.

Best,
Frank

nobody

  • Guest
Re: why cannot use 'loop' as label name?
« Reply #2 on: September 19, 2005, 07:26:58 AM »
I see, thanks!