From e33fbdf77f3cd4d003d9289dac030fe967e54c50 Mon Sep 17 00:00:00 2001 From: Maximilian Rehkopf Date: Sun, 30 Sep 2012 00:24:13 +0200 Subject: [PATCH] menu: Ignore input from non-standard controllers (resolve #29) --- snes/pad.a65 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/snes/pad.a65 b/snes/pad.a65 index e0c5015..52dfc18 100644 --- a/snes/pad.a65 +++ b/snes/pad.a65 @@ -4,7 +4,15 @@ read_pad: read_pad1 ldx pad1mem ;byetUDLRaxlriiii lda $4218 - ora $421a + and #$000f + bne + + lda $4218 ++ sta pad1mem + lda $421a + and #$000f + bne + + lda $421a ++ ora pad1mem sta pad1mem and #$0f00 bne read_pad1_count