?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1.     DB __COUNTER__   ; DB 0
  2.     LUA ALLPASS
  3.         sj.insert_label("label_" .. sj.get_define("__COUNTER__"), sj.current_address)
  4.                 -- creates "label_1" at "$" (0x0001)
  5.         sj.insert_label("label_" .. sj.get_define("__COUNTER__"), _c("$+10"))
  6.                 -- creates "label_2" at "$+10" (0x000B)
  7.     ENDLUA
  8. label__COUNTER__: ; does *NOT* substitute in current sjasmplus, sorry
  9.     DB __COUNTER__   ; DB 3
  10.  
  11.     ; also macro arguments substitution can be used
  12.     MACRO createLabelWithSuffix label?, suffix?
  13. label?_suffix? ; define global label
  14.     ENDM
  15.     createLabelWithSuffix label, __COUNTER__    ; label_4
  16.     createLabelWithSuffix label, __COUNTER__    ; label_5
  17.