From 650dad6f6eae8e9f79889bc3c56127cf62755ce6 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 20 Feb 2025 15:50:33 +0100 Subject: [PATCH] Fix bit numbers in comment for the example input reading routine 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. --- unbricked/input/main.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unbricked/input/main.asm b/unbricked/input/main.asm index 444e1738..7acef36d 100644 --- a/unbricked/input/main.asm +++ b/unbricked/input/main.asm @@ -130,7 +130,7 @@ UpdateKeys: ; Poll the other half ld a, P1F_GET_DPAD call .onenibble - swap a ; A3-0 = unpressed directions; A7-4 = 1 + swap a ; A7-4 = unpressed directions; A3-0 = 1 xor a, b ; A = pressed buttons + directions ld b, a ; B = pressed buttons + directions