Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: Undefined GLOBAL label
#1
Looking over an old file of mine that once worked I'm now getting Error: Undefined GLOBAL label . each one is going to a fastcall.

ie

        ld hl, lineMSG
        ld bc, end1-lineMSG
        call myPrint42

calling 

SUB fastcall myPrint42()
ASM
myPrint42:
    push    af
    push    ix
    push    hl
    ld    ix, PRINT42
    CALL    IXCALL
    pop    hl
    pop    ix
    pop    af
    ret
END ASM
END SUB

gives me Error: Undefined GLOBAL label ".myPrint42"

any help please....
I'm always on the chat or facebook.
Reply
#2
I've had something similar - a label in a SUB, which was working, but no longer is - with that same error - I ended up changing the label to a line number, which worked as expected, as I wasn't using it in anything important I just assumed something had change that I'd missed regarding labels, as other labels seemed to be working.
Reply
#3
This is something that should work. But I need to examine it: labels within ASM context are supposedly to be global, and the function does not start a new namespace.
---
Boriel
Reply
#4
You gave me help on telegram for this.
I'm always on the chat or facebook.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)