?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1.     DB  __COUNTER__
  2.  
  3. TestLabel__COUNTER__:
  4.     ; ^^ does NOT work, because "_" at beginning of __COUNTER__
  5.     ; prevents sub-word substitution = TODO for sjasmplus v2.x
  6.  
  7.     LUA ALLPASS     ; as usually, lua for the rescue
  8.         sj.insert_label("lua_label_" .. sj.get_define("__COUNTER__"), sj.current_address)
  9.         sj.add_byte(sj.get_define("__COUNTER__"))
  10.         sj.insert_label("lua_label_" .. sj.get_define("__COUNTER__"), sj.current_address)
  11.         sj.add_byte(sj.get_define("__COUNTER__"))
  12.         sj.insert_label("lua_label_" .. sj.get_define("__COUNTER__"), sj.current_address)
  13.         sj.add_byte(sj.get_define("__COUNTER__"))
  14.     ENDLUA
  15.  
  16.     DB  __COUNTER__
  17.