mirror of
https://github.com/thornAvery/jep-hack.git
synced 2025-09-16 18:20:50 +12:00
20 lines
292 B
NASM
20 lines
292 B
NASM
DisableSpriteUpdates::
|
|
xor a
|
|
ldh [hMapAnims], a
|
|
ld a, [wVramState]
|
|
res 0, a
|
|
ld [wVramState], a
|
|
xor a
|
|
ld [wSpriteUpdatesEnabled], a
|
|
ret
|
|
|
|
EnableSpriteUpdates::
|
|
ld a, $1
|
|
ld [wSpriteUpdatesEnabled], a
|
|
ld a, [wVramState]
|
|
set 0, a
|
|
ld [wVramState], a
|
|
ld a, $1
|
|
ldh [hMapAnims], a
|
|
ret
|