2016-08-31 20:43:29 -04:00
|
|
|
//
|
|
|
|
// CSStaticAnalyser.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 31/08/2016.
|
2018-05-13 15:19:52 -04:00
|
|
|
// Copyright 2016 Thomas Harte. All rights reserved.
|
2016-08-31 20:43:29 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@class CSMachine;
|
|
|
|
|
2018-05-03 19:37:32 -04:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineAppleIIModel) {
|
|
|
|
CSMachineAppleIIModelAppleII,
|
2018-07-25 18:58:34 -04:00
|
|
|
CSMachineAppleIIModelAppleIIPlus,
|
2018-08-11 10:26:30 -04:00
|
|
|
CSMachineAppleIIModelAppleIIe,
|
|
|
|
CSMachineAppleIIModelAppleEnhancedIIe
|
2018-05-03 19:37:32 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, CSMachineAppleIIDiskController) {
|
|
|
|
CSMachineAppleIIDiskControllerNone,
|
|
|
|
CSMachineAppleIIDiskControllerSixteenSector,
|
|
|
|
CSMachineAppleIIDiskControllerThirteenSector
|
|
|
|
};
|
|
|
|
|
2018-04-02 22:42:41 -04:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineCPCModel) {
|
|
|
|
CSMachineCPCModel464,
|
|
|
|
CSMachineCPCModel664,
|
|
|
|
CSMachineCPCModel6128
|
|
|
|
};
|
|
|
|
|
2019-05-03 22:16:07 -04:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineMacintoshModel) {
|
2019-07-17 16:02:25 -04:00
|
|
|
CSMachineMacintoshModel128k,
|
|
|
|
CSMachineMacintoshModel512k,
|
|
|
|
CSMachineMacintoshModel512ke,
|
|
|
|
CSMachineMacintoshModelPlus,
|
2019-05-03 22:16:07 -04:00
|
|
|
};
|
|
|
|
|
2018-04-02 22:42:41 -04:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineOricModel) {
|
|
|
|
CSMachineOricModelOric1,
|
2018-05-08 22:05:43 -04:00
|
|
|
CSMachineOricModelOricAtmos,
|
|
|
|
CSMachineOricModelPravetz
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, CSMachineOricDiskInterface) {
|
|
|
|
CSMachineOricDiskInterfaceNone,
|
|
|
|
CSMachineOricDiskInterfaceMicrodisc,
|
|
|
|
CSMachineOricDiskInterfacePravetz
|
2018-04-02 22:42:41 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, CSMachineVic20Region) {
|
|
|
|
CSMachineVic20RegionAmerican,
|
|
|
|
CSMachineVic20RegionEuropean,
|
|
|
|
CSMachineVic20RegionDanish,
|
|
|
|
CSMachineVic20RegionSwedish,
|
|
|
|
CSMachineVic20RegionJapanese,
|
|
|
|
};
|
|
|
|
|
2019-02-28 20:54:43 -05:00
|
|
|
typedef NS_ENUM(NSInteger, CSMachineMSXRegion) {
|
|
|
|
CSMachineMSXRegionAmerican,
|
|
|
|
CSMachineMSXRegionEuropean,
|
|
|
|
CSMachineMSXRegionJapanese,
|
|
|
|
};
|
|
|
|
|
2018-04-02 22:42:41 -04:00
|
|
|
typedef int Kilobytes;
|
|
|
|
|
2016-08-31 20:43:29 -04:00
|
|
|
@interface CSStaticAnalyser : NSObject
|
|
|
|
|
|
|
|
- (instancetype)initWithFileAtURL:(NSURL *)url;
|
|
|
|
|
2018-04-02 22:42:41 -04:00
|
|
|
- (instancetype)initWithElectronDFS:(BOOL)dfs adfs:(BOOL)adfs;
|
|
|
|
- (instancetype)initWithAmstradCPCModel:(CSMachineCPCModel)model;
|
2019-02-28 20:54:43 -05:00
|
|
|
- (instancetype)initWithMSXRegion:(CSMachineMSXRegion)region hasDiskDrive:(BOOL)hasDiskDrive;
|
2018-05-08 22:05:43 -04:00
|
|
|
- (instancetype)initWithOricModel:(CSMachineOricModel)model diskInterface:(CSMachineOricDiskInterface)diskInterface;
|
2018-04-02 22:42:41 -04:00
|
|
|
- (instancetype)initWithVic20Region:(CSMachineVic20Region)region memorySize:(Kilobytes)memorySize hasC1540:(BOOL)hasC1540;
|
|
|
|
- (instancetype)initWithZX80MemorySize:(Kilobytes)memorySize useZX81ROM:(BOOL)useZX81ROM;
|
|
|
|
- (instancetype)initWithZX81MemorySize:(Kilobytes)memorySize;
|
2018-05-03 19:37:32 -04:00
|
|
|
- (instancetype)initWithAppleIIModel:(CSMachineAppleIIModel)model diskController:(CSMachineAppleIIDiskController)diskController;
|
2019-05-03 22:16:07 -04:00
|
|
|
- (instancetype)initWithMacintoshModel:(CSMachineMacintoshModel)model;
|
2018-04-02 22:42:41 -04:00
|
|
|
|
2016-10-02 16:31:50 -04:00
|
|
|
@property(nonatomic, readonly) NSString *optionsPanelNibName;
|
2016-09-12 22:15:38 -04:00
|
|
|
@property(nonatomic, readonly) NSString *displayName;
|
2016-10-02 16:31:50 -04:00
|
|
|
|
2016-08-31 20:43:29 -04:00
|
|
|
@end
|
2017-08-17 11:00:08 -04:00
|
|
|
|
|
|
|
@interface CSMediaSet : NSObject
|
|
|
|
|
|
|
|
- (instancetype)initWithFileAtURL:(NSURL *)url;
|
|
|
|
- (void)applyToMachine:(CSMachine *)machine;
|
|
|
|
|
|
|
|
@end
|