?login_element?

Subversion Repositories NedoOS

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  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)
  17.     ENDLUA
  18.