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 ret
PokeBallTransition: PokeBallTransition:
transition_row: MACRO ; 16x16 overlay of a Poke Ball
db HIGH(\1), LOW(\1)
ENDM
pusho pusho
opt b.X ; . = 0, X = 1 opt b.X ; . = 0, X = 1
transition_row %......XXXX...... bigdw %......XXXX......
transition_row %....XXXXXXXX.... bigdw %....XXXXXXXX....
transition_row %..XXXX....XXXX.. bigdw %..XXXX....XXXX..
transition_row %..XX........XX.. bigdw %..XX........XX..
transition_row %.XX..........XX. bigdw %.XX..........XX.
transition_row %.XX...XXXX...XX. bigdw %.XX...XXXX...XX.
transition_row %XX...XX..XX...XX bigdw %XX...XX..XX...XX
transition_row %XXXXXX....XXXXXX bigdw %XXXXXX....XXXXXX
transition_row %XXXXXX....XXXXXX bigdw %XXXXXX....XXXXXX
transition_row %XX...XX..XX...XX bigdw %XX...XX..XX...XX
transition_row %.XX...XXXX...XX. bigdw %.XX...XXXX...XX.
transition_row %.XX..........XX. bigdw %.XX..........XX.
transition_row %..XX........XX.. bigdw %..XX........XX..
transition_row %..XXXX....XXXX.. bigdw %..XXXX....XXXX..
transition_row %....XXXXXXXX.... bigdw %....XXXXXXXX....
transition_row %......XXXX...... bigdw %......XXXX......
popo popo
WipeLYOverrides: WipeLYOverrides:

View File

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