mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-08 03:54:27 +00:00
43 lines
897 B
C++
43 lines
897 B
C++
//
|
|
// 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
|
|
|
|
#include "../ConfigurationTarget.hpp"
|
|
#include "../CRTMachine.hpp"
|
|
#include "../KeyboardMachine.hpp"
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
namespace ZX8081 {
|
|
|
|
enum ROMType: uint8_t {
|
|
ZX80 = 0, ZX81
|
|
};
|
|
|
|
class Machine:
|
|
public CRTMachine::Machine,
|
|
public ConfigurationTarget::Machine,
|
|
public KeyboardMachine::Machine {
|
|
public:
|
|
static Machine *ZX8081(const StaticAnalyser::Target &target_hint);
|
|
virtual ~Machine();
|
|
|
|
virtual void set_rom(ROMType type, const std::vector<uint8_t> &data) = 0;
|
|
|
|
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;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* ZX8081_hpp */
|