From 8c466bcbe6105d15d26802fbd90ade5cc781c71b Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 13 Mar 2012 20:27:24 +0000 Subject: [PATCH] fix bug in 6502 core generator --- CpuCoreGenerator/MOS 6502/Instructions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CpuCoreGenerator/MOS 6502/Instructions.cs b/CpuCoreGenerator/MOS 6502/Instructions.cs index 2ab9a0b802..3f364eee28 100644 --- a/CpuCoreGenerator/MOS 6502/Instructions.cs +++ b/CpuCoreGenerator/MOS 6502/Instructions.cs @@ -99,7 +99,7 @@ namespace M6502 w.WriteLine(Spaces + "value16 = (ushort) (" + reg + " - value8);"); w.WriteLine(Spaces + "FlagC = (" + reg + " >= value8);"); w.WriteLine(Spaces + SetNZ("(byte)value16")); - w.WriteLine(Spaces + "PendingCycles -= {0};", op.Cycles); + w.WriteLine(Spaces + "PendingCycles -= {0}; TotalExecutedCycles += {0};", op.Cycles); } private void DEC(OpcodeInfo op, TextWriter w)