2019-10-04 00:17:26 +00:00
|
|
|
//
|
|
|
|
// AtariST.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 03/10/2019.
|
|
|
|
// Copyright © 2019 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2019-10-04 00:17:26 +00:00
|
|
|
|
2020-03-18 03:52:55 +00:00
|
|
|
#include "../../../Configurable/Configurable.hpp"
|
|
|
|
#include "../../../Configurable/StandardOptions.hpp"
|
2019-11-09 20:31:41 +00:00
|
|
|
#include "../../../Analyser/Static/StaticAnalyser.hpp"
|
|
|
|
#include "../../ROMMachine.hpp"
|
2019-10-04 00:17:26 +00:00
|
|
|
|
2020-03-16 03:48:53 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Atari::ST {
|
2019-10-04 00:17:26 +00:00
|
|
|
|
|
|
|
class Machine {
|
|
|
|
public:
|
2024-02-17 02:47:23 +00:00
|
|
|
virtual ~Machine() = default;
|
2019-10-04 00:17:26 +00:00
|
|
|
|
2024-01-13 03:03:19 +00:00
|
|
|
static std::unique_ptr<Machine> AtariST(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
2020-03-18 03:52:55 +00:00
|
|
|
|
|
|
|
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options> {
|
|
|
|
friend Configurable::DisplayOption<Options>;
|
|
|
|
public:
|
|
|
|
Options(Configurable::OptionsType type) : Configurable::DisplayOption<Options>(
|
2023-05-16 20:40:09 +00:00
|
|
|
type == Configurable::OptionsType::UserFriendly ? Configurable::Display::RGB : Configurable::Display::CompositeColour) {
|
2020-03-18 03:52:55 +00:00
|
|
|
if(needs_declare()) {
|
|
|
|
declare_display_option();
|
|
|
|
limit_enum(&output, Configurable::Display::RGB, Configurable::Display::CompositeColour, -1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2019-10-04 00:17:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|