Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download
lua_parse_line.asm(18): warning: When lua script emits machine code bytes, use "ALLPASS" modifier# file opened: lua_parse_line.asm1 00002 0000 org 0x1234 ; eol comment belong to ORG3 1234 lua allpass ; machine code needs to be emitted in *every* pass (and the same one)4 1234 ~ sj.parse_line("allpass_1: rrca") -- try without EOL comment first5 1234 ~ sj.parse_line("allpass_2: rra ; with eol comment") -- *with*6 1234 ~ sj.parse_line("allpass_3: cpl") -- *without*7 1234 ~ _pl("allpass_4: inc bc")8 1234 ~ _pl("allpass_5: inc de ; with eol comment 2")9 1234 ~ _pl("allpass_6: inc hl")10 1234 0F allpass_1: rrca10 1235 1F allpass_2: rra ; with eol comment10 1236 2F allpass_3: cpl10 1237 03 allpass_4: inc bc10 1238 13 allpass_5: inc de ; with eol comment 210 1239 23 allpass_6: inc hl10 123A endlua11 123A lua ; [pass default] == pass3 - this is not good for ASM parsing lines!12 123A ~ sj.parse_line("pass_default: rlca ; this will cause problems")13 123A ~ _pl("pass_default_2: rla ; same with _pl alias")lua_parse_line.asm(12): error: [LUA] Label not found: pass_default14 123A 07 pass_default: rlca ; this will cause problemslua_parse_line.asm(13): error: [LUA] Label not found: pass_default_214 123B 17 pass_default_2: rla ; same with _pl aliaslua_parse_line.asm(14): warning: When lua script emits machine code bytes, use "ALLPASS" modifier14 123C endlua15 123C lua pass1 ; pass1 this is also insufficient to generate valid machine code16 123C ~ sj.parse_line("pass1: daa ; will define label, but machine code will be missing")17 123C ~ _pl("pass1_2: scf ; same with _pl alias")18 123C endlua19 123C# file closed: lua_parse_line.asmValue Label------ - -----------------------------------------------------------0x1234 X allpass_10x1235 X allpass_20x1236 X allpass_30x1237 X allpass_40x1238 X allpass_50x1239 X allpass_60x123A X pass10x123B X pass1_2