From a5334508e2bd10505748e48ccf9cbf76baea7ade Mon Sep 17 00:00:00 2001 From: edmccard Date: Mon, 26 Mar 2012 15:37:49 -0400 Subject: [PATCH] CMOS DEC/INC abx fix --- src/d6502/cmos.d | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/d6502/cmos.d b/src/d6502/cmos.d index be0976c..03aeb58 100644 --- a/src/d6502/cmos.d +++ b/src/d6502/cmos.d @@ -143,11 +143,18 @@ class Cmos(bool strict, bool cumulative) : Cpu!(strict, cumulative) "ROR", "Read", [0x66, 0x6E, 0x76, 0x7E])), RMW("rotateRight"))); mixin(Opcode(mixin(Type2Address( - "INC", "Read", [0xE6, 0xEE, 0xF6, 0xFE])), + "INC", "Read", [0xE6, 0xEE, 0xF6])), RMW("increment"))); mixin(Opcode(mixin(Type2Address( - "DEC", "Read", [0xC6, 0xCE, 0xD6, 0xDE])), + "DEC", "Read", [0xC6, 0xCE, 0xD6])), RMW("decrement"))); + mixin(Opcode(mixin(Type2Address( + "INC", "Write", [0xFE])), + RMW("increment"))); + mixin(Opcode(mixin(Type2Address( + "DEC", "Write", [0xDE])), + RMW("decrement"))); + mixin(Opcode(mixin(Type2Address( "BIT", "Read", [0x34, 0x3C])),