pokecrystal/home/sprite_anims.asm

32 lines
446 B
NASM
Raw Normal View History

InitSpriteAnimStruct::
ld [wSpriteAnimIDBuffer], a
ldh a, [hROMBank]
push af
ld a, BANK(_InitSpriteAnimStruct)
rst Bankswitch
ld a, [wSpriteAnimIDBuffer]
call _InitSpriteAnimStruct
pop af
rst Bankswitch
ret
2018-06-24 14:09:41 +00:00
ReinitSpriteAnimFrame::
ld [wSpriteAnimIDBuffer], a
ldh a, [hROMBank]
push af
ld a, BANK(_ReinitSpriteAnimFrame)
rst Bankswitch
ld a, [wSpriteAnimIDBuffer]
call _ReinitSpriteAnimFrame
pop af
rst Bankswitch
ret