From 420fc406c487aaa9a9bdbd356e3a97223f437c5b Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Tue, 7 Jun 2016 00:11:32 +0200 Subject: [PATCH] Fixed back N5A22 clock steps, nw (Timing bug that was lingering for a while, no idea about what it fixes / breaks for SNES but it doesn't seem harmful from a quick random test) --- src/devices/cpu/g65816/g65816cm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/g65816/g65816cm.h b/src/devices/cpu/g65816/g65816cm.h index 649b2500653..e0afd6d1305 100644 --- a/src/devices/cpu/g65816/g65816cm.h +++ b/src/devices/cpu/g65816/g65816cm.h @@ -186,7 +186,7 @@ static inline int MAKE_INT_8(int A) {return (A & 0x80) ? A | ~0xff : A & 0xff;} #define CLK_W_S 2 #define CLK_W_SIY 5 -#define CLK(A) CLOCKS -= (m_cpu_type == CPU_TYPE_G65816 ? A : A*6) +#define CLK(A) CLOCKS -= A #define CLK_BUS(A) CLOCKS -= A #define USE_ALL_CLKS() CLOCKS = 0