Skip to content

Commit

Permalink
Explicitly set register A to 0 in the DMG, SGB, MGB, and SGB2 bootroms
Browse files Browse the repository at this point in the history
  • Loading branch information
LIJI32 committed Feb 11, 2023
1 parent 947687a commit 59ecd4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions BootROMs/dmg_boot.asm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Start:

; Clear memory VRAM
ld hl, $8000
xor a

.clearVRAMLoop
ldi [hl], a
Expand Down
1 change: 1 addition & 0 deletions BootROMs/sgb_boot.asm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Start:

; Clear memory VRAM
ld hl, $8000
xor a

.clearVRAMLoop
ldi [hl], a
Expand Down

0 comments on commit 59ecd4b

Please sign in to comment.