shithub: pokecrystal

ref: 89c2646ccaa2c9a0afb358c1d9738e9bb0d42c97
dir: /home/sprite_updates.asm/

View raw version
DisableSpriteUpdates::
	xor a
	ld [hMapAnims], a
	ld a, [wVramState]
	res 0, a
	ld [wVramState], a
	ld a, $0
	ld [wSpriteUpdatesEnabled], a
	ret

EnableSpriteUpdates::
	ld a, $1
	ld [wSpriteUpdatesEnabled], a
	ld a, [wVramState]
	set 0, a
	ld [wVramState], a
	ld a, $1
	ld [hMapAnims], a
	ret