diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-02-03 01:46:07 -0800 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-02-03 01:46:07 -0800 |
commit | 016174486ff0bf2d4c8365df205daa4f90ed2f4e (patch) | |
tree | 3bc75d3b93c4e2fe62c123162b9ddfd61f749abc /constants.asm | |
parent | f6db9f965ae2bf175a2a96d68bfa4247ab7651a1 (diff) | |
parent | 7df002c3e20f1b728b1d29a877c3731d4867f502 (diff) |
Merge pull request #98 from Sanky/master
Assorted menu code, will probably regret this.
Diffstat (limited to 'constants.asm')
-rw-r--r-- | constants.asm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/constants.asm b/constants.asm index ce9e5ffe2..3694ee5a1 100644 --- a/constants.asm +++ b/constants.asm @@ -8,6 +8,11 @@ dwb: MACRO db \2 ENDM +dbw: MACRO + db \1 + dw \2 + ENDM + dn: MACRO db \1 << 4 + \2 ENDM @@ -48,6 +53,25 @@ note: MACRO db \1 ENDM +; It's better to use *coord than FuncCoord. +FuncCoord: MACRO +Coord = $c4a0 + 20 * \2 + \1 + ENDM + +bccoord: MACRO + FuncCoord \1, \2 + ld bc, Coord + ENDM + +decoord: MACRO + FuncCoord \1, \2 + ld de, Coord + ENDM + +hlcoord: MACRO + FuncCoord \1, \2 + ld hl, Coord + ENDM BULBASAUR EQU 1 IVYSAUR EQU 2 |