mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +00:00
9e0907ee76
At least for now. Standardising on how column + row is encoded might be helpful.
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
//
|
|
// Oric.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 11/10/2016.
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Oric_hpp
|
|
#define Oric_hpp
|
|
|
|
#include "../ConfigurationTarget.hpp"
|
|
#include "../CRTMachine.hpp"
|
|
#include "../KeyboardMachine.hpp"
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
namespace Oric {
|
|
|
|
enum ROM {
|
|
BASIC10, BASIC11, Microdisc, Colour
|
|
};
|
|
|
|
/*!
|
|
Models an Oric 1/Atmos with or without a Microdisc.
|
|
*/
|
|
class Machine:
|
|
public CRTMachine::Machine,
|
|
public ConfigurationTarget::Machine,
|
|
public KeyboardMachine::Machine {
|
|
public:
|
|
virtual ~Machine();
|
|
|
|
/// Creates and returns an Oric.
|
|
static Machine *Oric();
|
|
|
|
/// Sets the contents of @c rom to @c data. Assumed to be a setup step; has no effect once a machine is running.
|
|
virtual void set_rom(ROM rom, const std::vector<uint8_t> &data) = 0;
|
|
|
|
/// Enables or disables turbo-speed tape loading.
|
|
virtual void set_use_fast_tape_hack(bool activate) = 0;
|
|
|
|
/// Sets the type of display the Oric is connected to.
|
|
virtual void set_output_device(Outputs::CRT::OutputDevice output_device) = 0;
|
|
};
|
|
|
|
}
|
|
#endif /* Oric_hpp */
|