mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-28 21:49:27 +00:00
Adds ZX Spectrum activity indicators.
This commit is contained in:
parent
584a5ad7fb
commit
4e8f82a39c
@ -12,6 +12,7 @@
|
||||
|
||||
#define LOG_PREFIX "[Spectrum] "
|
||||
|
||||
#include "../../../Activity/Source.hpp"
|
||||
#include "../../MachineTypes.hpp"
|
||||
|
||||
#include "../../../Processors/Z80/Z80.hpp"
|
||||
@ -46,6 +47,7 @@ namespace ZXSpectrum {
|
||||
|
||||
using Model = Analyser::Static::ZXSpectrum::Target::Model;
|
||||
template<Model model> class ConcreteMachine:
|
||||
public Activity::Source,
|
||||
public Configurable::Device,
|
||||
public Machine,
|
||||
public MachineTypes::AudioProducer,
|
||||
@ -447,6 +449,12 @@ template<Model model> class ConcreteMachine:
|
||||
return &speaker_;
|
||||
}
|
||||
|
||||
// MARK: - Activity Source
|
||||
void set_activity_observer(Activity::Observer *observer) override {
|
||||
if constexpr (model == Model::Plus3) fdc_->set_activity_observer(observer);
|
||||
tape_player_.set_activity_observer(observer);
|
||||
}
|
||||
|
||||
private:
|
||||
CPU::Z80::Processor<ConcreteMachine, false, false> z80_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user