2023-11-15 16:01:28 +00:00
|
|
|
//
|
|
|
|
// PCCompatible.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 15/11/2023.
|
|
|
|
// Copyright © 2023 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef PCCompatible_hpp
|
|
|
|
#define PCCompatible_hpp
|
|
|
|
|
2023-12-06 18:55:41 +00:00
|
|
|
#include "../../Configurable/Configurable.hpp"
|
|
|
|
#include "../../Configurable/StandardOptions.hpp"
|
2023-11-15 16:01:28 +00:00
|
|
|
#include "../../Analyser/Static/StaticAnalyser.hpp"
|
|
|
|
#include "../ROMMachine.hpp"
|
|
|
|
|
|
|
|
namespace PCCompatible {
|
|
|
|
|
|
|
|
/*!
|
|
|
|
Models a PC compatible.
|
|
|
|
*/
|
|
|
|
class Machine {
|
|
|
|
public:
|
|
|
|
virtual ~Machine();
|
|
|
|
|
|
|
|
/// Creates and returns a PC Compatible.
|
|
|
|
static Machine *PCCompatible(
|
|
|
|
const Analyser::Static::Target *target,
|
|
|
|
const ROMMachine::ROMFetcher &rom_fetcher
|
|
|
|
);
|
2023-12-06 18:55:41 +00:00
|
|
|
|
|
|
|
/// Defines the runtime options [sometimes] available for a PC.
|
|
|
|
class Options:
|
|
|
|
public Reflection::StructImpl<Options>,
|
|
|
|
public Configurable::DisplayOption<Options>
|
|
|
|
{
|
|
|
|
friend Configurable::DisplayOption<Options>;
|
|
|
|
public:
|
|
|
|
Options(Configurable::OptionsType) :
|
|
|
|
Configurable::DisplayOption<Options>(Configurable::Display::RGB)
|
|
|
|
{
|
|
|
|
if(needs_declare()) {
|
|
|
|
declare_display_option();
|
|
|
|
limit_enum(&output, Configurable::Display::RGB, Configurable::Display::CompositeColour, -1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2023-11-15 16:01:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* PCCompatible_hpp */
|