From 454e33269ac5c3a24571ee5290c6bfca27369423 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Mon, 18 Dec 2017 22:34:29 -0800 Subject: [PATCH] Fixed STA; it's the only operation that doesn't have extra cycles for crossing page boundaries --- 6502.c | 1 + 1 file changed, 1 insertion(+) diff --git a/6502.c b/6502.c index 69ff5ce..74e4f4b 100644 --- a/6502.c +++ b/6502.c @@ -428,6 +428,7 @@ static void inst_SEI() static void inst_STA() { * write_ptr() = A; + extra_cycles = 0; // STA has no addressing modes that use the extra cycle } static void inst_STX()