mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-05 06:05:27 +00:00
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
//
|
|
// 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"
|
|
|
|
#include <string>
|
|
|
|
namespace Analyser {
|
|
namespace Static {
|
|
namespace Enterprise {
|
|
|
|
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
|
ReflectableEnum(Model, Enterprise64, Enterprise128, Enterprise256);
|
|
ReflectableEnum(EXOSVersion, v10, v20, v21, v23, Any);
|
|
ReflectableEnum(BASICVersion, v10, v11, v21, Any, None);
|
|
ReflectableEnum(DOS, EXDOS, None);
|
|
ReflectableEnum(Speed, FourMHz, SixMHz);
|
|
|
|
Model model = Model::Enterprise128;
|
|
EXOSVersion exos_version = EXOSVersion::Any;
|
|
BASICVersion basic_version = BASICVersion::None;
|
|
DOS dos = DOS::None;
|
|
Speed speed = Speed::FourMHz;
|
|
std::string loading_command;
|
|
|
|
Target() : Analyser::Static::Target(Machine::Enterprise) {
|
|
if(needs_declare()) {
|
|
AnnounceEnum(Model);
|
|
AnnounceEnum(EXOSVersion);
|
|
AnnounceEnum(BASICVersion);
|
|
AnnounceEnum(DOS);
|
|
AnnounceEnum(Speed);
|
|
|
|
DeclareField(model);
|
|
DeclareField(exos_version);
|
|
DeclareField(basic_version);
|
|
DeclareField(dos);
|
|
DeclareField(speed);
|
|
}
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif /* Analyser_Static_Enterprise_Target_h */
|