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