mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-03 10:54:46 +00:00
394ee61c78
The Amstrad CPC and ZX80/81 have made the jump so far, subject to caveats. The macOS build is unlikely currently to work properly.
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
//
|
|
// AmstradCPC.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 30/07/2017.
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef AmstradCPC_hpp
|
|
#define AmstradCPC_hpp
|
|
|
|
#include "../../Configurable/Configurable.hpp"
|
|
#include "../../Configurable/StandardOptions.hpp"
|
|
#include "../../Analyser/Static/StaticAnalyser.hpp"
|
|
#include "../ROMMachine.hpp"
|
|
|
|
#include <memory>
|
|
|
|
namespace AmstradCPC {
|
|
|
|
/*!
|
|
Models an Amstrad CPC.
|
|
*/
|
|
class Machine {
|
|
public:
|
|
virtual ~Machine();
|
|
|
|
/// Creates and returns an Amstrad CPC.
|
|
static Machine *AmstradCPC(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
|
|
|
/// Defines the runtime options available for a ZX80/81.
|
|
class Options: public Reflection::StructImpl<Options> {
|
|
public:
|
|
Configurable::Display output = Configurable::Display::RGB;
|
|
|
|
Options(Configurable::OptionsType type) {
|
|
// Declare fields if necessary.
|
|
if(needs_declare()) {
|
|
DeclareField(output);
|
|
AnnounceEnumNS(Configurable, Display);
|
|
// TODO: some way to set limited enum support for a struct?
|
|
// In this case, to support only RGB and CompositeColour.
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* AmstradCPC_hpp */
|