Use existing bigdw macro

This commit is contained in:
Rangi 2018-09-09 18:25:43 -04:00
parent 3241c9cfaa
commit f9cf53ecba
2 changed files with 18 additions and 20 deletions

View File

@ -713,27 +713,25 @@ INCLUDE "gfx/overworld/trainer_battle_nite.pal"
ret
PokeBallTransition:
transition_row: MACRO
db HIGH(\1), LOW(\1)
ENDM
; 16x16 overlay of a Poke Ball
pusho
opt b.X ; . = 0, X = 1
transition_row %......XXXX......
transition_row %....XXXXXXXX....
transition_row %..XXXX....XXXX..
transition_row %..XX........XX..
transition_row %.XX..........XX.
transition_row %.XX...XXXX...XX.
transition_row %XX...XX..XX...XX
transition_row %XXXXXX....XXXXXX
transition_row %XXXXXX....XXXXXX
transition_row %XX...XX..XX...XX
transition_row %.XX...XXXX...XX.
transition_row %.XX..........XX.
transition_row %..XX........XX..
transition_row %..XXXX....XXXX..
transition_row %....XXXXXXXX....
transition_row %......XXXX......
bigdw %......XXXX......
bigdw %....XXXXXXXX....
bigdw %..XXXX....XXXX..
bigdw %..XX........XX..
bigdw %.XX..........XX.
bigdw %.XX...XXXX...XX.
bigdw %XX...XX..XX...XX
bigdw %XXXXXX....XXXXXX
bigdw %XXXXXX....XXXXXX
bigdw %XX...XX..XX...XX
bigdw %.XX...XXXX...XX.
bigdw %.XX..........XX.
bigdw %..XX........XX..
bigdw %..XXXX....XXXX..
bigdw %....XXXXXXXX....
bigdw %......XXXX......
popo
WipeLYOverrides:

View File

@ -64,7 +64,7 @@ dd: MACRO ; four-byte (big-endian)
ENDM
bigdw: MACRO ; big-endian word
dx 2, \1
dx 2, \1 ; db HIGH(\1), LOW(\1)
ENDM
dba: MACRO ; dbw bank, address