mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
0d81f1c470
These were the wrong way around, as the function in home should not be prefixed
51 lines
817 B
NASM
51 lines
817 B
NASM
PushLYOverrides::
|
|
ldh 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
|
|
|
|
InitSpriteAnimStruct::
|
|
ld [wSpriteAnimIDBuffer], a
|
|
ldh a, [hROMBank]
|
|
push af
|
|
|
|
ld a, BANK(_InitSpriteAnimStruct)
|
|
rst Bankswitch
|
|
ld a, [wSpriteAnimIDBuffer]
|
|
|
|
call _InitSpriteAnimStruct
|
|
|
|
pop af
|
|
rst Bankswitch
|
|
|
|
ret
|
|
|
|
ReinitSpriteAnimFrame::
|
|
ld [wSpriteAnimIDBuffer], a
|
|
ldh a, [hROMBank]
|
|
push af
|
|
|
|
ld a, BANK(_ReinitSpriteAnimFrame)
|
|
rst Bankswitch
|
|
ld a, [wSpriteAnimIDBuffer]
|
|
|
|
call _ReinitSpriteAnimFrame
|
|
|
|
pop af
|
|
rst Bankswitch
|
|
|
|
ret
|