From c3345dd839c2360f0078318484030732a5e3bdf0 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 10 Jun 2022 21:52:07 -0400 Subject: [PATCH] Fix MOVEM timing. --- .../Mac/Clock SignalTests/68000OldVsNew.mm | 4 - .../Implementation/68000Mk2Implementation.hpp | 78 ++++++++++++------- 2 files changed, 52 insertions(+), 30 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/68000OldVsNew.mm b/OSBindings/Mac/Clock SignalTests/68000OldVsNew.mm index 1a1658fed..b5defaed1 100644 --- a/OSBindings/Mac/Clock SignalTests/68000OldVsNew.mm +++ b/OSBindings/Mac/Clock SignalTests/68000OldVsNew.mm @@ -272,10 +272,6 @@ template struct Tester { // InstructionSet::M68k::Operation::NEGXw, // Old implementation omits an idle cycle before -(An) // InstructionSet::M68k::Operation::NEGb, // Old implementation omits an idle cycle before -(An) // InstructionSet::M68k::Operation::NEGw, // Old implementation omits an idle cycle before -(An) - InstructionSet::M68k::Operation::MOVEMtoRl, - InstructionSet::M68k::Operation::MOVEMtoRw, - InstructionSet::M68k::Operation::MOVEMtoMl, - InstructionSet::M68k::Operation::MOVEMtoMw, // InstructionSet::M68k::Operation::NOTb, // Old implementation omits an idle cycle before -(An) // InstructionSet::M68k::Operation::NOTw, // Old implementation omits an idle cycle before -(An) // InstructionSet::M68k::Operation::MULU, diff --git a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp index bfc95f9d7..a8139521e 100644 --- a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp +++ b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp @@ -173,7 +173,6 @@ enum ExecutionState: int { LEA, PEA, TAS, - TASAddressRegisterIndirectWithIndex8bitDisplacement, MOVEtoCCRSR, RTR, RTE, @@ -185,6 +184,9 @@ enum ExecutionState: int { STOP, TRAP, TRAPV, + + AddressRegisterIndirectWithIndex8bitDisplacement_n_np, + ProgramCounterIndirectWithIndex8bitDisplacement_n_np, }; // MARK: - The state machine. @@ -983,15 +985,13 @@ void Processor