diff options
author | yenatch <yenatch@gmail.com> | 2014-06-04 17:23:57 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-06-04 17:23:57 -0400 |
commit | dfe221b9d15bd8ff90253d52796d86e5dfd4c222 (patch) | |
tree | a75de4f8c9cb6cb9094d7e616a072912f254d937 /macros.asm | |
parent | 1f3091903752841a00f86141543ec5f42c992ec7 (diff) | |
parent | 55972bfb83780f597ab30fd1c42475a194f3f0d1 (diff) |
Merge pull request #254 from yenatch/master
Better compression, macro cleanup, use MAX_LEVEL everywhere.
- move stats -> data (like pokered).
- remove FuncCoord and use {hl,bc,de}coord for all tilemap loads.
- use MAX_LEVEL where needed.
- update pokemontools for better compression, and recomment related code.
- growth rate constants
Diffstat (limited to 'macros.asm')
-rw-r--r-- | macros.asm | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/macros.asm b/macros.asm index a9948ae6a..aa8876055 100644 --- a/macros.asm +++ b/macros.asm @@ -117,24 +117,16 @@ A# EQU 11 B_ EQU 12 -; It's better to use *coord than FuncCoord. -FuncCoord: MACRO -Coord = $c4a0 + 20 * \2 + \1 - ENDM - bccoord: MACRO - FuncCoord \1, \2 - ld bc, Coord + ld bc, TileMap + SCREEN_WIDTH * \2 + \1 ENDM decoord: MACRO - FuncCoord \1, \2 - ld de, Coord + ld de, TileMap + SCREEN_WIDTH * \2 + \1 ENDM hlcoord: MACRO - FuncCoord \1, \2 - ld hl, Coord + ld hl, TileMap + SCREEN_WIDTH * \2 + \1 ENDM |