2021-03-18 14:18:17 +00:00
|
|
|
//
|
|
|
|
// Target.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 18/03/2021.
|
|
|
|
// Copyright © 2021 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2021-03-18 14:18:17 +00:00
|
|
|
|
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
|
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Analyser::Static::ZXSpectrum {
|
2021-03-18 14:18:17 +00:00
|
|
|
|
|
|
|
struct Target: public ::Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
|
|
|
ReflectableEnum(Model,
|
2021-04-15 01:37:10 +00:00
|
|
|
SixteenK,
|
|
|
|
FortyEightK,
|
|
|
|
OneTwoEightK,
|
|
|
|
Plus2,
|
2021-03-18 14:18:17 +00:00
|
|
|
Plus2a,
|
|
|
|
Plus3,
|
|
|
|
);
|
|
|
|
|
2021-04-21 22:49:39 +00:00
|
|
|
Model model = Model::Plus2;
|
2021-03-23 00:12:03 +00:00
|
|
|
bool should_hold_enter = false;
|
2021-03-18 14:18:17 +00:00
|
|
|
|
|
|
|
Target(): Analyser::Static::Target(Machine::ZXSpectrum) {
|
|
|
|
if(needs_declare()) {
|
|
|
|
DeclareField(model);
|
|
|
|
AnnounceEnum(Model);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|