2018-03-09 21:10:17 +00:00
|
|
|
//
|
|
|
|
// Target.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 09/03/2018.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-03-09 21:10:17 +00:00
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2018-03-09 21:10:17 +00:00
|
|
|
|
2020-03-20 03:24:06 +00:00
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
2018-03-09 21:10:17 +00:00
|
|
|
#include "../StaticAnalyser.hpp"
|
2018-04-14 16:12:12 +00:00
|
|
|
#include <string>
|
2018-03-09 21:10:17 +00:00
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Analyser::Static::AmstradCPC {
|
2018-03-09 21:10:17 +00:00
|
|
|
|
2020-03-15 04:13:38 +00:00
|
|
|
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
2020-03-12 03:28:38 +00:00
|
|
|
ReflectableEnum(Model, CPC464, CPC664, CPC6128);
|
2018-03-23 01:58:42 +00:00
|
|
|
Model model = Model::CPC464;
|
2018-04-14 16:12:12 +00:00
|
|
|
std::string loading_command;
|
2020-03-12 03:25:29 +00:00
|
|
|
|
2024-07-01 00:19:02 +00:00
|
|
|
ReflectableEnum(CRTCType, Type0, Type1, Type2, Type3);
|
|
|
|
CRTCType crtc_type = CRTCType::Type2;
|
|
|
|
|
2024-06-27 01:53:11 +00:00
|
|
|
// This is used internally for testing; it therefore isn't exposed reflectively.
|
|
|
|
bool catch_ssm_codes = false;
|
|
|
|
|
2024-12-07 16:15:38 +00:00
|
|
|
Target() : Analyser::Static::Target(Machine::AmstradCPC) {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
friend Reflection::StructImpl<Target>;
|
|
|
|
void declare_fields() {
|
|
|
|
DeclareField(model);
|
|
|
|
DeclareField(crtc_type);
|
|
|
|
AnnounceEnum(Model);
|
|
|
|
AnnounceEnum(CRTCType);
|
2020-03-12 03:25:29 +00:00
|
|
|
}
|
2018-03-09 21:10:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|