neilsf / XC-BASIC

A compiling BASIC dialect for the Commodore-64
https://xc-basic.net/
MIT License
74 stars 15 forks source link

PROCs don't support labels #44

Closed oliverhermanni closed 5 years ago

oliverhermanni commented 5 years ago

Although the documentation states that labels can be global or local following code does not work. During compile it reports "ERROR: Label loopup does not exist in line 76"

proc test
    i = 0
loopup:
    inc i
    if i < 8 then goto loopup
endproc
neilsf commented 5 years ago

This is a major failure, I'll fix ASAP.

oliverhermanni commented 5 years ago

Thanks. With that I can improve my grid walking proc even more

neilsf commented 5 years ago

Fixed now. Please try again with the latest binary.

oliverhermanni commented 5 years ago

Although it's closed: Works fine now. Had another nasty bug in my code, which I had to hunt down, so I couldn't response earlier. ;)