2016-08-24 01:35:59 +00:00
|
|
|
//
|
|
|
|
// 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"
|
2016-08-27 17:42:51 +00:00
|
|
|
#include "../Storage/Disk/Disk.hpp"
|
2016-08-24 01:35:59 +00:00
|
|
|
#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
|
2016-08-27 18:25:16 +00:00
|
|
|
} vic20;
|
|
|
|
} memoryModel;
|
2016-08-24 01:35:59 +00:00
|
|
|
|
|
|
|
union {
|
2016-08-27 18:25:16 +00:00
|
|
|
struct {
|
|
|
|
bool adfs;
|
|
|
|
bool dfs;
|
|
|
|
} acorn;
|
|
|
|
struct {
|
|
|
|
bool c1540;
|
|
|
|
} vic20;
|
|
|
|
} externalHardware;
|
2016-08-24 01:35:59 +00:00
|
|
|
|
|
|
|
std::string loadingCommand;
|
|
|
|
union {
|
2016-08-27 18:25:16 +00:00
|
|
|
struct {
|
|
|
|
bool holdShift;
|
|
|
|
} acorn;
|
|
|
|
} loadingMethod;
|
2016-08-27 17:42:51 +00:00
|
|
|
|
2016-08-27 21:15:09 +00:00
|
|
|
std::list<std::shared_ptr<Storage::Disk::Disk>> disks;
|
2016-08-27 21:09:45 +00:00
|
|
|
std::list<std::shared_ptr<Storage::Tape::Tape>> tapes;
|
2016-08-27 17:42:51 +00:00
|
|
|
// TODO: ROMs. Probably can't model as raw data, but then how to handle bus complexities?
|
2016-08-24 01:35:59 +00:00
|
|
|
};
|
|
|
|
|
2016-08-27 17:42:51 +00:00
|
|
|
std::list<Target> GetTargets(const char *file_name);
|
2016-08-24 01:35:59 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* StaticAnalyser_hpp */
|