1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 18:31:53 +00:00

Starts to create an actual shell of a machine.

This commit is contained in:
Thomas Harte 2019-10-03 22:47:57 -04:00
parent a2ca887b99
commit 953423cc02

View File

@ -8,10 +8,39 @@
#include "AtariST.hpp"
#include "../CRTMachine.hpp"
namespace {
const int CLOCK_RATE = 8000000;
using Target = Analyser::Static::Target;
class ConcreteMachine:
public Atari::ST::Machine,
public CRTMachine::Machine {
public:
ConcreteMachine(const Target &target, const ROMMachine::ROMFetcher &rom_fetcher) {
set_clock_rate(CLOCK_RATE);
}
void set_scan_target(Outputs::Display::ScanTarget *scan_target) final {
}
Outputs::Speaker::Speaker *get_speaker() final {
return nullptr;
}
void run_for(const Cycles cycles) final {
}
};
}
using namespace Atari::ST;
Machine *Machine::AtariST(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher) {
return nullptr;
return new ConcreteMachine(*target, rom_fetcher);
}
Machine::~Machine() {}