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
|
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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user