From: Lauri Kasanen Date: Mon, 14 Dec 2015 17:23:27 +0000 (+0200) Subject: nes: Fix reading the second controller X-Git-Tag: V2.16~192^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a954e713ad096080b284e78dcc5ad2e9c154e938;p=cc65 nes: Fix reading the second controller See http://wiki.nesdev.com/w/index.php/Controller_port_registers --- diff --git a/libsrc/nes/joy/nes-stdjoy.s b/libsrc/nes/joy/nes-stdjoy.s index b50c2124d..b5e653c16 100644 --- a/libsrc/nes/joy/nes-stdjoy.s +++ b/libsrc/nes/joy/nes-stdjoy.s @@ -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