?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1.     MODULE xxx
  2. Kip:                ; label xxx.Kip
  3.     ld  hl,@Kip     ; global Kip
  4.     ld  hl,@Kop     ; global Kop
  5.     ld  hl,Kop      ; xxx.Kop
  6. Kop:                ; label xxx.Kop
  7.     ld  hl,Kip      ; xxx.Kip
  8.     ld  hl,yyy.Kip  ; yyy.Kip
  9.     ld  hl,nested.Kip   ; xxx.nested.Kip
  10.         MODULE nested
  11. Kip:        ret     ; label xxx.nested.Kip
  12.         ENDMODULE
  13.     ENDMODULE
  14.  
  15.     MODULE yyy
  16. Kip:    ret         ; label yyy.Kip
  17. @Kop:   ret         ; label Kop (global one, no module prefix)
  18. @xxx.Kop: nop       ; ERROR: duplicate: label xxx.Kop
  19.     ENDMODULE
  20.  
  21. Kip     ret         ; global label Kip
  22.  
  23.     ; invalid since v1.14.0
  24.         MODULE older.version
  25. fn1:        ret        ; final label: @older.version.fn1
  26.         ENDMODULE
  27.     ; can be replaced in v1.14.0 with
  28.         MODULE new
  29.             MODULE version
  30. fn1:            ret    ; final label: @new.version.fn1
  31.             ENDMODULE
  32.         ENDMODULE
  33.     ; or you can just rename "older.version" to something like "older_version" instead
  34.  
  35. Kep:    ; "Kep" label (global one), and also works as "non-local" prefix for local labels
  36.     MODULE zzz
  37. .local: ; in v1.14.0 this will be "zzz._.local" label, previously it was "zzz.Kep.local"
  38. Kup:    ; this is "zzz.Kup", but also defines "non-local" prefix as "Kup"
  39. .local  ; this is "zzz.Kup.local"
  40.     ENDMODULE
  41. .local: ; in v1.14.0 this will be "_.local" label, previously it was "Kup.local"
  42.