shithub: pokered

ref: a66adbcc5c63d133c68bb7a758e8920fde6de2ff
dir: /home/clear_sprites.asm/

View raw version
ClearSprites::
	xor a
	ld hl, wShadowOAM
	ld b, wShadowOAMEnd - wShadowOAM
.loop
	ld [hli], a
	dec b
	jr nz, .loop
	ret

HideSprites::
	ld a, 160
	ld hl, wShadowOAM
	ld de, 4
	ld b, 40
.loop
	ld [hl], a
	add hl, de
	dec b
	jr nz, .loop
	ret