constant enumeration

This commit is contained in:
yenatch 2013-11-27 05:39:52 -05:00
parent 57736ce19c
commit 4c8737effb
1 changed files with 12 additions and 0 deletions

View File

@ -42,6 +42,18 @@ lb: MACRO ; r, hi, lo
ENDM
; Constant enumeration
const_def: MACRO
const_value SET 0
ENDM
const: MACRO
\1 EQU const_value
const_value SET const_value + 1
ENDM
TX_RAM: MACRO
db 1
dw \1