1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-27 22:30:49 +00:00

Eliminate concept of skips.

This commit is contained in:
Thomas Harte 2022-04-22 20:59:25 -04:00
parent edee078f0a
commit 959db77b88

View File

@ -74,7 +74,6 @@ template <int index> NSString *operand(Preinstruction instruction, uint16_t opco
XCTAssertNotNil(decodings);
Predecoder<Model::M68000> decoder;
int skipped = 0;
for(int instr = 0; instr < 65536; instr++) {
NSString *const instrName = [NSString stringWithFormat:@"%04x", instr];
NSString *const expected = decodings[instrName];
@ -269,7 +268,7 @@ template <int index> NSString *operand(Preinstruction instruction, uint16_t opco
// For now, skip any unmapped operations.
default:
++skipped;
XCTAssert(false, @"Operation %d unhandled by test case", int(found.operation));
continue;
}
@ -282,8 +281,6 @@ template <int index> NSString *operand(Preinstruction instruction, uint16_t opco
XCTAssertFalse(found.mode<0>() == AddressingMode::None && found.mode<1>() != AddressingMode::None, @"Decoding of %@ provided a second operand but not a first", instrName);
XCTAssertEqualObjects(instruction, expected, "%@ should decode as %@; got %@", instrName, expected, instruction);
}
NSLog(@"Skipped %d opcodes", skipped);
}
@end