2016-10-12 02:20:13 +00:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2017-11-19 00:48:10 +00:00
|
|
|
#include "../../Configurable/Configurable.hpp"
|
2016-10-12 02:20:13 +00:00
|
|
|
#include "../ConfigurationTarget.hpp"
|
|
|
|
#include "../CRTMachine.hpp"
|
2017-08-16 18:35:53 +00:00
|
|
|
#include "../KeyboardMachine.hpp"
|
2016-11-04 02:14:40 +00:00
|
|
|
|
2016-10-12 02:20:13 +00:00
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace Oric {
|
|
|
|
|
2017-08-16 18:35:53 +00:00
|
|
|
enum ROM {
|
2017-11-07 03:14:15 +00:00
|
|
|
BASIC10 = 0, BASIC11, Microdisc, Colour
|
2017-08-16 18:35:53 +00:00
|
|
|
};
|
|
|
|
|
2017-11-21 02:55:32 +00:00
|
|
|
/// @returns The options available for an Oric.
|
|
|
|
std::vector<std::unique_ptr<Configurable::Option>> get_options();
|
|
|
|
|
2017-08-16 18:35:53 +00:00
|
|
|
/*!
|
|
|
|
Models an Oric 1/Atmos with or without a Microdisc.
|
|
|
|
*/
|
2016-10-12 02:20:13 +00:00
|
|
|
class Machine:
|
|
|
|
public CRTMachine::Machine,
|
2016-10-14 00:50:55 +00:00
|
|
|
public ConfigurationTarget::Machine,
|
2017-11-19 00:48:10 +00:00
|
|
|
public KeyboardMachine::Machine,
|
|
|
|
public Configurable::Device {
|
2016-10-12 02:20:13 +00:00
|
|
|
public:
|
2017-08-16 18:35:53 +00:00
|
|
|
virtual ~Machine();
|
2016-10-15 01:35:15 +00:00
|
|
|
|
2017-08-16 19:33:40 +00:00
|
|
|
/// Creates and returns an Oric.
|
2017-08-16 18:35:53 +00:00
|
|
|
static Machine *Oric();
|
2016-10-16 01:04:21 +00:00
|
|
|
|
2017-08-16 18:35:53 +00:00
|
|
|
/// 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;
|
2016-11-22 14:22:00 +00:00
|
|
|
|
2017-08-16 18:35:53 +00:00
|
|
|
/// Enables or disables turbo-speed tape loading.
|
|
|
|
virtual void set_use_fast_tape_hack(bool activate) = 0;
|
2016-11-25 12:15:48 +00:00
|
|
|
|
2017-08-16 18:35:53 +00:00
|
|
|
/// Sets the type of display the Oric is connected to.
|
|
|
|
virtual void set_output_device(Outputs::CRT::OutputDevice output_device) = 0;
|
2016-10-12 02:20:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif /* Oric_hpp */
|