?login_element?

Subversion Repositories NedoOS

Rev

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

  1.     -- LUA includes are included only in PASS1, so they can't basically emit code directly
  2.     -- but they can for example define functions, which will be used to emit code in asm.
  3.     function inc_ld_local(reg, val)
  4.         instruction = 'LD '..reg..','..val..' ; function only in local include'
  5.         -- will emit 1, 2 and 3 instructions per "pass", to make assembling fail.
  6.         for i=1,pass do _pc(instruction) end
  7.     end
  8.  
  9.     function inc_ld_system(reg, val)
  10.         instruction = 'LD '..reg..','..val..' ; overloaded funcion (local variant)'
  11.         _pc(instruction)
  12.     end
  13.