2017-06-04 21:55:19 +00:00
|
|
|
//
|
|
|
|
// ZX8081.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 04/06/2017.
|
|
|
|
// Copyright © 2017 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef ZX8081_hpp
|
|
|
|
#define ZX8081_hpp
|
|
|
|
|
2017-11-19 00:48:10 +00:00
|
|
|
#include "../../Configurable/Configurable.hpp"
|
2017-06-04 21:55:19 +00:00
|
|
|
#include "../ConfigurationTarget.hpp"
|
|
|
|
#include "../CRTMachine.hpp"
|
2017-08-03 16:38:22 +00:00
|
|
|
#include "../KeyboardMachine.hpp"
|
2017-06-04 21:55:19 +00:00
|
|
|
|
2017-08-03 02:18:30 +00:00
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
|
2017-06-04 21:55:19 +00:00
|
|
|
namespace ZX8081 {
|
|
|
|
|
2017-06-04 22:08:35 +00:00
|
|
|
enum ROMType: uint8_t {
|
2017-11-07 03:14:15 +00:00
|
|
|
ZX80 = 0, ZX81
|
2017-06-04 22:08:35 +00:00
|
|
|
};
|
|
|
|
|
2017-06-04 21:55:19 +00:00
|
|
|
class Machine:
|
|
|
|
public CRTMachine::Machine,
|
2017-08-03 16:38:22 +00:00
|
|
|
public ConfigurationTarget::Machine,
|
2017-11-19 00:48:10 +00:00
|
|
|
public KeyboardMachine::Machine,
|
|
|
|
public Configurable::Device {
|
2017-06-04 21:55:19 +00:00
|
|
|
public:
|
2017-08-27 20:42:16 +00:00
|
|
|
static Machine *ZX8081(const StaticAnalyser::Target &target_hint);
|
2017-08-11 16:11:01 +00:00
|
|
|
virtual ~Machine();
|
2017-07-09 00:40:19 +00:00
|
|
|
|
2017-11-08 02:19:51 +00:00
|
|
|
virtual void set_rom(ROMType type, const std::vector<uint8_t> &data) = 0;
|
2017-06-23 00:20:31 +00:00
|
|
|
|
2017-08-03 02:12:59 +00:00
|
|
|
virtual void set_use_fast_tape_hack(bool activate) = 0;
|
|
|
|
virtual void set_tape_is_playing(bool is_playing) = 0;
|
|
|
|
virtual void set_use_automatic_tape_motor_control(bool enabled) = 0;
|
2017-06-04 21:55:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* ZX8081_hpp */
|