2020-02-11 13:42:36 +01:00
|
|
|
InitSpriteAnimStruct::
|
2018-04-05 00:35:14 -04:00
|
|
|
ld [wSpriteAnimIDBuffer], a
|
2018-08-25 14:28:22 -04:00
|
|
|
ldh a, [hROMBank]
|
2018-04-05 00:35:14 -04:00
|
|
|
push af
|
|
|
|
|
2020-02-11 13:42:36 +01:00
|
|
|
ld a, BANK(_InitSpriteAnimStruct)
|
2018-04-05 00:35:14 -04:00
|
|
|
rst Bankswitch
|
|
|
|
ld a, [wSpriteAnimIDBuffer]
|
|
|
|
|
2020-02-11 13:42:36 +01:00
|
|
|
call _InitSpriteAnimStruct
|
2018-04-05 00:35:14 -04:00
|
|
|
|
|
|
|
pop af
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
ret
|
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
ReinitSpriteAnimFrame::
|
2018-04-05 00:35:14 -04:00
|
|
|
ld [wSpriteAnimIDBuffer], a
|
2018-08-25 14:28:22 -04:00
|
|
|
ldh a, [hROMBank]
|
2018-04-05 00:35:14 -04:00
|
|
|
push af
|
|
|
|
|
|
|
|
ld a, BANK(_ReinitSpriteAnimFrame)
|
|
|
|
rst Bankswitch
|
|
|
|
ld a, [wSpriteAnimIDBuffer]
|
|
|
|
|
|
|
|
call _ReinitSpriteAnimFrame
|
|
|
|
|
|
|
|
pop af
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
ret
|