?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. mac1    MACRO x
  2.             ld c,x
  3. label_x:    dec c
  4.             jr nz,label_x
  5.         ENDM
  6.  
  7.     DEFINE y 34
  8.  
  9.     ; by default the substitions work also on subwords
  10.     mac1 12         ; expected "ld c,12" and "label_12"
  11.     ld b,y          ; expected "ld b,34" and "label_34"
  12. label_y:
  13.     dec b
  14.     jr nz,label_y
  15.  
  16.     ; switch sub-word substitions OFF
  17.     OPT --syntax=s
  18.     mac1 23         ; expected "ld c,23" and "label_x"
  19.     ld b,y          ; expected "ld b,34" and "label_y"
  20. label_y:
  21.     dec b
  22.     jr nz,label_y
  23.