2021-07-17 00:15:36 +00:00
|
|
|
//
|
|
|
|
// Target.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 16/07/2021.
|
|
|
|
// Copyright © 2021 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2021-07-17 00:15:36 +00:00
|
|
|
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
|
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Analyser::Static::Amiga {
|
2021-07-17 00:15:36 +00:00
|
|
|
|
|
|
|
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
2021-12-22 20:30:19 +00:00
|
|
|
ReflectableEnum(ChipRAM,
|
|
|
|
FiveHundredAndTwelveKilobytes,
|
|
|
|
OneMegabyte,
|
|
|
|
TwoMegabytes);
|
2021-12-22 20:17:11 +00:00
|
|
|
ReflectableEnum(FastRAM,
|
|
|
|
None,
|
|
|
|
OneMegabyte,
|
|
|
|
TwoMegabytes,
|
|
|
|
FourMegabytes,
|
|
|
|
EightMegabytes);
|
|
|
|
|
2021-12-22 20:30:19 +00:00
|
|
|
ChipRAM chip_ram = ChipRAM::FiveHundredAndTwelveKilobytes;
|
|
|
|
FastRAM fast_ram = FastRAM::EightMegabytes;
|
2021-12-22 20:17:11 +00:00
|
|
|
|
|
|
|
Target() : Analyser::Static::Target(Machine::Amiga) {
|
|
|
|
if(needs_declare()) {
|
|
|
|
DeclareField(fast_ram);
|
2021-12-22 20:30:19 +00:00
|
|
|
DeclareField(chip_ram);
|
2021-12-22 20:17:11 +00:00
|
|
|
AnnounceEnum(FastRAM);
|
2021-12-22 20:30:19 +00:00
|
|
|
AnnounceEnum(ChipRAM);
|
2021-12-22 20:17:11 +00:00
|
|
|
}
|
|
|
|
}
|
2021-07-17 00:15:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|