?login_element?

Subversion Repositories NedoOS

Rev

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

  1.     MACRO setlabel1 name, val
  2. @name = val
  3.         ENDM
  4.  
  5.         MACRO setlabel2 name, val
  6. name = val
  7. @m.mac_lbl3 = 'ee'
  8.         ENDM
  9.  
  10.         MODULE m
  11.  
  12. @m.label1 = 'aa'
  13. m.label2 = 'bb'
  14.         setlabel1 m.mac_lbl1, 'cc'
  15.         setlabel2 m.mac_lbl2, 'dd'
  16.  
  17.         ENDMODULE
  18.  
  19.         OUTPUT Issue44_global_labels_in_macros.bin
  20.         ; verify the label names are as expected
  21.     dw  @m.label1, @m.m.label2, @m.mac_lbl1, @m.m.mac_lbl2, @m.mac_lbl3
  22.