mirror of
https://github.com/edmccard/twoapple-reboot.git
synced 2024-12-21 20:29:18 +00:00
CMOS DEC/INC abx fix
This commit is contained in:
parent
443b12f77e
commit
a5334508e2
@ -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])),
|
||||||
|
Loading…
Reference in New Issue
Block a user