2017-07-31 02:05:29 +00:00
|
|
|
//
|
|
|
|
// AmstradCPC.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 30/07/2017.
|
|
|
|
// Copyright © 2017 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef AmstradCPC_hpp
|
|
|
|
#define AmstradCPC_hpp
|
|
|
|
|
|
|
|
#include "../ConfigurationTarget.hpp"
|
|
|
|
#include "../CRTMachine.hpp"
|
2017-08-03 16:38:22 +00:00
|
|
|
#include "../KeyboardMachine.hpp"
|
2017-07-31 02:05:29 +00:00
|
|
|
|
2017-08-03 16:45:42 +00:00
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
|
2017-07-31 02:05:29 +00:00
|
|
|
namespace AmstradCPC {
|
|
|
|
|
2017-08-05 23:20:38 +00:00
|
|
|
enum ROMType: int {
|
|
|
|
OS464 = 0, BASIC464,
|
|
|
|
OS664, BASIC664,
|
|
|
|
OS6128, BASIC6128,
|
2017-07-31 22:44:49 +00:00
|
|
|
AMSDOS
|
|
|
|
};
|
|
|
|
|
2017-08-03 00:37:26 +00:00
|
|
|
/*!
|
2017-08-16 18:53:03 +00:00
|
|
|
Models an Amstrad CPC.
|
2017-08-03 00:37:26 +00:00
|
|
|
*/
|
2017-07-31 02:05:29 +00:00
|
|
|
class Machine:
|
|
|
|
public CRTMachine::Machine,
|
2017-08-03 16:38:22 +00:00
|
|
|
public ConfigurationTarget::Machine,
|
|
|
|
public KeyboardMachine::Machine {
|
2017-07-31 02:05:29 +00:00
|
|
|
public:
|
2017-08-11 16:07:48 +00:00
|
|
|
virtual ~Machine();
|
|
|
|
|
2017-08-16 19:33:40 +00:00
|
|
|
/// Creates and returns an Amstrad CPC.
|
2017-08-01 02:32:04 +00:00
|
|
|
static Machine *AmstradCPC();
|
2017-08-01 21:31:56 +00:00
|
|
|
|
2017-08-03 00:37:26 +00:00
|
|
|
/// Sets the contents of rom @c type to @c data. Assumed to be a setup step; has no effect once a machine is running.
|
2017-11-08 02:19:51 +00:00
|
|
|
virtual void set_rom(ROMType type, const std::vector<uint8_t> &data) = 0;
|
2017-07-31 02:05:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* AmstradCPC_hpp */
|