Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: lua_set_slot.asm1 0000 DEVICE none2 00003 0000 lua4 0000 ~ -- warning because no device is set5 0000 ~ assert(not sj.set_slot(1))lua_set_slot.asm(5): warning: [LUA] sj.set_slot: only allowed in real device emulation mode (See DEVICE)6 0000 endlua7 00008 0000 DEVICE zxspectrum1289 000010 0000 ORG 0xC00011 C000 ASSERT 0 == $$ ; slot 3 should be at default page 012 C000 ORG 0x800013 8000 ASSERT 2 == $$ ; slot 2 should be at default page 214 800015 8000 lua16 8000 ~ assert(not sj.set_slot(4))lua_set_slot.asm(16): error: [LUA] sj.set_slot: Slot number must be in range 0..317 8000 endlua18 800019 8000 lua20 8000 ~ assert(not sj.set_slot(-1))lua_set_slot.asm(20): error: [LUA] sj.set_slot: Slot number must be in range 0..321 8000 endlua22 800023 8000 lua allpass24 8000 ~ assert(sj.set_slot(2))25 8000 endlua26 800027 8000 PAGE 628 8000 ASSERT 6 == $$ ; slot 2 should be active by lua script => page 6 there29 800030 8000 ; test the address-based slot selecting31 8000 lua allpass32 8000 ~ assert(sj.set_slot(0xC000))33 8000 endlua34 800035 8000 PAGE 536 8000 ORG 0xC00037 C000 ASSERT 5 == $$ ; slot 3 should be active by lua script => page 5 there38 C00039 C000 lua pass3 ; wrong arguments40 C000 ~ sj.set_slot(1, 2) -- not reported since Lua5.4 and LuaBridge 2.6 integration :(41 C000 ~ sj.set_slot()lua_set_slot.asm(41): error: [LUA] bad argument #1 to 'set_slot' (number expected, got no value)42 C000 endlua43 C000# file closed: lua_set_slot.asmValue Label------ - -----------------------------------------------------------