mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
16 lines
191 B
NASM
16 lines
191 B
NASM
EmptyAllSRAMBanks:
|
|
for x, NUM_SRAM_BANKS
|
|
ld a, x
|
|
call .EmptyBank
|
|
endr
|
|
ret
|
|
|
|
.EmptyBank:
|
|
call OpenSRAM
|
|
ld hl, STARTOF(SRAM)
|
|
ld bc, SIZEOF(SRAM)
|
|
xor a
|
|
call ByteFill
|
|
call CloseSRAM
|
|
ret
|