Skip to content

Commit 3644586

Browse files
authored
Use ld a, 0 instead of xor a to clear OAM
The trick has not been explained yet
1 parent ee81463 commit 3644586

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unbricked/objects/main.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ CopyPaddle:
6161
; ANCHOR_END: copy-paddle
6262

6363
; ANCHOR: clear-oam
64-
xor a, a
64+
ld a, 0
6565
ld b, 160
6666
ld hl, _OAMRAM
6767
ClearOam:

0 commit comments

Comments
 (0)