2020-10-21 02:18:11 +00:00
|
|
|
//
|
|
|
|
// Target.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 20/10/2020.
|
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2020-10-21 02:18:11 +00:00
|
|
|
|
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
|
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Analyser::Static::AppleIIgs {
|
2020-10-21 02:18:11 +00:00
|
|
|
|
|
|
|
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
|
|
|
ReflectableEnum(Model,
|
|
|
|
ROM00,
|
|
|
|
ROM01,
|
|
|
|
ROM03
|
|
|
|
);
|
|
|
|
ReflectableEnum(MemoryModel,
|
|
|
|
TwoHundredAndFiftySixKB,
|
|
|
|
OneMB,
|
|
|
|
EightMB
|
|
|
|
);
|
|
|
|
|
2021-09-10 02:09:09 +00:00
|
|
|
Model model = Model::ROM01;
|
2020-10-21 02:18:11 +00:00
|
|
|
MemoryModel memory_model = MemoryModel::EightMB;
|
|
|
|
|
|
|
|
Target() : Analyser::Static::Target(Machine::AppleIIgs) {
|
|
|
|
if(needs_declare()) {
|
|
|
|
DeclareField(model);
|
|
|
|
DeclareField(memory_model);
|
|
|
|
AnnounceEnum(Model);
|
|
|
|
AnnounceEnum(MemoryModel);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|