diff --git a/OSBindings/Mac/Clock SignalTests/Bridges/TestMachineZ80.mm b/OSBindings/Mac/Clock SignalTests/Bridges/TestMachineZ80.mm index 37f64f599..9e1ae04db 100644 --- a/OSBindings/Mac/Clock SignalTests/Bridges/TestMachineZ80.mm +++ b/OSBindings/Mac/Clock SignalTests/Bridges/TestMachineZ80.mm @@ -127,7 +127,7 @@ static CPU::Z80::Register registerForRegister(CSTestMachineZ80Register reg) { } - (void)runForNumberOfCycles:(int)cycles { - _processor->run_for_cycles(cycles); + _processor->run_for(Cycles(cycles)); } - (void)setValue:(uint16_t)value forRegister:(CSTestMachineZ80Register)reg { diff --git a/Processors/Z80/Z80AllRAM.cpp b/Processors/Z80/Z80AllRAM.cpp index ba5084719..7cba2c192 100644 --- a/Processors/Z80/Z80AllRAM.cpp +++ b/Processors/Z80/Z80AllRAM.cpp @@ -63,8 +63,8 @@ class ConcreteAllRAMProcessor: public AllRAMProcessor, public Processor::run_for_cycles(cycles); + void run_for(const Cycles &cycles) { + CPU::Z80::Processor::run_for(cycles); } uint16_t get_value_of_register(Register r) { diff --git a/Processors/Z80/Z80AllRAM.hpp b/Processors/Z80/Z80AllRAM.hpp index 69b1c874f..9b68d1054 100644 --- a/Processors/Z80/Z80AllRAM.hpp +++ b/Processors/Z80/Z80AllRAM.hpp @@ -28,7 +28,7 @@ class AllRAMProcessor: delegate_ = delegate; } - virtual void run_for_cycles(int cycles) = 0; + virtual void run_for(const Cycles &cycles) = 0; virtual uint16_t get_value_of_register(Register r) = 0; virtual void set_value_of_register(Register r, uint16_t value) = 0; virtual bool get_halt_line() = 0;