2018-06-24 14:09:41 +00:00
|
|
|
EmptyAllSRAMBanks:
|
2018-01-08 22:13:37 +00:00
|
|
|
ld a, 0
|
2017-12-16 02:22:26 +00:00
|
|
|
call .EmptyBank
|
2018-01-08 22:13:37 +00:00
|
|
|
ld a, 1
|
2017-12-16 02:22:26 +00:00
|
|
|
call .EmptyBank
|
2018-01-08 22:13:37 +00:00
|
|
|
ld a, 2
|
2017-12-16 02:22:26 +00:00
|
|
|
call .EmptyBank
|
2018-01-08 22:13:37 +00:00
|
|
|
ld a, 3
|
2017-12-16 02:22:26 +00:00
|
|
|
call .EmptyBank
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
.EmptyBank:
|
2017-12-16 02:22:26 +00:00
|
|
|
call GetSRAMBank
|
|
|
|
ld hl, SRAM_Begin
|
|
|
|
ld bc, SRAM_End - SRAM_Begin
|
|
|
|
xor a
|
|
|
|
call ByteFill
|
|
|
|
call CloseSRAM
|
|
|
|
ret
|