pokecrystal-board/engine/menus/empty_sram.asm

16 lines
197 B
NASM
Raw Normal View History

2018-06-24 07:09:41 -07:00
EmptyAllSRAMBanks:
for x, NUM_SRAM_BANKS
ld a, x
call .EmptyBank
endr
ret
2018-06-24 07:09:41 -07:00
.EmptyBank:
call OpenSRAM
ld hl, SRAM_Begin
ld bc, SRAM_End - SRAM_Begin
xor a
call ByteFill
call CloseSRAM
ret