Re: Problem with Function Call with NASM



ArarghMail807NOSPAM wrote:

Do you know how I can receive better error reporting advice from
NASM? I would have expected a warning.
No. I would have, also. Maybe NASM keeps them in different
namespaces.


It sort of does (except for labels without preceeding colon), mainly to avoid the constant breakage when new instructions are added, especially common words like "pause".

If you are *deliberately* using a keyword as a label, you should prefix it with a $ sign.

-hpa

.



Relevant Pages

  • Re: Nasm labels
    ... I'm using nasm and I've got a strange problems with labels. ... jmp .toto ... But during the assembling I've got this errors: ...
    (comp.lang.asm.x86)
  • Re: Another problem
    ... Is org 0x500 right for this, or would you want org 0? ... One "gotcha" with using multiple sections is that "label2 - label1" needs both labels in the same section. ... So Mike offered to redo it... ... Still had a couple unforseen glitches - one version made "org" signed, so it couldn't be over 2G or Nasm barfed. ...
    (alt.lang.asm)
  • Re: Nasm labels
    ... jmp .toto ... Nasm versions 0.98.xx do not require a colon on labels. ...
    (comp.lang.asm.x86)
  • Re: Another problem
    ... or would you want org 0? ... is that "label2 - label1" needs both labels in the same section. ... So Mike offered to redo it... ... so it couldn't be over 2G or Nasm barfed. ...
    (alt.lang.asm)
  • Re: Using Structures to write Readable and Maintainable Assembly
    ... but this is a very logical implementation in NASM. ... > I don't know much about NASM, but I assume it is treating the struc ... > Is this about right (if I got the NASM syntax wrong, ... Actually, they're labels that evaluate to those values, not "%defines" ...
    (alt.lang.asm)