?login_element?

Subversion Repositories NedoOS

Rev

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

  1.     ;; based on real bug (already fixed in previous commit)
  2.     OUTPUT macro_args2.bin
  3.  
  4.     ;; defines to require multi define-substitution
  5.     DEFINE _zzzzz _zzzz
  6.     DEFINE _zzzz _zzz
  7.     DEFINE _zzz _zz
  8.     DEFINE _zz _z
  9.     DEFINE _z hl
  10.  
  11.     MACRO ccc cond?, val1?, val2?
  12.         IF cond?
  13.             ld  _zzzzz,val1? | #2000
  14.         ELSE
  15.             ld  _zzzzz,val2? | #2000
  16.         ENDIF
  17.     ENDM
  18.  
  19.     ;; the angle-brackets should be used as delimiters only at begin/end positions of argument
  20. COND_VAL=6
  21.     DUP     4
  22.     ccc     COND_VAL < 8, #44 << 4, #5500 >> 4  ; these <> are regular less-than and shifts
  23. COND_VAL=COND_VAL+1
  24.     EDUP
  25.