2018-03-09 20:36:11 +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 20:36:11 +00:00
|
|
|
//
|
|
|
|
|
2018-04-03 02:42:41 +00:00
|
|
|
#ifndef Analyser_Static_ZX8081_Target_h
|
|
|
|
#define Analyser_Static_ZX8081_Target_h
|
2018-03-09 20:36:11 +00:00
|
|
|
|
2020-03-20 03:24:06 +00:00
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
2018-03-09 20:36:11 +00:00
|
|
|
#include "../StaticAnalyser.hpp"
|
2018-04-14 16:12:12 +00:00
|
|
|
#include <string>
|
2018-03-09 20:36:11 +00:00
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Analyser::Static::ZX8081 {
|
2018-03-09 20:36:11 +00:00
|
|
|
|
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(MemoryModel,
|
2018-03-09 20:36:11 +00:00
|
|
|
Unexpanded,
|
|
|
|
SixteenKB,
|
|
|
|
SixtyFourKB
|
2020-03-12 03:25:29 +00:00
|
|
|
);
|
2018-03-09 20:36:11 +00:00
|
|
|
|
2018-03-23 01:58:42 +00:00
|
|
|
MemoryModel memory_model = MemoryModel::Unexpanded;
|
2018-04-03 02:42:41 +00:00
|
|
|
bool is_ZX81 = false;
|
|
|
|
bool ZX80_uses_ZX81_ROM = false;
|
2018-04-14 16:12:12 +00:00
|
|
|
std::string loading_command;
|
2020-03-12 03:25:29 +00:00
|
|
|
|
2020-03-15 04:13:38 +00:00
|
|
|
Target(): Analyser::Static::Target(Machine::ZX8081) {
|
2020-03-12 03:25:29 +00:00
|
|
|
if(needs_declare()) {
|
|
|
|
DeclareField(memory_model);
|
|
|
|
DeclareField(is_ZX81);
|
|
|
|
DeclareField(ZX80_uses_ZX81_ROM);
|
|
|
|
AnnounceEnum(MemoryModel);
|
|
|
|
}
|
|
|
|
}
|
2018-03-09 20:36:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-04-03 02:42:41 +00:00
|
|
|
#endif /* Analyser_Static_ZX8081_Target_h */
|