Remove the FuncCoord macro.

Variables can't use labels, so a macro that doesn't use variables is better suited.
This commit is contained in:
yenatch 2014-06-04 01:18:54 -07:00
parent fd8804472d
commit 8d2b9f3fcb
2 changed files with 4 additions and 13 deletions

View File

@ -117,24 +117,16 @@ A# EQU 11
B_ EQU 12 B_ EQU 12
; It's better to use *coord than FuncCoord.
FuncCoord: MACRO
Coord = $c4a0 + 20 * \2 + \1
ENDM
bccoord: MACRO bccoord: MACRO
FuncCoord \1, \2 ld bc, TileMap + SCREEN_WIDTH * \2 + \1
ld bc, Coord
ENDM ENDM
decoord: MACRO decoord: MACRO
FuncCoord \1, \2 ld de, TileMap + SCREEN_WIDTH * \2 + \1
ld de, Coord
ENDM ENDM
hlcoord: MACRO hlcoord: MACRO
FuncCoord \1, \2 ld hl, TileMap + SCREEN_WIDTH * \2 + \1
ld hl, Coord
ENDM ENDM

View File

@ -75181,8 +75181,7 @@ Unknown_8c490: ; 8c490
macro_8c490: MACRO macro_8c490: MACRO
db \1 db \1
dw \2 dw \2
FuncCoord \3, \4 dw TileMap + SCREEN_WIDTH * \4 + \3
dw Coord
ENDM ENDM
macro_8c490 0, Unknown_8c538, 1, 6 macro_8c490 0, Unknown_8c538, 1, 6