pokecrystal-board/engine/menus/empty_sram.asm

16 lines
191 B
NASM
Raw Normal View History

2018-06-24 16:09:41 +02:00
EmptyAllSRAMBanks:
for x, NUM_SRAM_BANKS
ld a, x
call .EmptyBank
endr
ret
2018-06-24 16:09:41 +02:00
.EmptyBank:
call OpenSRAM
2024-01-03 10:58:53 -05:00
ld hl, STARTOF(SRAM)
ld bc, SIZEOF(SRAM)
xor a
call ByteFill
call CloseSRAM
ret