Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download
lua_inctext.lua(22): error: [LUA] [inc_text]: file not found: missing filelua_inctext.asm(17): ^ emitted from herelua_inctext.lua(22): error: [LUA] [inc_text]: file not found: missing filelua_inctext.asm(17): ^ emitted from here# file opened: lua_inctext.asm1 0000 ; setup Lua "inc_text" functionality2 0000 INCLUDELUA "lua_inctext.lua"3 00004 0000 OUTPUT "lua_inctext.bin"5 00006 0000 ORG 0x80007 8000 21 10 80 ld hl,Text1 ; using labels defined from the text file (included below)8 8003 11 30 80 ld de,Text29 8006 DD 21 41 80 ld ix,Text310 800A CD 59 80 call Final11 800D C3 0D 80 jp $12 801013 8010 LUA ALLPASS14 8010 ~ -- inc_text(file_name, ">>", 13) -- default values of parameters15 8010 ~ inc_text("lua_inctext/test.txt") -- test defaults16 8010 ~ inc_text("lua_inctext/test2.txt", "!!", 10) -- test non-default parameters17 8010 ~ inc_text("missing file") -- test error handling18 8010 ;; inc_text ;; file "lua_inctext/test.txt", asm_marker ">>", eol_byte 1318 8010 Text118 8010 48 65 6C 6C ; these bytes were emitted silently/externally (lua script?)18 8014 6F 21 21 0D18 8018 52 65 61 6418 801C 79 3F 0D 2218 8020 33 22 0D 3E18 8024 32 3C 0D 2718 8028 31 27 0D 4718 802C 6F 21 0D18 802F 00 DB 0 ; turn it into zero-terminated string by adding zero18 8030 Text2 ; the ASCII art begins with space, the ">>" is not marker, but data!18 8030 53 4F 53 21 ; these bytes were emitted silently/externally (lua script?)18 8034 21 21 0D 2018 8038 3E 3E 20 5C18 803C 5F 6F 5F 2F18 8040 0D18 8041 Text318 8041 47 41 4D 45 ; these bytes were emitted silently/externally (lua script?)18 8045 20 4F 56 4518 8049 52 0D 50 5218 804D 45 53 53 2018 8051 41 4E 59 2018 8055 4B 45 59 0D18 8059 Final18 805918 8059 3E 3E LD A, '>' ; binary ">>"18 805B 07 RLCA18 805C C3 59 80 JP Final18 805F 53 45 56 45 BYTE "SEVER",0,"BURAN",018 8063 52 00 42 5518 8067 52 41 4E 0018 806B ;; inc_text ;; end of file "lua_inctext/test.txt"18 806B ;; inc_text ;; file "lua_inctext/test2.txt", asm_marker "!!", eol_byte 1018 806B Test2_Text118 806B 48 65 6C 6C ; these bytes were emitted silently/externally (lua script?)18 806F 6F 21 21 0A18 8073 3E 3E 09 4418 8077 42 20 30 0A18 807B 00 DB 0 ; line above has "wrong" marker and will be added as text18 807C C3 7C 80 Test2_Final jp Test2_Final18 807F ;; inc_text ;; end of file "lua_inctext/test2.txt"lua_inctext.lua(22): error: [LUA] [inc_text]: file not found: missing filelua_inctext.asm(17): ^ emitted from here18 807F ENDLUA19 807F20 807F OUTEND# file closed: lua_inctext.asmValue Label------ - -----------------------------------------------------------0x8059 Final0x807C Test2_Final0x806B X Test2_Text10x8010 Text10x8030 Text20x8041 Text3