1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-20 21:30:59 +00:00

40 lines
938 B
C++
Raw Normal View History

2018-03-09 16:10:17 -05:00
//
// Target.hpp
// Clock Signal
//
// Created by Thomas Harte on 09/03/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
2018-03-09 16:10:17 -05:00
//
#pragma once
2018-03-09 16:10:17 -05:00
#include "../../../Reflection/Enum.hpp"
#include "../../../Reflection/Struct.hpp"
2018-03-09 16:10:17 -05:00
#include "../StaticAnalyser.hpp"
#include <string>
2018-03-09 16:10:17 -05:00
2023-05-10 16:02:18 -05:00
namespace Analyser::Static::AmstradCPC {
2018-03-09 16:10:17 -05:00
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
ReflectableEnum(Model, CPC464, CPC664, CPC6128);
Model model = Model::CPC464;
std::string loading_command;
2024-06-30 20:19:02 -04:00
ReflectableEnum(CRTCType, Type0, Type1, Type2, Type3);
CRTCType crtc_type = CRTCType::Type2;
2024-06-26 21:53:11 -04:00
// This is used internally for testing; it therefore isn't exposed reflectively.
bool catch_ssm_codes = false;
Target() : Analyser::Static::Target(Machine::AmstradCPC) {
if(needs_declare()) {
DeclareField(model);
2024-06-30 20:19:02 -04:00
DeclareField(crtc_type);
AnnounceEnum(Model);
2024-06-30 20:19:02 -04:00
AnnounceEnum(CRTCType);
}
}
2018-03-09 16:10:17 -05:00
};
}