mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-04-26 08:13:44 -05:00
Some checks failed
CI / build (push) Has been cancelled
* Partially decompiled banks $10 and $23 * Couple minor tweaks * Decompiled mon menu icon-related functions --------- Co-authored-by: vulcandth <vulcandth@gmail.com>
39 lines
619 B
NASM
39 lines
619 B
NASM
; Battle and sprite OAM animations
|
|
|
|
MACRO oamframe
|
|
db \1 ; duration
|
|
DEF x = \2
|
|
assert !(x & (1 << (OAM_X_FLIP + 1) | 1 << (OAM_Y_FLIP + 1))), \
|
|
"oamframe duration overflows into X/Y flip bits"
|
|
if _NARG > 2
|
|
rept _NARG - 2
|
|
DEF x |= 1 << (\3 + 1)
|
|
shift
|
|
endr
|
|
endc
|
|
db x ; flags
|
|
ENDM
|
|
|
|
const_def -1, -1
|
|
|
|
const oamend_command ; $ff
|
|
MACRO oamend
|
|
db oamend_command
|
|
ENDM
|
|
|
|
const oamrestart_command ; $fe
|
|
MACRO oamrestart
|
|
db oamrestart_command
|
|
ENDM
|
|
|
|
const oamwait_command ; $fd
|
|
MACRO oamwait
|
|
db oamwait_command
|
|
db \1 ; frames
|
|
ENDM
|
|
|
|
const oamdelete_command ; $fc
|
|
MACRO oamdelete
|
|
db oamdelete_command
|
|
ENDM
|