mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-27 06:35:04 +00:00
Minor syntax and wiring fixes.
This commit is contained in:
parent
c95c32a9fe
commit
d14902700a
@ -119,7 +119,7 @@ static CPU::Z80::Register registerForRegister(CSTestMachineZ80Register reg) {
|
|||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
if(self = [super init]) {
|
if(self = [super init]) {
|
||||||
_processor = CPU::Z80::AllRAMProcessor::Processor();
|
_processor = CPU::Z80::AllRAMProcessor::Processor();
|
||||||
_processor.reset_power_on();
|
_processor->reset_power_on();
|
||||||
_cppTrapHandler = new MachineTrapHandler(self);
|
_cppTrapHandler = new MachineTrapHandler(self);
|
||||||
_busOperationHandler = new BusOperationHandler(self);
|
_busOperationHandler = new BusOperationHandler(self);
|
||||||
_busOperationCaptures = [[NSMutableArray alloc] init];
|
_busOperationCaptures = [[NSMutableArray alloc] init];
|
||||||
|
@ -70,6 +70,10 @@ class ConcreteAllRAMProcessor: public AllRAMProcessor, public Processor<Concrete
|
|||||||
bool get_halt_line() {
|
bool get_halt_line() {
|
||||||
return CPU::Z80::Processor<ConcreteAllRAMProcessor>::get_halt_line();
|
return CPU::Z80::Processor<ConcreteAllRAMProcessor>::get_halt_line();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void reset_power_on() {
|
||||||
|
return CPU::Z80::Processor<ConcreteAllRAMProcessor>::reset_power_on();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,7 @@ class AllRAMProcessor:
|
|||||||
virtual uint16_t get_value_of_register(Register r) = 0;
|
virtual uint16_t get_value_of_register(Register r) = 0;
|
||||||
virtual void set_value_of_register(Register r, uint16_t value) = 0;
|
virtual void set_value_of_register(Register r, uint16_t value) = 0;
|
||||||
virtual bool get_halt_line() = 0;
|
virtual bool get_halt_line() = 0;
|
||||||
|
virtual void reset_power_on() = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
MemoryAccessDelegate *delegate_;
|
MemoryAccessDelegate *delegate_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user