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