?login_element?

Subversion Repositories NedoOS

Rev

Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download

  1.     DEVICE ZXSPECTRUM48
  2.     ORG 0x4443
  3. test:   DEFW 0x4241
  4.     OUTPUT "lua_get_word.bin"
  5.     LUA ALLPASS
  6.         _pc("dw "..sj.get_word(_c("test"))..", ".._c("test"))
  7.         _pc("dw "..sj.get_word(0x4443)..", "..0x4443)
  8.     ENDLUA
  9.  
  10.     LUA ALLPASS
  11.         x = _c("test + ~ ")    -- invalid syntax for expression evaluation, returns 0
  12.         _pc("db 'e'+"..x)
  13.     ENDLUA
  14.  
  15.     LUA pass3 ; wrong arguments
  16.         sj.get_word(0x1234, 2)  -- not reported since Lua5.4 and LuaBridge 2.6 integration :(
  17.     ENDLUA
  18.  
  19.     ; some extra error specific to get word and test coverage
  20.     LUA PASS3
  21.         sj.get_word(0xFFFF)     -- invalid address
  22.         sj.get_word()           -- missing argument
  23.     ENDLUA
  24.