2018-06-24 07:09:41 -07:00
|
|
|
PushLYOverrides::
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [hLCDCPointer]
|
2018-04-04 21:35:14 -07:00
|
|
|
and a
|
|
|
|
ret z
|
|
|
|
|
|
|
|
ld a, LOW(wLYOverridesBackup)
|
|
|
|
ld [wRequested2bppSource], a
|
|
|
|
ld a, HIGH(wLYOverridesBackup)
|
|
|
|
ld [wRequested2bppSource + 1], a
|
|
|
|
|
|
|
|
ld a, LOW(wLYOverrides)
|
|
|
|
ld [wRequested2bppDest], a
|
|
|
|
ld a, HIGH(wLYOverrides)
|
|
|
|
ld [wRequested2bppDest + 1], a
|
|
|
|
|
|
|
|
ld a, (wLYOverridesEnd - wLYOverrides) / 16
|
|
|
|
ld [wRequested2bpp], a
|
|
|
|
ret
|
|
|
|
|
2020-02-11 04:42:36 -08:00
|
|
|
InitSpriteAnimStruct::
|
2018-04-04 21:35:14 -07:00
|
|
|
ld [wSpriteAnimIDBuffer], a
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [hROMBank]
|
2018-04-04 21:35:14 -07:00
|
|
|
push af
|
|
|
|
|
2020-02-11 04:42:36 -08:00
|
|
|
ld a, BANK(_InitSpriteAnimStruct)
|
2018-04-04 21:35:14 -07:00
|
|
|
rst Bankswitch
|
|
|
|
ld a, [wSpriteAnimIDBuffer]
|
|
|
|
|
2020-02-11 04:42:36 -08:00
|
|
|
call _InitSpriteAnimStruct
|
2018-04-04 21:35:14 -07:00
|
|
|
|
|
|
|
pop af
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
ReinitSpriteAnimFrame::
|
2018-04-04 21:35:14 -07:00
|
|
|
ld [wSpriteAnimIDBuffer], a
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [hROMBank]
|
2018-04-04 21:35:14 -07:00
|
|
|
push af
|
|
|
|
|
|
|
|
ld a, BANK(_ReinitSpriteAnimFrame)
|
|
|
|
rst Bankswitch
|
|
|
|
ld a, [wSpriteAnimIDBuffer]
|
|
|
|
|
|
|
|
call _ReinitSpriteAnimFrame
|
|
|
|
|
|
|
|
pop af
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
ret
|