mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
44 lines
893 B
C++
44 lines
893 B
C++
//
|
|
// Atari2600.hpp
|
|
// CLK
|
|
//
|
|
// Created by Thomas Harte on 14/07/2015.
|
|
// Copyright © 2015 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Atari2600_cpp
|
|
#define Atari2600_cpp
|
|
|
|
#include "../ConfigurationTarget.hpp"
|
|
#include "../CRTMachine.hpp"
|
|
|
|
#include "Atari2600Inputs.h"
|
|
|
|
namespace Atari2600 {
|
|
|
|
/*!
|
|
Models an Atari 2600.
|
|
*/
|
|
class Machine:
|
|
public CRTMachine::Machine,
|
|
public ConfigurationTarget::Machine {
|
|
public:
|
|
virtual ~Machine();
|
|
|
|
/// Creates and returns an Atari 2600 on the heap.
|
|
static Machine *Atari2600();
|
|
|
|
/// Sets @c input to @c state.
|
|
virtual void set_digital_input(Atari2600DigitalInput input, bool state) = 0;
|
|
|
|
/// Sets the switch @c input to @c state.
|
|
virtual void set_switch_is_enabled(Atari2600Switch input, bool state) = 0;
|
|
|
|
// Presses or releases the reset button.
|
|
virtual void set_reset_switch(bool state) = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* Atari2600_cpp */
|