diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-08 22:09:31 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-08 22:14:15 +0100 |
| commit | f1d1d0efee9faa3067f7b0fc8b9a2aebb17f1ccd (patch) | |
| tree | eb6c2008a025f6ae88f7dc1e3f61360599189e0e /src/title.s | |
| parent | feed0b705daff0001253b6ec89b61c9821d2fe21 (diff) | |
| download | jetpac.nes-f1d1d0efee9faa3067f7b0fc8b9a2aebb17f1ccd.tar.gz jetpac.nes-f1d1d0efee9faa3067f7b0fc8b9a2aebb17f1ccd.zip | |
Support reading from the second controller
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/title.s')
| -rw-r--r-- | src/title.s | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/title.s b/src/title.s index 06ca1cb..d091922 100644 --- a/src/title.s +++ b/src/title.s @@ -38,7 +38,7 @@ bne @end lda #Joypad::BUTTON_UP - and Joypad::zp_buttons1 + and Joypad::zp_buttons beq @check_down lda #SPRITE_Y_POSITION0 @@ -49,7 +49,7 @@ @check_down: lda #Joypad::BUTTON_DOWN - and Joypad::zp_buttons1 + and Joypad::zp_buttons beq @check_select lda #SPRITE_Y_POSITION1 @@ -60,13 +60,13 @@ @check_select: lda #Joypad::BUTTON_SELECT - and Joypad::zp_buttons1 + and Joypad::zp_buttons bne @do_select ;; If none of the above has been pressed, our only possibility is the ;; start button. If that's the case, jump there, otherwise quit. lda #(Joypad::BUTTON_START | Joypad::BUTTON_A) - and Joypad::zp_buttons1 + and Joypad::zp_buttons beq @end JAL start |
