From a954e713ad096080b284e78dcc5ad2e9c154e938 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Mon, 14 Dec 2015 19:23:27 +0200 Subject: [PATCH] nes: Fix reading the second controller See http://wiki.nesdev.com/w/index.php/Controller_port_registers --- libsrc/nes/joy/nes-stdjoy.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5