]> git.sur5r.net Git - cc65/commitdiff
nes: Fix reading the second controller 247/head
authorLauri Kasanen <curaga@operamail.com>
Mon, 14 Dec 2015 17:23:27 +0000 (19:23 +0200)
committerLauri Kasanen <curaga@operamail.com>
Mon, 14 Dec 2015 17:28:53 +0000 (19:28 +0200)
See
http://wiki.nesdev.com/w/index.php/Controller_port_registers

libsrc/nes/joy/nes-stdjoy.s

index b50c2124d3e73f81b344d3c5faebdd5e1f72b128..b5e653c162e01ee39c05c0265a950d063efad395 100644 (file)
@@ -95,9 +95,9 @@ READJOY:
         tay                     ; Joystick number (0,1) into Y
 
         lda     #1
-        sta     APU_PAD1,y
+        sta     APU_PAD1
         lda     #0
-        sta     APU_PAD1,y
+        sta     APU_PAD1
 
 ; Read joystick