mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-10 12:29:01 +00:00
67 lines
1.1 KiB
C++
67 lines
1.1 KiB
C++
//
|
|
// StaticAnalyser.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 23/08/2016.
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef StaticAnalyser_hpp
|
|
#define StaticAnalyser_hpp
|
|
|
|
#include "../Storage/Tape/Tape.hpp"
|
|
#include "../Storage/Disk/Disk.hpp"
|
|
#include "../Storage/Cartridge/Cartridge.hpp"
|
|
|
|
#include <string>
|
|
#include <list>
|
|
#include <vector>
|
|
|
|
namespace StaticAnalyser {
|
|
|
|
enum Machine {
|
|
Atari2600,
|
|
Electron,
|
|
Vic20
|
|
};
|
|
|
|
struct Target {
|
|
Machine machine;
|
|
float probability;
|
|
|
|
union {
|
|
enum class Vic20 {
|
|
Unexpanded,
|
|
EightKB,
|
|
ThirtyTwoKB
|
|
} vic20;
|
|
} memoryModel;
|
|
|
|
union {
|
|
struct {
|
|
bool adfs;
|
|
bool dfs;
|
|
} acorn;
|
|
struct {
|
|
bool c1540;
|
|
} vic20;
|
|
} externalHardware;
|
|
|
|
std::string loadingCommand;
|
|
union {
|
|
struct {
|
|
bool holdShift;
|
|
} acorn;
|
|
} loadingMethod;
|
|
|
|
std::list<std::shared_ptr<Storage::Disk::Disk>> disks;
|
|
std::list<std::shared_ptr<Storage::Tape::Tape>> tapes;
|
|
std::list<std::shared_ptr<Storage::Cartridge::Cartridge>> cartridges;
|
|
};
|
|
|
|
std::list<Target> GetTargets(const char *file_name);
|
|
|
|
}
|
|
|
|
#endif /* StaticAnalyser_hpp */
|