2016-10-12 02:20:13 +00:00
|
|
|
//
|
|
|
|
// Oric.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 11/10/2016.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2016 Thomas Harte. All rights reserved.
|
2016-10-12 02:20:13 +00:00
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2016-10-12 02:20:13 +00:00
|
|
|
|
2020-03-18 22:31:31 +00:00
|
|
|
#include "../../Configurable/Configurable.hpp"
|
|
|
|
#include "../../Configurable/StandardOptions.hpp"
|
2018-05-09 02:05:43 +00:00
|
|
|
#include "../../Analyser/Static/StaticAnalyser.hpp"
|
2018-07-11 00:00:46 +00:00
|
|
|
#include "../ROMMachine.hpp"
|
2016-11-04 02:14:40 +00:00
|
|
|
|
2020-03-16 03:48:53 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2016-10-12 02:20:13 +00:00
|
|
|
namespace Oric {
|
|
|
|
|
2017-08-16 18:35:53 +00:00
|
|
|
/*!
|
|
|
|
Models an Oric 1/Atmos with or without a Microdisc.
|
|
|
|
*/
|
2024-12-07 16:15:38 +00:00
|
|
|
struct Machine {
|
|
|
|
virtual ~Machine() = default;
|
|
|
|
static std::unique_ptr<Machine> Oric(const Analyser::Static::Target *, const ROMMachine::ROMFetcher &);
|
|
|
|
|
|
|
|
class Options:
|
|
|
|
public Reflection::StructImpl<Options>,
|
|
|
|
public Configurable::DisplayOption<Options>,
|
|
|
|
public Configurable::QuickloadOption<Options>
|
|
|
|
{
|
|
|
|
friend Configurable::DisplayOption<Options>;
|
|
|
|
friend Configurable::QuickloadOption<Options>;
|
2016-10-12 02:20:13 +00:00
|
|
|
public:
|
2024-12-07 16:15:38 +00:00
|
|
|
Options(Configurable::OptionsType type) :
|
|
|
|
Configurable::DisplayOption<Options>(type == Configurable::OptionsType::UserFriendly ?
|
|
|
|
Configurable::Display::RGB : Configurable::Display::CompositeColour),
|
|
|
|
Configurable::QuickloadOption<Options>(type == Configurable::OptionsType::UserFriendly) {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
Options() : Options(Configurable::OptionsType::UserFriendly) {}
|
|
|
|
|
|
|
|
friend Reflection::StructImpl<Options>;
|
|
|
|
void declare_fields() {
|
|
|
|
declare_display_option();
|
|
|
|
declare_quickload_option();
|
|
|
|
}
|
|
|
|
};
|
2016-10-12 02:20:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|