mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
1fa94e1b08
This also means it'll be exposed via the SDL build, but that's okay.
64 lines
1.2 KiB
C++
64 lines
1.2 KiB
C++
//
|
|
// Target.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 09/03/2018.
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Analyser_Static_Oric_Target_h
|
|
#define Analyser_Static_Oric_Target_h
|
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
#include "../../../Reflection/Struct.hpp"
|
|
#include "../StaticAnalyser.hpp"
|
|
#include <string>
|
|
|
|
namespace Analyser {
|
|
namespace Static {
|
|
namespace Oric {
|
|
|
|
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
|
ReflectableEnum(ROM,
|
|
BASIC10,
|
|
BASIC11,
|
|
Pravetz
|
|
);
|
|
|
|
ReflectableEnum(DiskInterface,
|
|
None,
|
|
Microdisc,
|
|
Pravetz,
|
|
Jasmin,
|
|
BD500
|
|
);
|
|
|
|
ReflectableEnum(Processor,
|
|
MOS6502,
|
|
WDC65816
|
|
);
|
|
|
|
ROM rom = ROM::BASIC11;
|
|
DiskInterface disk_interface = DiskInterface::None;
|
|
Processor processor = Processor::MOS6502;
|
|
std::string loading_command;
|
|
bool should_start_jasmin = false;
|
|
|
|
Target(): Analyser::Static::Target(Machine::Oric) {
|
|
if(needs_declare()) {
|
|
DeclareField(rom);
|
|
DeclareField(disk_interface);
|
|
DeclareField(processor);
|
|
AnnounceEnum(ROM);
|
|
AnnounceEnum(DiskInterface);
|
|
AnnounceEnum(Processor);
|
|
}
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif /* Analyser_Static_Oric_Target_h */
|