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