1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 03:32:01 +00:00

Bubbled the Z80's move into clock receiver territory up into the Z80 test machine.

This commit is contained in:
Thomas Harte 2017-07-23 22:21:39 -04:00
parent ec3aa06caf
commit ace8e30818
3 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -63,8 +63,8 @@ class ConcreteAllRAMProcessor: public AllRAMProcessor, public Processor<Concrete
return 0;
}
void run_for_cycles(int cycles) {
CPU::Z80::Processor<ConcreteAllRAMProcessor>::run_for_cycles(cycles);
void run_for(const Cycles &cycles) {
CPU::Z80::Processor<ConcreteAllRAMProcessor>::run_for(cycles);
}
uint16_t get_value_of_register(Register r) {

View File

@ -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;