diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-12-28 23:56:34 -0800 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-12-28 23:56:34 -0800 |
commit | 983ef29fd0e3645cb6335ee8bb172312790a56e2 (patch) | |
tree | 93d198b963f6142ac35a99c503cff21680065b49 /macros.asm | |
parent | 0fdbdb43a794358b5ed484114486e2992d520338 (diff) | |
parent | a8cb73b654af67bb3caad2c6d45edce7436032b1 (diff) |
Merge pull request #221 from yenatch/more-objects
analyze the bytes
Diffstat (limited to 'macros.asm')
-rw-r--r-- | macros.asm | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/macros.asm b/macros.asm index b003a3786..5497ceec2 100644 --- a/macros.asm +++ b/macros.asm @@ -36,6 +36,24 @@ callba: MACRO ; bank, address rst FarCall ENDM + +lb: MACRO ; r, hi, lo + ld \1, \2 << 8 + \3 + 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 @@ -53,7 +71,7 @@ RGB: MACRO note: MACRO - db \1 << 4 + \2 + db \1 << 4 + (\2 - 1) ENDM ; pitch |