mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +00:00
46 lines
860 B
C++
46 lines
860 B
C++
//
|
|
// Target.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 02/04/2018.
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Analyser_Static_MSX_Target_h
|
|
#define Analyser_Static_MSX_Target_h
|
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
#include "../../../Reflection/Struct.hpp"
|
|
#include "../StaticAnalyser.hpp"
|
|
#include <string>
|
|
|
|
namespace Analyser {
|
|
namespace Static {
|
|
namespace MSX {
|
|
|
|
struct Target: public ::Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
|
bool has_disk_drive = false;
|
|
std::string loading_command;
|
|
|
|
ReflectableEnum(Region,
|
|
Japan,
|
|
USA,
|
|
Europe
|
|
);
|
|
Region region = Region::USA;
|
|
|
|
Target(): Analyser::Static::Target(Machine::MSX) {
|
|
if(needs_declare()) {
|
|
DeclareField(has_disk_drive);
|
|
DeclareField(region);
|
|
AnnounceEnum(Region);
|
|
}
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif /* Analyser_Static_MSX_Target_h */
|