From c6b32812742cf61bc87816edda25740642466e92 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 23 May 2022 09:29:19 -0400 Subject: [PATCH] Attempt the shifts and rolls. --- .../68000ComparativeTests.mm | 4 +-- .../Implementation/68000Mk2Implementation.hpp | 31 ++++++++++++++++--- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm b/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm index 371ffd473..e5577c562 100644 --- a/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm +++ b/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm @@ -174,7 +174,7 @@ struct TestProcessor: public CPU::MC68000Mk2::BusHandler { @"jmp_jsr.json", @"lea.json", // @"link_unlk.json", -// @"lslr_aslr_roxlr_rolr.json", + @"lslr_aslr_roxlr_rolr.json", @"move_tofrom_srccr.json", @"move.json", @"movem.json", @@ -190,7 +190,7 @@ struct TestProcessor: public CPU::MC68000Mk2::BusHandler { @"tas.json", @"tst.json", ]]; -// _testSet = [NSSet setWithArray:@[@"MOVE[A] 094d"]]; + _testSet = [NSSet setWithArray:@[@"ASL/R e0d0"]]; } - (void)testAll { diff --git a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp index 1d95127a5..8f602e8d5 100644 --- a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp +++ b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp @@ -161,7 +161,7 @@ enum ExecutionState: int { MOVEMtoM_finish, DIVU_DIVS, - MULU_MULS, + Perform_idle_dyamic_Dn, LEA, PEA, TAS, @@ -706,8 +706,8 @@ void Processor void ProcessorBase::did_muls(IntT) { // TODO: calculate cost. } +void ProcessorBase::did_shift(int) { + // TODO: calculate cost. +} + template void ProcessorBase::raise_exception(int vector) { // No overt action is taken here; instructions that might throw an exception are required // to check-in after the fact.