Go to most recent revision | 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 0x800011 8000 ASSERT 2 == $$ ; slot 2 should be at default page 212 800013 8000 lua14 8000 ~ assert(not sj.set_slot(4))lua_set_slot.asm(14): error: [LUA] sj.set_slot: Slot number must be in range 0..315 8000 endlua16 800017 8000 lua18 8000 ~ assert(not sj.set_slot(-1))lua_set_slot.asm(18): error: [LUA] sj.set_slot: Slot number must be in range 0..319 8000 endlua20 800021 8000 lua allpass22 8000 ~ assert(sj.set_slot(2))23 8000 endlua24 800025 8000 PAGE 626 8000 ASSERT 6 == $$ ; slot 2 should be active by lua script => page 6 there27 800028 8000 lua pass3 ; wrong arguments29 8000 ~ sj.set_slot(1, 2)lua_set_slot.asm(29): error: [LUA] error in function 'set_slot'.argument #2 is 'number'; '[no object]' expected.30 8000 endlua31 8000# file closed: lua_set_slot.asmValue Label------ - -----------------------------------------------------------