aboutsummaryrefslogtreecommitdiff
path: root/scroll/include/driver.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-03-11 17:00:47 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-03-11 17:00:47 +0100
commit428c301a80641361f51af8102628b545cf9ae63e (patch)
treee8888ec3a369bb617e892ff783334ae4f46ce355 /scroll/include/driver.s
parenteb9544cb3df7158f7fba5ed346997989102d0155 (diff)
downloadcode.nes-428c301a80641361f51af8102628b545cf9ae63e.tar.gz
code.nes-428c301a80641361f51af8102628b545cf9ae63e.zip
shared: Bring joypad into a proper style
Put functions inside of the scope, avoid useless fallthroughs and be more realistic on what is needed from elsewhere. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'scroll/include/driver.s')
-rw-r--r--scroll/include/driver.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/scroll/include/driver.s b/scroll/include/driver.s
index abb3f5e..acf5a11 100644
--- a/scroll/include/driver.s
+++ b/scroll/include/driver.s
@@ -50,7 +50,7 @@
;; If `select` is pressed, then go for a new level. Otherwise check
;; whether there is a pending column to be loaded.
lda #Joypad::BUTTON_SELECT
- and Joypad::m_buttons1
+ and Joypad::zp_buttons1
beq @check_column
;; Set the counter.