1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-26 15:32:04 +00:00

Also dump hex form of the instruction.

This commit is contained in:
Thomas Harte 2023-09-14 15:40:40 -04:00
parent 804f80d23c
commit 9417996280

View File

@ -69,11 +69,18 @@ constexpr char TestSuiteHome[] = "/Users/tharte/Projects/ProcessorTests/8088/v1"
);
if(stage.first != [encoding count]) {
NSMutableString *hexInstruction = [[NSMutableString alloc] init];
for(uint8_t byte: data) {
[hexInstruction appendFormat:@"%02x ", byte];
}
NSLog(@"Instruction was %@", hexInstruction);
// Repeat the decoding, for ease of debugging.
Decoder straw_man;
straw_man.decode(data.data(), data.size());
return false;
}
// TODO: form string version, compare.
return true;