2018-06-24 14:09:41 +00:00
|
|
|
PushLYOverrides::
|
2018-04-05 04:35:14 +00:00
|
|
|
ld a, [hLCDCPointer]
|
|
|
|
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
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
_InitSpriteAnimStruct::
|
2018-04-05 04:35:14 +00:00
|
|
|
ld [wSpriteAnimIDBuffer], a
|
|
|
|
ld 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::
|
2018-04-05 04:35:14 +00:00
|
|
|
ld [wSpriteAnimIDBuffer], a
|
|
|
|
ld a, [hROMBank]
|
|
|
|
push af
|
|
|
|
|
|
|
|
ld a, BANK(_ReinitSpriteAnimFrame)
|
|
|
|
rst Bankswitch
|
|
|
|
ld a, [wSpriteAnimIDBuffer]
|
|
|
|
|
|
|
|
call _ReinitSpriteAnimFrame
|
|
|
|
|
|
|
|
pop af
|
|
|
|
rst Bankswitch
|
|
|
|
|
|
|
|
ret
|