Skip to content

Commit

Permalink
QoL aaaaaa123456789#7: clear all of WRAM, not just banks 0-1
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaaaa123456789 authored and vulcandth committed Oct 16, 2022
1 parent 51f4e3a commit f60c72b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions home/init.asm
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ ClearVRAM::
ClearWRAM::
; Wipe swappable WRAM banks (1-7)
; Assumes CGB or AGB
; BUG: ClearWRAM only clears WRAM bank 1 (see docs/bugs_and_glitches.md)

ld a, 1
.bank_loop
Expand All @@ -199,7 +198,7 @@ ClearWRAM::
pop af
inc a
cp 8
jr nc, .bank_loop
jr c, .bank_loop
ret

ClearsScratch::
Expand Down

0 comments on commit f60c72b

Please sign in to comment.