From ce7f94559b8ed16a99bc6437c259367b43d7ee16 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 19 May 2022 15:19:00 -0400 Subject: [PATCH] Add EXG, ABCD, SBCD. --- .../Implementation/68000Mk2Implementation.hpp | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp index a79f4c5e3..6fd7c073b 100644 --- a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp +++ b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp @@ -68,6 +68,8 @@ enum ExecutionState: int { MOVEw, MOVEwRegisterDirect, MOVEwAddressRegisterIndirectWithPostincrement, + + SABCD_PreDec, }; // MARK: - The state machine. @@ -288,6 +290,7 @@ void Processor( + instruction_, operand_[0], operand_[1], status_, *static_cast(this)); + + SetupDataAccess(0, Microcycle::SelectByte); + Access(operand_[1].low); // nw + + MoveToState(Decode); + // Various states TODO. #define TODOState(x) \ BeginState(x): [[fallthrough]];