CMOS DEC/INC abx fix

This commit is contained in:
edmccard 2012-03-26 15:37:49 -04:00
parent 443b12f77e
commit a5334508e2

View File

@ -143,11 +143,18 @@ class Cmos(bool strict, bool cumulative) : Cpu!(strict, cumulative)
"ROR", "Read", [0x66, 0x6E, 0x76, 0x7E])), "ROR", "Read", [0x66, 0x6E, 0x76, 0x7E])),
RMW("rotateRight"))); RMW("rotateRight")));
mixin(Opcode(mixin(Type2Address( mixin(Opcode(mixin(Type2Address(
"INC", "Read", [0xE6, 0xEE, 0xF6, 0xFE])), "INC", "Read", [0xE6, 0xEE, 0xF6])),
RMW("increment"))); RMW("increment")));
mixin(Opcode(mixin(Type2Address( mixin(Opcode(mixin(Type2Address(
"DEC", "Read", [0xC6, 0xCE, 0xD6, 0xDE])), "DEC", "Read", [0xC6, 0xCE, 0xD6])),
RMW("decrement"))); RMW("decrement")));
mixin(Opcode(mixin(Type2Address(
"INC", "Write", [0xFE])),
RMW("increment")));
mixin(Opcode(mixin(Type2Address(
"DEC", "Write", [0xDE])),
RMW("decrement")));
mixin(Opcode(mixin(Type2Address( mixin(Opcode(mixin(Type2Address(
"BIT", "Read", [0x34, 0x3C])), "BIT", "Read", [0x34, 0x3C])),