mirror of https://github.com/pret/pokecrystal.git
32 lines
422 B
NASM
32 lines
422 B
NASM
InitSpriteAnimStruct::
|
|
ld [wSpriteAnimID], a
|
|
ldh a, [hROMBank]
|
|
push af
|
|
|
|
ld a, BANK(_InitSpriteAnimStruct)
|
|
rst Bankswitch
|
|
ld a, [wSpriteAnimID]
|
|
|
|
call _InitSpriteAnimStruct
|
|
|
|
pop af
|
|
rst Bankswitch
|
|
|
|
ret
|
|
|
|
ReinitSpriteAnimFrame::
|
|
ld [wSpriteAnimID], a
|
|
ldh a, [hROMBank]
|
|
push af
|
|
|
|
ld a, BANK(_ReinitSpriteAnimFrame)
|
|
rst Bankswitch
|
|
ld a, [wSpriteAnimID]
|
|
|
|
call _ReinitSpriteAnimFrame
|
|
|
|
pop af
|
|
rst Bankswitch
|
|
|
|
ret
|