diff --git a/OSBindings/Mac/Clock SignalTests/FUSETests.swift b/OSBindings/Mac/Clock SignalTests/FUSETests.swift index 269b2c167..4e879f17c 100644 --- a/OSBindings/Mac/Clock SignalTests/FUSETests.swift +++ b/OSBindings/Mac/Clock SignalTests/FUSETests.swift @@ -159,7 +159,6 @@ class FUSETests: XCTestCase { XCTAssert(inputArray != nil && outputArray != nil) var index = 0 -// var failures = 0 for item in inputArray { let itemDictionary = item as! [String: Any] let outputDictionary = outputArray[index] as! [String: Any] @@ -167,10 +166,6 @@ class FUSETests: XCTestCase { let name = itemDictionary["name"] as! String -// if name != "eda3" { -// continue; -// } - let initialState = RegisterState(dictionary: itemDictionary["state"] as! [String: Any]) let targetState = RegisterState(dictionary: outputDictionary["state"] as! [String: Any]) @@ -195,15 +190,8 @@ class FUSETests: XCTestCase { let finalState = RegisterState(machine: machine) XCTAssertEqual(finalState, targetState, "Failed \(name)") -// if finalState != targetState { -// failures = failures + 1 -// if failures == 5 { -// return -// } -// } // TODO compare bus operations and final memory state - } } } diff --git a/Processors/Z80/Z80.hpp b/Processors/Z80/Z80.hpp index 167441d27..f1d312dbf 100644 --- a/Processors/Z80/Z80.hpp +++ b/Processors/Z80/Z80.hpp @@ -1122,7 +1122,7 @@ template class Processor: public MicroOpScheduler { case MicroOp::CPDR: case MicroOp::CPIR: { CPxR_STEP(MicroOp::CPIR); - REPEAT(bc_.full); + REPEAT(bc_.full && sign_result_); } break; case MicroOp::CPD: