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
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Target_h
|
|
|
|
#define Target_h
|
|
|
|
|
2020-03-12 03:25:29 +00:00
|
|
|
#include "../../../Reflection/Enum.h"
|
|
|
|
#include "../../../Reflection/Struct.h"
|
2018-04-22 04:21:57 +00:00
|
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
|
|
|
|
namespace Analyser {
|
|
|
|
namespace Static {
|
|
|
|
namespace AppleII {
|
|
|
|
|
2020-03-12 03:25:29 +00:00
|
|
|
struct Target: public ::Analyser::Static::Target, public Reflection::Struct<Target> {
|
|
|
|
ReflectableEnum(Model, int,
|
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
|
|
|
);
|
|
|
|
ReflectableEnum(DiskController, int,
|
2018-05-03 23:37:32 +00:00
|
|
|
None,
|
|
|
|
SixteenSector,
|
|
|
|
ThirteenSector
|
2020-03-12 03:25:29 +00:00
|
|
|
);
|
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;
|
2020-03-12 03:25:29 +00:00
|
|
|
|
|
|
|
Target() {
|
|
|
|
if(needs_declare()) {
|
|
|
|
DeclareField(model);
|
|
|
|
DeclareField(disk_controller);
|
|
|
|
AnnounceEnum(Model);
|
|
|
|
AnnounceEnum(DiskController);
|
|
|
|
}
|
|
|
|
}
|
2018-04-22 04:21:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* Target_h */
|