mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Uncover various discrepancies with NBCD.
This commit is contained in:
parent
7c29305788
commit
3ffca20001
@ -62,16 +62,13 @@ template <int index> NSString *operand(Preinstruction instruction) {
|
||||
|
||||
const auto found = decoder.decode(uint16_t(instr));
|
||||
|
||||
// Hatch off no-instruction as a special case,
|
||||
// at least temporarily.
|
||||
if(found.operation == Operation::Undefined) {
|
||||
XCTAssertEqualObjects(@"None", expected, "%@ should decode as %@", instrName, expected);
|
||||
continue;
|
||||
}
|
||||
|
||||
NSString *instruction;
|
||||
switch(found.operation) {
|
||||
case Operation::Undefined: instruction = @"None"; break;
|
||||
case Operation::NOP: instruction = @"NOP"; break;
|
||||
case Operation::ABCD: instruction = @"ABCD"; break;
|
||||
case Operation::SBCD: instruction = @"SBCD"; break;
|
||||
case Operation::NBCD: instruction = @"NBCD"; break;
|
||||
|
||||
// For now, skip any unmapped operations.
|
||||
default: continue;
|
||||
|
Loading…
Reference in New Issue
Block a user