shithub: pokecrystal

ref: 53e1c480922fb3e6aaf1790a2c6ba10fcada9bb6
dir: /home/sprite_updates.asm/

View raw version
DisableSpriteUpdates::
	xor a
	ldh [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
	ldh [hMapAnims], a
	ret