From 5089fcd2f6c6e223057ad1597e57492bf8f47035 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 22 Jun 2019 18:52:06 -0400 Subject: [PATCH] Makes a slightly futile attempt to resolve Heisen-failures. --- OSBindings/Mac/Clock SignalTests/68000Tests.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OSBindings/Mac/Clock SignalTests/68000Tests.mm b/OSBindings/Mac/Clock SignalTests/68000Tests.mm index 9ff6c5936..64a5e60a4 100644 --- a/OSBindings/Mac/Clock SignalTests/68000Tests.mm +++ b/OSBindings/Mac/Clock SignalTests/68000Tests.mm @@ -29,6 +29,11 @@ class RAM68000: public CPU::MC68000::BusHandler { ram_[1] = 0x206; // Supervisor stack pointer. ram_[2] = 0; ram_[3] = 0x1000; // Initial PC. + + // Ensure the condition codes start unset. + auto state = get_processor_state(); + state.status &= ~Flag::ConditionCodes; + set_processor_state(state); } void set_program(const std::vector &program) {