2018-03-09 21:07:29 +00:00
|
|
|
//
|
|
|
|
// Target.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 09/03/2018.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-03-09 21:07:29 +00:00
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2018-03-09 21:07:29 +00:00
|
|
|
|
2020-03-20 03:24:06 +00:00
|
|
|
#include "../../../Reflection/Struct.hpp"
|
2018-03-09 21:07:29 +00:00
|
|
|
#include "../StaticAnalyser.hpp"
|
2018-04-14 16:12:12 +00:00
|
|
|
#include <string>
|
2018-03-09 21:07:29 +00:00
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Analyser::Static::Acorn {
|
2018-03-09 21:07:29 +00:00
|
|
|
|
2024-05-14 01:42:38 +00:00
|
|
|
struct ElectronTarget: public ::Analyser::Static::Target, public Reflection::StructImpl<ElectronTarget> {
|
2021-01-31 18:12:59 +00:00
|
|
|
bool has_acorn_adfs = false;
|
|
|
|
bool has_pres_adfs = false;
|
2018-03-23 01:58:42 +00:00
|
|
|
bool has_dfs = false;
|
2021-01-31 00:38:19 +00:00
|
|
|
bool has_ap6_rom = false;
|
|
|
|
bool has_sideways_ram = false;
|
2018-03-23 01:58:42 +00:00
|
|
|
bool should_shift_restart = false;
|
2018-04-14 16:12:12 +00:00
|
|
|
std::string loading_command;
|
2020-03-12 03:25:29 +00:00
|
|
|
|
2024-05-14 01:42:38 +00:00
|
|
|
ElectronTarget() : Analyser::Static::Target(Machine::Electron) {
|
2020-03-12 03:25:29 +00:00
|
|
|
if(needs_declare()) {
|
2021-01-31 18:12:59 +00:00
|
|
|
DeclareField(has_pres_adfs);
|
|
|
|
DeclareField(has_acorn_adfs);
|
2020-03-12 03:25:29 +00:00
|
|
|
DeclareField(has_dfs);
|
2021-01-31 00:38:19 +00:00
|
|
|
DeclareField(has_ap6_rom);
|
|
|
|
DeclareField(has_sideways_ram);
|
2020-03-12 03:25:29 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-09 21:07:29 +00:00
|
|
|
};
|
|
|
|
|
2024-05-14 01:42:38 +00:00
|
|
|
struct ArchimedesTarget: public ::Analyser::Static::Target, public Reflection::StructImpl<ArchimedesTarget> {
|
|
|
|
std::string main_program;
|
|
|
|
|
|
|
|
ArchimedesTarget() : Analyser::Static::Target(Machine::Archimedes) {}
|
|
|
|
};
|
|
|
|
|
2018-03-09 21:07:29 +00:00
|
|
|
}
|