mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-11 15:49:38 +00:00
39 lines
801 B
C++
39 lines
801 B
C++
//
|
|
// Target.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 03/06/2019.
|
|
// Copyright © 2019 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Analyser_Static_AtariST_Target_h
|
|
#define Analyser_Static_AtariST_Target_h
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
namespace Analyser {
|
|
namespace Static {
|
|
namespace AtariST {
|
|
|
|
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
|
ReflectableEnum(MemorySize,
|
|
FiveHundredAndTwelveKilobytes,
|
|
OneMegabyte,
|
|
FourMegabytes);
|
|
MemorySize memory_size = MemorySize::OneMegabyte;
|
|
|
|
Target() : Analyser::Static::Target(Machine::AtariST) {
|
|
if(needs_declare()) {
|
|
DeclareField(memory_size);
|
|
AnnounceEnum(MemorySize);
|
|
}
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif /* Analyser_Static_AtariST_Target_h */
|