mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-04 15:05:36 +00:00
5287c57ee0
Albeit that there is no underlying machine yet.
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
//
|
|
// TargetPlatforms.h
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 27/08/2017.
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef TargetPlatforms_hpp
|
|
#define TargetPlatforms_hpp
|
|
|
|
namespace TargetPlatform {
|
|
|
|
typedef int IntType;
|
|
|
|
// The below is somehwat overspecified because some of the file formats already supported by this
|
|
// emulator can self-specify platforms beyond those the emulator otherwise implements.
|
|
enum Type: IntType {
|
|
AmstradCPC = 1 << 0,
|
|
AppleII = 1 << 1,
|
|
AppleIIgs = 1 << 2,
|
|
Atari2600 = 1 << 3,
|
|
AtariST = 1 << 4,
|
|
AcornAtom = 1 << 5,
|
|
AcornElectron = 1 << 6,
|
|
BBCMaster = 1 << 7,
|
|
BBCModelA = 1 << 8,
|
|
BBCModelB = 1 << 9,
|
|
ColecoVision = 1 << 10,
|
|
Commodore = 1 << 11,
|
|
DiskII = 1 << 12,
|
|
Sega = 1 << 13,
|
|
Macintosh = 1 << 14,
|
|
MSX = 1 << 15,
|
|
Oric = 1 << 16,
|
|
ZX80 = 1 << 17,
|
|
ZX81 = 1 << 18,
|
|
|
|
Acorn = AcornAtom | AcornElectron | BBCMaster | BBCModelA | BBCModelB,
|
|
ZX8081 = ZX80 | ZX81,
|
|
AllCartridge = Atari2600 | AcornElectron | ColecoVision | MSX,
|
|
AllDisk = Acorn | AmstradCPC | Commodore | Oric | MSX, // TODO: | AtariST
|
|
AllTape = Acorn | AmstradCPC | Commodore | Oric | ZX80 | ZX81 | MSX,
|
|
};
|
|
|
|
class TypeDistinguisher {
|
|
public:
|
|
virtual Type target_platform_type() = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* TargetPlatforms_h */
|