1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-29 16:55:59 +00:00

Test add/sub, add an exception for invalid Sequences.

This commit is contained in:
Thomas Harte 2022-05-02 20:09:38 -04:00
parent 7efe30f34c
commit fc9a35dd04
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@
#include "Sequence.hpp"
#include <cassert>
using namespace InstructionSet::M68k;
template <Step... T> struct Steps {
@ -21,7 +23,7 @@ template <Step F, Step... T> struct Steps<F, T...> {
template<Model model> uint32_t Sequence<model>::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.

View File

@ -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"]];
}