2018-04-21 21:21:57 -07:00
|
|
|
//
|
|
|
|
// Target.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 21/04/2018.
|
2018-05-13 15:19:52 -04:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-04-21 21:21:57 -07:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Target_h
|
|
|
|
#define Target_h
|
|
|
|
|
2020-03-19 23:24:06 -04:00
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
2018-04-21 21:21:57 -07:00
|
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
|
|
|
|
namespace Analyser {
|
|
|
|
namespace Static {
|
|
|
|
namespace AppleII {
|
|
|
|
|
2020-03-15 00:13:38 -04:00
|
|
|
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
2020-03-11 23:28:38 -04:00
|
|
|
ReflectableEnum(Model,
|
2018-05-03 19:37:32 -04:00
|
|
|
II,
|
2018-07-24 22:15:42 -04:00
|
|
|
IIplus,
|
2018-08-11 10:26:30 -04:00
|
|
|
IIe,
|
|
|
|
EnhancedIIe
|
2020-03-11 23:25:29 -04:00
|
|
|
);
|
2020-03-11 23:28:38 -04:00
|
|
|
ReflectableEnum(DiskController,
|
2018-05-03 19:37:32 -04:00
|
|
|
None,
|
|
|
|
SixteenSector,
|
|
|
|
ThirteenSector
|
2020-03-11 23:25:29 -04:00
|
|
|
);
|
2018-05-03 19:37:32 -04:00
|
|
|
|
2018-07-30 23:07:34 -04:00
|
|
|
Model model = Model::IIe;
|
2018-05-03 19:37:32 -04:00
|
|
|
DiskController disk_controller = DiskController::None;
|
2020-03-11 23:25:29 -04:00
|
|
|
|
2020-03-15 00:13:38 -04:00
|
|
|
Target() : Analyser::Static::Target(Machine::AppleII) {
|
2020-03-11 23:25:29 -04:00
|
|
|
if(needs_declare()) {
|
|
|
|
DeclareField(model);
|
|
|
|
DeclareField(disk_controller);
|
|
|
|
AnnounceEnum(Model);
|
|
|
|
AnnounceEnum(DiskController);
|
|
|
|
}
|
|
|
|
}
|
2018-04-21 21:21:57 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* Target_h */
|