Blame | Last modification | View Log | Download
# file opened: predefined_pass.asm1 0000 LUA PASS12 0000 ~ asmpass = 0 + sj.get_define("__PASS__")3 0000 ~ if (1 ~= asmpass) then sj.error("unexpected __PASS__ value", asmpass) end4 0000 ENDLUA5 0000 LUA PASS26 0000 ~ asmpass = 0 + sj.get_define("__PASS__")7 0000 ~ if (2 ~= asmpass) then sj.error("unexpected __PASS__ value", asmpass) end8 0000 ENDLUA9 0000 LUA PASS310 0000 ~ asmpass = 0 + sj.get_define("__PASS__")11 0000 ~ if (3 ~= asmpass) then sj.error("unexpected __PASS__ value", asmpass) end12 0000 ENDLUA13 000014 0000 ASSERT $120 == myLab ; assert is PASS315 000016 0000 IF 3 == 317 0000 myLab = myLab + $00318 0000 23 01 DW myLab19 0002 ENDIF20 0002 IF 2 == 321 0002 ~ myLab = myLab + $02022 0002 ENDIF23 0002 IF 1 == 324 0002 ~ myLab = $10025 0002 ENDIF26 000227 0002 ASSERT $123 == myLab ; assert is PASS328 0002 ; emitting machine code only in pass3 breaks the coherence of label systempredefined_pass.asm(29): warning: Label has different value in pass 3: previous value 0 not equal 229 0002 WarningOnLabelBecauseOfBreakingPassCoherence:30 0002# file closed: predefined_pass.asmValue Label------ - -----------------------------------------------------------0x0123 myLab0x0002 X WarningOnLabelBecauseOfBreakingPassCoherence