diff options
Diffstat (limited to 'home/battle.asm')
-rw-r--r-- | home/battle.asm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/home/battle.asm b/home/battle.asm index 7f2e8bfdd..fff6b7d42 100644 --- a/home/battle.asm +++ b/home/battle.asm @@ -224,3 +224,22 @@ GetBattleAnimByte:: ld a, [wBattleAnimByte] ret + +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 |