mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Adds bare minimum to get a non-functional machine.
This commit is contained in:
parent
61c127ed2e
commit
5f7b3ae313
@ -8,17 +8,39 @@
|
|||||||
|
|
||||||
#include "Enterprise.hpp"
|
#include "Enterprise.hpp"
|
||||||
|
|
||||||
|
#include "../MachineTypes.hpp"
|
||||||
|
|
||||||
#include "../../Analyser/Static/Enterprise/Target.hpp"
|
#include "../../Analyser/Static/Enterprise/Target.hpp"
|
||||||
|
|
||||||
namespace Enterprise {
|
namespace Enterprise {
|
||||||
|
|
||||||
class ConcreteMachine:
|
class ConcreteMachine:
|
||||||
public Machine {
|
public Machine,
|
||||||
|
public MachineTypes::ScanProducer,
|
||||||
|
public MachineTypes::TimedMachine {
|
||||||
public:
|
public:
|
||||||
ConcreteMachine(const Analyser::Static::Enterprise::Target &target, const ROMMachine::ROMFetcher &rom_fetcher) {
|
ConcreteMachine(const Analyser::Static::Enterprise::Target &target, const ROMMachine::ROMFetcher &rom_fetcher) {
|
||||||
|
// Request a clock of 4Mhz; this'll be mapped upwards for Nick and Dave elsewhere.
|
||||||
|
set_clock_rate(4'000'000);
|
||||||
|
|
||||||
(void)target;
|
(void)target;
|
||||||
(void)rom_fetcher;
|
(void)rom_fetcher;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
// MARK: - ScanProducer
|
||||||
|
void set_scan_target(Outputs::Display::ScanTarget *scan_target) override {
|
||||||
|
(void)scan_target;
|
||||||
|
}
|
||||||
|
|
||||||
|
Outputs::Display::ScanStatus get_scaled_scan_status() const override {
|
||||||
|
return Outputs::Display::ScanStatus();
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - TimedMachine
|
||||||
|
void run_for(const Cycles cycles) override {
|
||||||
|
(void)cycles;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user