shithub: pokered

ref: 2b54583c8be4aa28f4c6a70c65baeb2e3c84fdfc
dir: /home/clear_sprites.asm/

View raw version
ClearSprites::
	xor a
	ld hl, wOAMBuffer
	ld b, 40 * 4
.loop
	ld [hli], a
	dec b
	jr nz, .loop
	ret

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