mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-29 04:33:04 +00:00
Eliminate concept of skips.
This commit is contained in:
parent
edee078f0a
commit
959db77b88
@ -74,7 +74,6 @@ template <int index> NSString *operand(Preinstruction instruction, uint16_t opco
|
|||||||
XCTAssertNotNil(decodings);
|
XCTAssertNotNil(decodings);
|
||||||
|
|
||||||
Predecoder<Model::M68000> decoder;
|
Predecoder<Model::M68000> decoder;
|
||||||
int skipped = 0;
|
|
||||||
for(int instr = 0; instr < 65536; instr++) {
|
for(int instr = 0; instr < 65536; instr++) {
|
||||||
NSString *const instrName = [NSString stringWithFormat:@"%04x", instr];
|
NSString *const instrName = [NSString stringWithFormat:@"%04x", instr];
|
||||||
NSString *const expected = decodings[instrName];
|
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.
|
// For now, skip any unmapped operations.
|
||||||
default:
|
default:
|
||||||
++skipped;
|
XCTAssert(false, @"Operation %d unhandled by test case", int(found.operation));
|
||||||
continue;
|
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);
|
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);
|
XCTAssertEqualObjects(instruction, expected, "%@ should decode as %@; got %@", instrName, expected, instruction);
|
||||||
}
|
}
|
||||||
|
|
||||||
NSLog(@"Skipped %d opcodes", skipped);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user