2019-10-03 22:10:10 -04:00
|
|
|
//
|
|
|
|
// Target.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 03/06/2019.
|
|
|
|
// Copyright © 2019 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-16 23:34:46 -05:00
|
|
|
#pragma once
|
2019-10-03 22:10:10 -04:00
|
|
|
|
2020-03-19 23:24:06 -04:00
|
|
|
#include "../../../Reflection/Struct.hpp"
|
2020-03-15 00:13:38 -04:00
|
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
|
2023-05-10 16:02:18 -05:00
|
|
|
namespace Analyser::Static::AtariST {
|
2019-10-03 22:10:10 -04:00
|
|
|
|
2020-03-15 00:13:38 -04:00
|
|
|
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
2022-08-10 12:00:06 -04:00
|
|
|
ReflectableEnum(MemorySize,
|
|
|
|
FiveHundredAndTwelveKilobytes,
|
|
|
|
OneMegabyte,
|
|
|
|
FourMegabytes);
|
|
|
|
MemorySize memory_size = MemorySize::OneMegabyte;
|
|
|
|
|
|
|
|
Target() : Analyser::Static::Target(Machine::AtariST) {
|
|
|
|
if(needs_declare()) {
|
|
|
|
DeclareField(memory_size);
|
|
|
|
AnnounceEnum(MemorySize);
|
|
|
|
}
|
|
|
|
}
|
2019-10-03 22:10:10 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|