mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-27 06:35:04 +00:00
Also dump hex form of the instruction.
This commit is contained in:
parent
804f80d23c
commit
9417996280
@ -69,11 +69,18 @@ constexpr char TestSuiteHome[] = "/Users/tharte/Projects/ProcessorTests/8088/v1"
|
|||||||
);
|
);
|
||||||
|
|
||||||
if(stage.first != [encoding count]) {
|
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.
|
// Repeat the decoding, for ease of debugging.
|
||||||
Decoder straw_man;
|
Decoder straw_man;
|
||||||
straw_man.decode(data.data(), data.size());
|
straw_man.decode(data.data(), data.size());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: form string version, compare.
|
// TODO: form string version, compare.
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user