summaryrefslogtreecommitdiff
path: root/src/home/input.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/home/input.asm')
-rw-r--r--src/home/input.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/home/input.asm b/src/home/input.asm
index 184c50c..28e2e71 100644
--- a/src/home/input.asm
+++ b/src/home/input.asm
@@ -1,6 +1,6 @@
; read joypad data to refresh hKeysHeld, hKeysPressed, and hKeysReleased
; the A + B + Start + Select combination resets the game
-ReadJoypad: ; 04de (0:04de)
+ReadJoypad:
ld a, JOY_BTNS_SELECT
ldh [rJOYP], a
ldh a, [rJOYP]
@@ -40,12 +40,12 @@ ReadJoypad: ; 04de (0:04de)
call ResetSerial
; fallthrough
-Reset: ; 051b (0:051b)
+Reset:
ld a, [wInitialA]
di
jp Start
-SaveButtonsHeld: ; 0522 (0:0522)
+SaveButtonsHeld:
ld a, c
ldh [hKeysHeld], a
ld a, JOY_BTNS_SELECT | JOY_DPAD_SELECT
@@ -53,7 +53,7 @@ SaveButtonsHeld: ; 0522 (0:0522)
ret
; clear joypad hmem data
-ClearJoypad: ; 052a (0:052a)
+ClearJoypad:
push hl
ld hl, hDPadRepeat
xor a