From d8601ef01f70197f8d8eb8fdc61f2a0da30276a1 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 28 Feb 2022 09:54:29 -0500 Subject: [PATCH] Add missing hex specifier. Test now passes. --- OSBindings/Mac/Clock SignalTests/x86DataPointerTests.mm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/x86DataPointerTests.mm b/OSBindings/Mac/Clock SignalTests/x86DataPointerTests.mm index ed483bf25..6917bb23a 100644 --- a/OSBindings/Mac/Clock SignalTests/x86DataPointerTests.mm +++ b/OSBindings/Mac/Clock SignalTests/x86DataPointerTests.mm @@ -33,9 +33,6 @@ using namespace InstructionSet::x86; struct Registers { uint16_t ax = 0x1234, di = 0x00ee; - template void write(DataT) { - assert(false); - } template DataT read() { switch(r) { case Register::AX: return ax; @@ -43,17 +40,19 @@ using namespace InstructionSet::x86; default: return 0; } } + template void write(DataT) { + assert(false); + } } registers; struct Memory { template DataT read(Source, uint32_t address) { - if(address == 01234 + 0x00ee) return 0xff; + if(address == 0x1234 + 0x00ee) return 0xff; return 0; } template void write(Source, uint32_t, DataT) { assert(false); } - } memory; const auto instruction = Instruction();