Skip to content

Commit e4e0863

Browse files
authored
Fix bit numbers in comment for the example input reading routine (#119)
It looks like maybe the comment was copied from the one above for reading the buttons. If so, the order of the parts were swapped but not the bit numbers.
1 parent 1b9e920 commit e4e0863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unbricked/input/main.asm

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ UpdateKeys:
130130
; Poll the other half
131131
ld a, P1F_GET_DPAD
132132
call .onenibble
133-
swap a ; A3-0 = unpressed directions; A7-4 = 1
133+
swap a ; A7-4 = unpressed directions; A3-0 = 1
134134
xor a, b ; A = pressed buttons + directions
135135
ld b, a ; B = pressed buttons + directions
136136

0 commit comments

Comments
 (0)