pokecrystal/home/sprite_updates.asm

20 lines
295 B
NASM
Raw Normal View History

DisableSpriteUpdates::
xor a
ldh [hMapAnims], a
ld a, [wVramState]
res 0, a
ld [wVramState], a
ld a, $0
ld [wSpriteUpdatesEnabled], a
ret
2018-06-24 14:09:41 +00:00
EnableSpriteUpdates::
ld a, $1
ld [wSpriteUpdatesEnabled], a
ld a, [wVramState]
set 0, a
ld [wVramState], a
ld a, $1
ldh [hMapAnims], a
ret