1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-24 05:18:36 +00:00

Attmept full ADC implementation.

This commit is contained in:
Thomas Harte
2025-09-18 12:21:25 -04:00
parent 26b1ef247b
commit 4c49ffe3d1
3 changed files with 69 additions and 11 deletions
+7 -3
View File
@@ -440,7 +440,8 @@ class ConcreteMachine:
public MachineTypes::MappedKeyboardMachine,
public MachineTypes::ScanProducer,
public MachineTypes::TimedMachine,
public MOS::MOS6522::IRQDelegatePortHandler::Delegate
public MOS::MOS6522::IRQDelegatePortHandler::Delegate,
public NEC::uPD7002::Delegate
{
public:
ConcreteMachine(
@@ -615,10 +616,8 @@ public:
}
} else if(address >= 0xfec0 && address < 0xfee0) {
if(is_read(operation)) {
// Logger::info().append("ACIA read");
*value = adc_.read(address);
} else {
// Logger::info().append("ACIA write: %02x", *value);
adc_.write(address, *value);
}
}
@@ -698,6 +697,11 @@ private:
update_irq_line();
}
// MARK: - uPD7002::Delegate.
void did_change_interrupt_status(NEC::uPD7002 &) override {
update_irq_line();
}
// MARK: - Clock phase.
int phase_ = 0;