From fc9a35dd0462c70a19477b1f8ae6e6341ea0fafa Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 2 May 2022 20:09:38 -0400 Subject: [PATCH] Test add/sub, add an exception for invalid `Sequence`s. --- InstructionSets/M68k/Sequence.cpp | 4 +++- OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/InstructionSets/M68k/Sequence.cpp b/InstructionSets/M68k/Sequence.cpp index ded0749b8..c47e7bf25 100644 --- a/InstructionSets/M68k/Sequence.cpp +++ b/InstructionSets/M68k/Sequence.cpp @@ -8,6 +8,8 @@ #include "Sequence.hpp" +#include + using namespace InstructionSet::M68k; template struct Steps { @@ -21,7 +23,7 @@ template struct Steps { template uint32_t Sequence::steps_for(Operation operation) { switch(operation) { // This handles a NOP, and not much else. - default: return 0; + default: assert(false); // // No operands that require fetching. diff --git a/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm b/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm index b57921542..f96c29449 100644 --- a/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm +++ b/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm @@ -28,7 +28,7 @@ - (void)setUp { // To limit tests run to a subset of files and/or of tests, uncomment and fill in below. - _fileSet = [NSSet setWithArray:@[@"ext.json"]]; + _fileSet = [NSSet setWithArray:@[@"add_sub.json"]]; // _fileSet = [NSSet setWithArray:@[@"jmp_jsr.json"]]; // _testSet = [NSSet setWithArray:@[@"CHK 41a8"]]; }