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
|
|
|
//
|
|
|
|
|
2018-04-03 02:42:41 +00:00
|
|
|
#ifndef Analyser_Static_Oric_Target_h
|
|
|
|
#define Analyser_Static_Oric_Target_h
|
2018-03-09 21:07:29 +00:00
|
|
|
|
2020-03-12 03:25:29 +00:00
|
|
|
#include "../../../Reflection/Enum.h"
|
|
|
|
#include "../../../Reflection/Struct.h"
|
2018-04-14 16:12:12 +00:00
|
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
#include <string>
|
|
|
|
|
2018-03-09 21:07:29 +00:00
|
|
|
namespace Analyser {
|
|
|
|
namespace Static {
|
|
|
|
namespace Oric {
|
|
|
|
|
2020-03-13 00:56:02 +00:00
|
|
|
struct Target: public ::Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
2020-03-12 03:28:38 +00:00
|
|
|
ReflectableEnum(ROM,
|
2018-05-09 02:05:43 +00:00
|
|
|
BASIC10,
|
|
|
|
BASIC11,
|
|
|
|
Pravetz
|
2020-03-12 03:25:29 +00:00
|
|
|
);
|
2018-05-09 02:05:43 +00:00
|
|
|
|
2020-03-12 03:28:38 +00:00
|
|
|
ReflectableEnum(DiskInterface,
|
2020-03-12 03:25:29 +00:00
|
|
|
None,
|
2018-05-09 02:05:43 +00:00
|
|
|
Microdisc,
|
|
|
|
Pravetz,
|
2020-01-05 23:44:58 +00:00
|
|
|
Jasmin,
|
2020-03-12 03:25:29 +00:00
|
|
|
BD500
|
|
|
|
);
|
2018-05-09 02:05:43 +00:00
|
|
|
|
|
|
|
ROM rom = ROM::BASIC11;
|
|
|
|
DiskInterface disk_interface = DiskInterface::None;
|
2018-04-14 16:12:12 +00:00
|
|
|
std::string loading_command;
|
2020-01-06 02:57:33 +00:00
|
|
|
bool should_start_jasmin = false;
|
2020-03-12 03:25:29 +00:00
|
|
|
|
|
|
|
Target() {
|
|
|
|
if(needs_declare()) {
|
|
|
|
DeclareField(rom);
|
|
|
|
DeclareField(disk_interface);
|
|
|
|
AnnounceEnum(ROM);
|
|
|
|
AnnounceEnum(DiskInterface);
|
|
|
|
}
|
|
|
|
}
|
2018-03-09 21:07:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-03 02:42:41 +00:00
|
|
|
#endif /* Analyser_Static_Oric_Target_h */
|