From 406c838c398918e9f416cadb71b4d45d05e939d1 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 19 Sep 2023 22:46:53 -0400 Subject: [PATCH] Attempt better to print `DirectAddress`s. --- OSBindings/Mac/Clock SignalTests/8088Tests.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OSBindings/Mac/Clock SignalTests/8088Tests.mm b/OSBindings/Mac/Clock SignalTests/8088Tests.mm index 58e4f6e66..c521a6edb 100644 --- a/OSBindings/Mac/Clock SignalTests/8088Tests.mm +++ b/OSBindings/Mac/Clock SignalTests/8088Tests.mm @@ -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;