2016-09-01 00:43:29 +00:00
|
|
|
//
|
|
|
|
// CSStaticAnalyser.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 31/08/2016.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2016 Thomas Harte. All rights reserved.
|
2016-09-01 00:43:29 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2020-12-31 20:23:46 +00:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2016-09-01 00:43:29 +00:00
|
|
|
@class CSMachine;
|
|
|
|
|
2021-08-07 01:58:31 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineAmigaModel) {
|
|
|
|
CSMachineAmigaModelA500,
|
|
|
|
};
|
|
|
|
|
2018-05-03 23:37:32 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineAppleIIModel) {
|
|
|
|
CSMachineAppleIIModelAppleII,
|
2018-07-25 22:58:34 +00:00
|
|
|
CSMachineAppleIIModelAppleIIPlus,
|
2018-08-11 14:26:30 +00:00
|
|
|
CSMachineAppleIIModelAppleIIe,
|
|
|
|
CSMachineAppleIIModelAppleEnhancedIIe
|
2018-05-03 23:37:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, CSMachineAppleIIDiskController) {
|
|
|
|
CSMachineAppleIIDiskControllerNone,
|
|
|
|
CSMachineAppleIIDiskControllerSixteenSector,
|
|
|
|
CSMachineAppleIIDiskControllerThirteenSector
|
|
|
|
};
|
|
|
|
|
2020-10-21 02:18:11 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineAppleIIgsModel) {
|
|
|
|
CSMachineAppleIIgsModelROM00,
|
|
|
|
CSMachineAppleIIgsModelROM01,
|
|
|
|
CSMachineAppleIIgsModelROM03,
|
|
|
|
};
|
|
|
|
|
2019-12-18 04:04:12 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineAtariSTModel) {
|
|
|
|
CSMachineAtariSTModel512k,
|
|
|
|
};
|
|
|
|
|
2018-04-03 02:42:41 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineCPCModel) {
|
|
|
|
CSMachineCPCModel464,
|
|
|
|
CSMachineCPCModel664,
|
|
|
|
CSMachineCPCModel6128
|
|
|
|
};
|
|
|
|
|
2021-06-15 00:55:39 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineEnterpriseModel) {
|
|
|
|
CSMachineEnterpriseModel64,
|
|
|
|
CSMachineEnterpriseModel128,
|
|
|
|
CSMachineEnterpriseModel256,
|
|
|
|
};
|
|
|
|
|
2021-07-08 22:50:37 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineEnterpriseSpeed) {
|
|
|
|
CSMachineEnterpriseSpeed4MHz,
|
|
|
|
CSMachineEnterpriseSpeed6MHz
|
|
|
|
};
|
|
|
|
|
2021-06-23 01:39:07 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineEnterpriseEXOS) {
|
|
|
|
CSMachineEnterpriseEXOSVersion21,
|
|
|
|
CSMachineEnterpriseEXOSVersion20,
|
|
|
|
CSMachineEnterpriseEXOSVersion10,
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, CSMachineEnterpriseBASIC) {
|
|
|
|
CSMachineEnterpriseBASICVersion21,
|
|
|
|
CSMachineEnterpriseBASICVersion11,
|
|
|
|
CSMachineEnterpriseBASICVersion10,
|
|
|
|
CSMachineEnterpriseBASICNone,
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, CSMachineEnterpriseDOS) {
|
|
|
|
CSMachineEnterpriseDOSEXDOS,
|
|
|
|
CSMachineEnterpriseDOSNone,
|
|
|
|
};
|
|
|
|
|
2019-05-04 02:16:07 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineMacintoshModel) {
|
2019-07-17 20:02:25 +00:00
|
|
|
CSMachineMacintoshModel128k,
|
|
|
|
CSMachineMacintoshModel512k,
|
|
|
|
CSMachineMacintoshModel512ke,
|
|
|
|
CSMachineMacintoshModelPlus,
|
2019-05-04 02:16:07 +00:00
|
|
|
};
|
|
|
|
|
2018-04-03 02:42:41 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineOricModel) {
|
|
|
|
CSMachineOricModelOric1,
|
2018-05-09 02:05:43 +00:00
|
|
|
CSMachineOricModelOricAtmos,
|
|
|
|
CSMachineOricModelPravetz
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, CSMachineOricDiskInterface) {
|
|
|
|
CSMachineOricDiskInterfaceNone,
|
|
|
|
CSMachineOricDiskInterfaceMicrodisc,
|
2020-01-06 02:57:33 +00:00
|
|
|
CSMachineOricDiskInterfacePravetz,
|
2020-01-16 04:56:56 +00:00
|
|
|
CSMachineOricDiskInterfaceJasmin,
|
|
|
|
CSMachineOricDiskInterfaceBD500
|
2018-04-03 02:42:41 +00:00
|
|
|
};
|
|
|
|
|
2021-03-22 01:50:50 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineSpectrumModel) {
|
2021-04-15 01:37:10 +00:00
|
|
|
CSMachineSpectrumModelSixteenK,
|
|
|
|
CSMachineSpectrumModelFortyEightK,
|
|
|
|
CSMachineSpectrumModelOneTwoEightK,
|
|
|
|
CSMachineSpectrumModelPlus2,
|
2021-03-22 01:50:50 +00:00
|
|
|
CSMachineSpectrumModelPlus2a,
|
|
|
|
CSMachineSpectrumModelPlus3,
|
|
|
|
};
|
|
|
|
|
2018-04-03 02:42:41 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineVic20Region) {
|
|
|
|
CSMachineVic20RegionAmerican,
|
|
|
|
CSMachineVic20RegionEuropean,
|
|
|
|
CSMachineVic20RegionDanish,
|
|
|
|
CSMachineVic20RegionSwedish,
|
|
|
|
CSMachineVic20RegionJapanese,
|
|
|
|
};
|
|
|
|
|
2019-03-01 01:54:43 +00:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineMSXRegion) {
|
|
|
|
CSMachineMSXRegionAmerican,
|
|
|
|
CSMachineMSXRegionEuropean,
|
|
|
|
CSMachineMSXRegionJapanese,
|
|
|
|
};
|
|
|
|
|
2018-04-03 02:42:41 +00:00
|
|
|
typedef int Kilobytes;
|
|
|
|
|
2016-09-01 00:43:29 +00:00
|
|
|
@interface CSStaticAnalyser : NSObject
|
|
|
|
|
2020-12-31 20:23:46 +00:00
|
|
|
- (nullable instancetype)initWithFileAtURL:(NSURL *)url;
|
2016-09-01 00:43:29 +00:00
|
|
|
|
2021-08-07 01:58:31 +00:00
|
|
|
- (instancetype)initWithAmigaModel:(CSMachineAmigaModel)model;
|
2018-04-03 02:42:41 +00:00
|
|
|
- (instancetype)initWithAmstradCPCModel:(CSMachineCPCModel)model;
|
2020-10-21 02:18:11 +00:00
|
|
|
- (instancetype)initWithAppleIIModel:(CSMachineAppleIIModel)model diskController:(CSMachineAppleIIDiskController)diskController;
|
|
|
|
- (instancetype)initWithAppleIIgsModel:(CSMachineAppleIIgsModel)model memorySize:(Kilobytes)memorySize;
|
|
|
|
- (instancetype)initWithAtariSTModel:(CSMachineAtariSTModel)model;
|
2021-01-31 16:47:40 +00:00
|
|
|
- (instancetype)initWithElectronDFS:(BOOL)dfs adfs:(BOOL)adfs ap6:(BOOL)ap6 sidewaysRAM:(BOOL)sidewaysRAM;
|
2021-07-08 22:50:37 +00:00
|
|
|
- (instancetype)initWithEnterpriseModel:(CSMachineEnterpriseModel)model speed:(CSMachineEnterpriseSpeed)speed exosVersion:(CSMachineEnterpriseEXOS)exosVersion basicVersion:(CSMachineEnterpriseBASIC)basicVersion dos:(CSMachineEnterpriseDOS)dos;
|
2020-10-21 02:18:11 +00:00
|
|
|
- (instancetype)initWithMacintoshModel:(CSMachineMacintoshModel)model;
|
2019-03-01 01:54:43 +00:00
|
|
|
- (instancetype)initWithMSXRegion:(CSMachineMSXRegion)region hasDiskDrive:(BOOL)hasDiskDrive;
|
2018-05-09 02:05:43 +00:00
|
|
|
- (instancetype)initWithOricModel:(CSMachineOricModel)model diskInterface:(CSMachineOricDiskInterface)diskInterface;
|
2021-03-22 01:50:50 +00:00
|
|
|
- (instancetype)initWithSpectrumModel:(CSMachineSpectrumModel)model;
|
2018-04-03 02:42:41 +00:00
|
|
|
- (instancetype)initWithVic20Region:(CSMachineVic20Region)region memorySize:(Kilobytes)memorySize hasC1540:(BOOL)hasC1540;
|
|
|
|
- (instancetype)initWithZX80MemorySize:(Kilobytes)memorySize useZX81ROM:(BOOL)useZX81ROM;
|
|
|
|
- (instancetype)initWithZX81MemorySize:(Kilobytes)memorySize;
|
|
|
|
|
2021-07-13 23:04:24 +00:00
|
|
|
@property(nonatomic, readonly, nullable) NSString *optionsNibName;
|
2016-09-13 02:15:38 +00:00
|
|
|
@property(nonatomic, readonly) NSString *displayName;
|
2016-10-02 20:31:50 +00:00
|
|
|
|
2016-09-01 00:43:29 +00:00
|
|
|
@end
|
2017-08-17 15:00:08 +00:00
|
|
|
|
|
|
|
@interface CSMediaSet : NSObject
|
|
|
|
|
|
|
|
- (instancetype)initWithFileAtURL:(NSURL *)url;
|
|
|
|
- (void)applyToMachine:(CSMachine *)machine;
|
|
|
|
|
2021-05-01 01:37:41 +00:00
|
|
|
@property(nonatomic, readonly) BOOL empty;
|
|
|
|
|
2017-08-17 15:00:08 +00:00
|
|
|
@end
|
2020-12-31 20:23:46 +00:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|