sannybuilder / dev

Sanny Builder Bug Tracker and Roadmap development
https://sannybuilder.com
49 stars 0 forks source link

compiler is restrictive when a label with offset 0 used in GET_LABEL_POINTER #242

Open x87 opened 1 year ago

x87 commented 1 year ago
{$CLEO .cs}

:label
0@ = Memory.GetLabelPointer(@label)    

throws error 0084 A jump to offset 0 found.

workaround: add NOP before label

{$CLEO .cs}
0000:

:label
0@ = Memory.GetLabelPointer(@label)