Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: predefined_counter.asm1 0000 00 DB 02 00013 0001 TestLabel__COUNTER__:4 0001 ; ^^ does NOT work, because "_" at beginning of __COUNTER__5 0001 ; prevents sub-word substitution = TODO for sjasmplus v2.x6 00017 0001 LUA ALLPASS ; as usually, lua for the rescue8 0001 ~ sj.insert_label("lua_label_" .. sj.get_define("__COUNTER__"), sj.current_address)9 0001 ~ sj.add_byte(sj.get_define("__COUNTER__"))10 0001 ~ sj.insert_label("lua_label_" .. sj.get_define("__COUNTER__"), sj.current_address)11 0001 ~ sj.add_byte(sj.get_define("__COUNTER__"))12 0001 ~ sj.insert_label("lua_label_" .. sj.get_define("__COUNTER__"), sj.current_address)13 0001 ~ sj.add_byte(sj.get_define("__COUNTER__"))14 0001 02 04 06 ENDLUA15 000416 0004 07 DB 717 0005# file closed: predefined_counter.asmValue Label------ - -----------------------------------------------------------0x0001 X lua_label_10x0002 X lua_label_30x0003 X lua_label_50x0001 X TestLabel__COUNTER__