mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
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:
parent
fd8804472d
commit
8d2b9f3fcb
14
macros.asm
14
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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user