2018-04-14 23:46:15 +00:00
|
|
|
//
|
|
|
|
// AppleII.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 14/04/2018.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-04-14 23:46:15 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef AppleII_hpp
|
|
|
|
#define AppleII_hpp
|
|
|
|
|
2020-03-18 01:53:26 +00:00
|
|
|
#include "../../../Configurable/Configurable.hpp"
|
|
|
|
#include "../../../Configurable/StandardOptions.hpp"
|
2019-05-03 22:14:10 +00:00
|
|
|
#include "../../../Analyser/Static/StaticAnalyser.hpp"
|
|
|
|
#include "../../ROMMachine.hpp"
|
2018-06-10 22:28:29 +00:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Apple::II {
|
2018-04-14 23:46:15 +00:00
|
|
|
|
|
|
|
class Machine {
|
|
|
|
public:
|
|
|
|
virtual ~Machine();
|
|
|
|
|
|
|
|
/// Creates and returns an AppleII.
|
2018-07-11 00:00:46 +00:00
|
|
|
static Machine *AppleII(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
2020-03-18 01:53:26 +00:00
|
|
|
|
|
|
|
/// Defines the runtime options available for an Apple II.
|
2020-03-18 03:52:55 +00:00
|
|
|
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options> {
|
|
|
|
friend Configurable::DisplayOption<Options>;
|
2020-03-18 01:53:26 +00:00
|
|
|
public:
|
2021-06-08 00:16:01 +00:00
|
|
|
bool use_square_pixels = false;
|
|
|
|
|
|
|
|
Options(Configurable::OptionsType) : Configurable::DisplayOption<Options>(Configurable::Display::CompositeColour) {
|
2020-03-18 01:53:26 +00:00
|
|
|
if(needs_declare()) {
|
2021-06-08 00:41:02 +00:00
|
|
|
DeclareField(use_square_pixels);
|
2020-03-18 03:52:55 +00:00
|
|
|
declare_display_option();
|
2020-03-18 01:53:26 +00:00
|
|
|
limit_enum(&output, Configurable::Display::CompositeMonochrome, Configurable::Display::CompositeColour, -1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2018-04-14 23:46:15 +00:00
|
|
|
};
|
|
|
|
|
2019-05-03 22:14:10 +00:00
|
|
|
}
|
2018-04-14 23:46:15 +00:00
|
|
|
|
|
|
|
#endif /* AppleII_hpp */
|