2016-01-05 04:12:47 +00:00
|
|
|
//
|
|
|
|
// Electron.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 03/01/2016.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2016 Thomas Harte. All rights reserved.
|
2016-01-05 04:12:47 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Electron_hpp
|
|
|
|
#define Electron_hpp
|
|
|
|
|
2017-11-18 04:02:00 +00:00
|
|
|
#include "../../Configurable/Configurable.hpp"
|
2018-07-11 00:00:46 +00:00
|
|
|
#include "../../Analyser/Static/StaticAnalyser.hpp"
|
|
|
|
#include "../ROMMachine.hpp"
|
2016-06-19 21:25:35 +00:00
|
|
|
|
|
|
|
#include <cstdint>
|
2018-06-10 22:28:29 +00:00
|
|
|
#include <memory>
|
2016-09-20 11:36:57 +00:00
|
|
|
#include <vector>
|
2016-01-05 04:12:47 +00:00
|
|
|
|
|
|
|
namespace Electron {
|
|
|
|
|
2017-11-21 02:55:32 +00:00
|
|
|
/// @returns The options available for an Electron.
|
|
|
|
std::vector<std::unique_ptr<Configurable::Option>> get_options();
|
|
|
|
|
2016-01-23 05:14:44 +00:00
|
|
|
/*!
|
2016-01-21 02:55:38 +00:00
|
|
|
@abstract Represents an Acorn Electron.
|
2017-11-08 03:54:22 +00:00
|
|
|
|
2016-01-21 02:55:38 +00:00
|
|
|
@discussion An instance of Electron::Machine represents the current state of an
|
|
|
|
Acorn Electron.
|
|
|
|
*/
|
2018-03-09 20:19:02 +00:00
|
|
|
class Machine {
|
2016-01-05 04:12:47 +00:00
|
|
|
public:
|
2017-08-16 19:33:40 +00:00
|
|
|
virtual ~Machine();
|
|
|
|
|
|
|
|
/// Creates and returns an Electron.
|
2018-07-11 00:00:46 +00:00
|
|
|
static Machine *Electron(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
2016-01-05 04:12:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* Electron_hpp */
|