shithub: pokecrystal

ref: 5ae35e57702a17f118d53c35e13772b140fd37f9
dir: /engine/menus/empty_sram.asm/

View raw version
EmptyAllSRAMBanks:
for x, NUM_SRAM_BANKS
	ld a, x
	call .EmptyBank
endr
	ret

.EmptyBank:
	call OpenSRAM
	ld hl, SRAM_Begin
	ld bc, SRAM_End - SRAM_Begin
	xor a
	call ByteFill
	call CloseSRAM
	ret