2021-06-15 01:11:06 +00:00
|
|
|
//
|
|
|
|
// Target.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 14/06/2021.
|
|
|
|
// Copyright © 2021 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Analyser_Static_Enterprise_Target_h
|
|
|
|
#define Analyser_Static_Enterprise_Target_h
|
|
|
|
|
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
|
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
|
2021-07-02 02:53:23 +00:00
|
|
|
#include <string>
|
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Analyser::Static::Enterprise {
|
2021-06-15 01:11:06 +00:00
|
|
|
|
|
|
|
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
2021-06-23 01:39:07 +00:00
|
|
|
ReflectableEnum(Model, Enterprise64, Enterprise128, Enterprise256);
|
2021-06-20 02:59:09 +00:00
|
|
|
ReflectableEnum(EXOSVersion, v10, v20, v21, v23, Any);
|
|
|
|
ReflectableEnum(BASICVersion, v10, v11, v21, Any, None);
|
2021-06-23 23:32:34 +00:00
|
|
|
ReflectableEnum(DOS, EXDOS, None);
|
2021-07-08 00:57:04 +00:00
|
|
|
ReflectableEnum(Speed, FourMHz, SixMHz);
|
2021-06-15 01:11:06 +00:00
|
|
|
|
2021-06-23 01:39:07 +00:00
|
|
|
Model model = Model::Enterprise128;
|
2021-06-20 02:59:09 +00:00
|
|
|
EXOSVersion exos_version = EXOSVersion::Any;
|
|
|
|
BASICVersion basic_version = BASICVersion::None;
|
2021-06-21 00:30:54 +00:00
|
|
|
DOS dos = DOS::None;
|
2021-07-08 00:57:04 +00:00
|
|
|
Speed speed = Speed::FourMHz;
|
2021-07-02 02:53:23 +00:00
|
|
|
std::string loading_command;
|
2021-06-20 02:59:09 +00:00
|
|
|
|
|
|
|
Target() : Analyser::Static::Target(Machine::Enterprise) {
|
|
|
|
if(needs_declare()) {
|
2021-06-23 01:39:07 +00:00
|
|
|
AnnounceEnum(Model);
|
2021-06-20 02:59:09 +00:00
|
|
|
AnnounceEnum(EXOSVersion);
|
|
|
|
AnnounceEnum(BASICVersion);
|
2021-06-21 00:30:54 +00:00
|
|
|
AnnounceEnum(DOS);
|
2021-07-08 00:57:04 +00:00
|
|
|
AnnounceEnum(Speed);
|
2021-06-20 02:59:09 +00:00
|
|
|
|
2021-06-23 01:39:07 +00:00
|
|
|
DeclareField(model);
|
2021-06-20 02:59:09 +00:00
|
|
|
DeclareField(exos_version);
|
|
|
|
DeclareField(basic_version);
|
2021-06-21 00:30:54 +00:00
|
|
|
DeclareField(dos);
|
2021-07-08 00:57:04 +00:00
|
|
|
DeclareField(speed);
|
2021-06-20 02:59:09 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-15 01:11:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* Analyser_Static_Enterprise_Target_h */
|