1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Attempt better to print DirectAddresss.

This commit is contained in:
Thomas Harte 2023-09-19 22:46:53 -04:00
parent 6f5fcf23dc
commit 406c838c39

View File

@ -139,6 +139,13 @@ constexpr char TestSuiteHome[] = "/Users/tharte/Projects/ProcessorTests/8088/v1"
std::setfill('0') << std::setw(4) << std::uppercase << std::hex << instruction.offset() << 'h' <<
']'
).str();
case Source::DirectAddress:
return (std::stringstream() <<
'[' <<
to_hex(instruction.operand(), 4) <<
']'
).str();
}
return operand;