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:
parent
ec3aa06caf
commit
ace8e30818
@ -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 {
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user