2016-06-05 01:43:50 +00:00
|
|
|
//
|
|
|
|
// Vic20.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 04/06/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Vic20_hpp
|
|
|
|
#define Vic20_hpp
|
|
|
|
|
2016-07-10 16:57:17 +00:00
|
|
|
#include "../../CRTMachine.hpp"
|
|
|
|
#include "../../Typer.hpp"
|
|
|
|
|
2016-07-05 17:28:27 +00:00
|
|
|
#include "../../../Processors/6502/CPU6502.hpp"
|
|
|
|
#include "../../../Components/6560/6560.hpp"
|
|
|
|
#include "../../../Components/6522/6522.hpp"
|
2016-07-10 16:57:17 +00:00
|
|
|
|
2016-07-05 18:55:20 +00:00
|
|
|
#include "../SerialBus.hpp"
|
2016-07-10 16:57:17 +00:00
|
|
|
#include "../1540/C1540.hpp"
|
2016-06-19 17:10:52 +00:00
|
|
|
|
2016-07-10 16:57:17 +00:00
|
|
|
#include "../../../Storage/Tape/Tape.hpp"
|
|
|
|
#include "../../../Storage/Disk/Disk.hpp"
|
2016-06-05 01:43:50 +00:00
|
|
|
|
2016-07-05 17:28:27 +00:00
|
|
|
namespace Commodore {
|
2016-06-05 01:43:50 +00:00
|
|
|
namespace Vic20 {
|
|
|
|
|
2016-06-05 13:06:59 +00:00
|
|
|
enum ROMSlot {
|
2016-07-05 20:39:18 +00:00
|
|
|
Kernel,
|
|
|
|
BASIC,
|
|
|
|
Characters,
|
|
|
|
Drive
|
2016-06-05 13:06:59 +00:00
|
|
|
};
|
|
|
|
|
2016-08-13 21:21:25 +00:00
|
|
|
enum MemorySize {
|
|
|
|
Default,
|
|
|
|
ThreeKB,
|
|
|
|
ThirtyTwoKB
|
|
|
|
};
|
|
|
|
|
2016-08-14 17:33:20 +00:00
|
|
|
enum Region {
|
|
|
|
NTSC,
|
|
|
|
PAL
|
|
|
|
};
|
|
|
|
|
2016-06-11 15:50:37 +00:00
|
|
|
#define key(line, mask) (((mask) << 3) | (line))
|
|
|
|
|
|
|
|
enum Key: uint16_t {
|
2016-06-11 16:26:19 +00:00
|
|
|
Key2 = key(7, 0x01), Key4 = key(7, 0x02), Key6 = key(7, 0x04), Key8 = key(7, 0x08),
|
|
|
|
Key0 = key(7, 0x10), KeyDash = key(7, 0x20), KeyHome = key(7, 0x40), KeyF7 = key(7, 0x80),
|
|
|
|
KeyQ = key(6, 0x01), KeyE = key(6, 0x02), KeyT = key(6, 0x04), KeyU = key(6, 0x08),
|
|
|
|
KeyO = key(6, 0x10), KeyAt = key(6, 0x20), KeyUp = key(6, 0x40), KeyF5 = key(6, 0x80),
|
|
|
|
KeyCBM = key(5, 0x01), KeyS = key(5, 0x02), KeyF = key(5, 0x04), KeyH = key(5, 0x08),
|
|
|
|
KeyK = key(5, 0x10), KeyColon = key(5, 0x20), KeyEquals = key(5, 0x40), KeyF3 = key(5, 0x80),
|
|
|
|
KeySpace = key(4, 0x01), KeyZ = key(4, 0x02), KeyC = key(4, 0x04), KeyB = key(4, 0x08),
|
|
|
|
KeyM = key(4, 0x10), KeyFullStop = key(4, 0x20), KeyRShift = key(4, 0x40), KeyF1 = key(4, 0x80),
|
|
|
|
KeyRunStop = key(3, 0x01), KeyLShift = key(3, 0x02), KeyX = key(3, 0x04), KeyV = key(3, 0x08),
|
|
|
|
KeyN = key(3, 0x10), KeyComma = key(3, 0x20), KeySlash = key(3, 0x40), KeyDown = key(3, 0x80),
|
|
|
|
KeyControl = key(2, 0x01), KeyA = key(2, 0x02), KeyD = key(2, 0x04), KeyG = key(2, 0x08),
|
|
|
|
KeyJ = key(2, 0x10), KeyL = key(2, 0x20), KeySemicolon = key(2, 0x40), KeyRight = key(2, 0x80),
|
|
|
|
KeyLeft = key(1, 0x01), KeyW = key(1, 0x02), KeyR = key(1, 0x04), KeyY = key(1, 0x08),
|
|
|
|
KeyI = key(1, 0x10), KeyP = key(1, 0x20), KeyAsterisk = key(1, 0x40), KeyReturn = key(1, 0x80),
|
|
|
|
Key1 = key(0, 0x01), Key3 = key(0, 0x02), Key5 = key(0, 0x04), Key7 = key(0, 0x08),
|
2016-06-11 17:19:59 +00:00
|
|
|
Key9 = key(0, 0x10), KeyPlus = key(0, 0x20), KeyGBP = key(0, 0x40), KeyDelete = key(0, 0x80),
|
2016-06-19 17:46:53 +00:00
|
|
|
|
|
|
|
TerminateSequence = 0, NotMapped = 0xffff
|
2016-06-11 15:50:37 +00:00
|
|
|
};
|
|
|
|
|
2016-07-05 01:48:25 +00:00
|
|
|
enum JoystickInput {
|
|
|
|
Up = 0x04,
|
|
|
|
Down = 0x08,
|
|
|
|
Left = 0x10,
|
|
|
|
Right = 0x80,
|
|
|
|
Fire = 0x20
|
|
|
|
};
|
|
|
|
|
2016-06-18 12:51:18 +00:00
|
|
|
class UserPortVIA: public MOS::MOS6522<UserPortVIA>, public MOS::MOS6522IRQDelegate {
|
2016-06-26 23:50:49 +00:00
|
|
|
public:
|
|
|
|
uint8_t get_port_input(Port port) {
|
|
|
|
if(!port) {
|
2016-07-05 01:48:25 +00:00
|
|
|
return _portA; // TODO: bit 6 should be high if there is no tape, low otherwise
|
2016-06-26 23:50:49 +00:00
|
|
|
}
|
|
|
|
return 0xff;
|
|
|
|
}
|
2016-07-01 23:01:22 +00:00
|
|
|
|
|
|
|
void set_control_line_output(Port port, Line line, bool value) {
|
2016-07-05 14:55:47 +00:00
|
|
|
// if(port == Port::A && line == Line::Two) {
|
|
|
|
// printf("Tape motor %s\n", value ? "on" : "off");
|
|
|
|
// }
|
2016-07-01 23:01:22 +00:00
|
|
|
}
|
2016-07-04 23:10:10 +00:00
|
|
|
|
2016-07-05 20:10:54 +00:00
|
|
|
void set_serial_line_state(::Commodore::Serial::Line line, bool value) {
|
2016-07-06 11:46:21 +00:00
|
|
|
// printf("VIC Serial port line %d: %s\n", line, value ? "on" : "off");
|
2016-07-05 20:10:54 +00:00
|
|
|
switch(line) {
|
|
|
|
default: break;
|
2016-07-10 00:03:38 +00:00
|
|
|
case ::Commodore::Serial::Line::Data: _portA = (_portA & ~0x02) | (value ? 0x02 : 0x00); break;
|
|
|
|
case ::Commodore::Serial::Line::Clock: _portA = (_portA & ~0x01) | (value ? 0x01 : 0x00); break;
|
2016-07-05 20:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-05 01:48:25 +00:00
|
|
|
void set_joystick_state(JoystickInput input, bool value) {
|
|
|
|
if(input != JoystickInput::Right)
|
|
|
|
{
|
|
|
|
_portA = (_portA & ~input) | (value ? 0 : input);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-05 14:55:47 +00:00
|
|
|
void set_port_output(Port port, uint8_t value, uint8_t mask) {
|
2016-07-07 10:57:21 +00:00
|
|
|
// Line 7 of port A is inverted and output as serial ATN
|
2016-07-05 14:55:47 +00:00
|
|
|
if(!port) {
|
2016-07-05 20:10:54 +00:00
|
|
|
std::shared_ptr<::Commodore::Serial::Port> serialPort = _serialPort.lock();
|
2016-07-07 02:31:14 +00:00
|
|
|
if(serialPort)
|
2016-07-07 10:57:21 +00:00
|
|
|
serialPort->set_output(::Commodore::Serial::Line::Attention, (::Commodore::Serial::LineLevel)!(value&0x80));
|
2016-07-05 14:55:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-04 23:10:10 +00:00
|
|
|
using MOS6522IRQDelegate::set_interrupt_status;
|
2016-07-05 01:48:25 +00:00
|
|
|
|
|
|
|
UserPortVIA() : _portA(0xbf) {}
|
|
|
|
|
2016-07-05 20:10:54 +00:00
|
|
|
void set_serial_port(std::shared_ptr<::Commodore::Serial::Port> serialPort) {
|
2016-07-05 14:55:47 +00:00
|
|
|
_serialPort = serialPort;
|
|
|
|
}
|
|
|
|
|
2016-07-05 01:48:25 +00:00
|
|
|
private:
|
|
|
|
uint8_t _portA;
|
2016-07-05 20:10:54 +00:00
|
|
|
std::weak_ptr<::Commodore::Serial::Port> _serialPort;
|
2016-06-07 23:15:18 +00:00
|
|
|
};
|
|
|
|
|
2016-06-18 12:51:18 +00:00
|
|
|
class KeyboardVIA: public MOS::MOS6522<KeyboardVIA>, public MOS::MOS6522IRQDelegate {
|
2016-06-11 15:50:37 +00:00
|
|
|
public:
|
2016-07-05 01:48:25 +00:00
|
|
|
KeyboardVIA() : _portB(0xff) {
|
2016-06-26 23:03:57 +00:00
|
|
|
clear_all_keys();
|
|
|
|
}
|
|
|
|
|
2016-06-11 15:50:37 +00:00
|
|
|
void set_key_state(Key key, bool isPressed) {
|
|
|
|
if(isPressed)
|
2016-06-11 16:26:19 +00:00
|
|
|
_columns[key & 7] &= ~(key >> 3);
|
2016-06-11 15:50:37 +00:00
|
|
|
else
|
2016-06-11 16:26:19 +00:00
|
|
|
_columns[key & 7] |= (key >> 3);
|
2016-06-12 14:38:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void clear_all_keys() {
|
|
|
|
memset(_columns, 0xff, sizeof(_columns));
|
2016-06-11 15:50:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// to satisfy MOS::MOS6522
|
2016-06-26 16:30:01 +00:00
|
|
|
uint8_t get_port_input(Port port) {
|
2016-06-11 15:50:37 +00:00
|
|
|
if(!port) {
|
|
|
|
uint8_t result = 0xff;
|
|
|
|
for(int c = 0; c < 8; c++)
|
|
|
|
{
|
2016-06-11 16:26:19 +00:00
|
|
|
if(!(_activation_mask&(1 << c)))
|
|
|
|
result &= _columns[c];
|
2016-06-11 15:50:37 +00:00
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2016-07-05 01:48:25 +00:00
|
|
|
return _portB;
|
2016-06-11 15:50:37 +00:00
|
|
|
}
|
|
|
|
|
2016-06-26 16:30:01 +00:00
|
|
|
void set_port_output(Port port, uint8_t value, uint8_t mask) {
|
2016-06-11 16:26:19 +00:00
|
|
|
if(port)
|
2016-06-18 21:17:03 +00:00
|
|
|
_activation_mask = (value & mask) | (~mask);
|
2016-06-11 15:50:37 +00:00
|
|
|
}
|
|
|
|
|
2016-07-01 23:01:22 +00:00
|
|
|
void set_control_line_output(Port port, Line line, bool value) {
|
2016-07-05 14:55:47 +00:00
|
|
|
if(line == Line::Two) {
|
2016-07-05 20:10:54 +00:00
|
|
|
std::shared_ptr<::Commodore::Serial::Port> serialPort = _serialPort.lock();
|
2016-07-05 14:55:47 +00:00
|
|
|
if(serialPort) {
|
2016-07-07 10:57:21 +00:00
|
|
|
// CB2 is inverted to become serial data; CA2 is inverted to become serial clock
|
2016-07-05 14:55:47 +00:00
|
|
|
if(port == Port::A) {
|
2016-07-07 10:57:21 +00:00
|
|
|
serialPort->set_output(::Commodore::Serial::Line::Clock, (::Commodore::Serial::LineLevel)!value);
|
2016-07-05 14:55:47 +00:00
|
|
|
} else {
|
2016-07-07 10:57:21 +00:00
|
|
|
serialPort->set_output(::Commodore::Serial::Line::Data, (::Commodore::Serial::LineLevel)!value);
|
2016-07-05 14:55:47 +00:00
|
|
|
}
|
|
|
|
}
|
2016-07-01 23:01:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-05 01:48:25 +00:00
|
|
|
void set_joystick_state(JoystickInput input, bool value) {
|
|
|
|
if(input == JoystickInput::Right)
|
|
|
|
{
|
|
|
|
_portB = (_portB & ~input) | (value ? 0 : input);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-04 23:10:10 +00:00
|
|
|
using MOS6522IRQDelegate::set_interrupt_status;
|
|
|
|
|
2016-07-05 20:10:54 +00:00
|
|
|
void set_serial_port(std::shared_ptr<::Commodore::Serial::Port> serialPort) {
|
2016-07-05 14:55:47 +00:00
|
|
|
_serialPort = serialPort;
|
|
|
|
}
|
|
|
|
|
2016-06-11 15:50:37 +00:00
|
|
|
private:
|
2016-07-05 01:48:25 +00:00
|
|
|
uint8_t _portB;
|
2016-06-11 15:50:37 +00:00
|
|
|
uint8_t _columns[8];
|
|
|
|
uint8_t _activation_mask;
|
2016-07-05 20:10:54 +00:00
|
|
|
std::weak_ptr<::Commodore::Serial::Port> _serialPort;
|
|
|
|
};
|
|
|
|
|
|
|
|
class SerialPort : public ::Commodore::Serial::Port {
|
|
|
|
public:
|
2016-07-07 10:44:13 +00:00
|
|
|
void set_input(::Commodore::Serial::Line line, ::Commodore::Serial::LineLevel level) {
|
2016-07-05 20:10:54 +00:00
|
|
|
std::shared_ptr<UserPortVIA> userPortVIA = _userPortVIA.lock();
|
2016-07-07 10:44:13 +00:00
|
|
|
if(userPortVIA) userPortVIA->set_serial_line_state(line, (bool)level);
|
2016-07-05 20:10:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void set_user_port_via(std::shared_ptr<UserPortVIA> userPortVIA) {
|
|
|
|
_userPortVIA = userPortVIA;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::weak_ptr<UserPortVIA> _userPortVIA;
|
2016-06-07 23:15:18 +00:00
|
|
|
};
|
|
|
|
|
2016-06-26 23:43:09 +00:00
|
|
|
class Tape: public Storage::TapePlayer {
|
|
|
|
public:
|
|
|
|
Tape();
|
|
|
|
|
|
|
|
void set_motor_control(bool enabled);
|
|
|
|
void set_tape_output(bool set);
|
|
|
|
inline bool get_input() { return _input_level; }
|
|
|
|
|
|
|
|
class Delegate {
|
|
|
|
public:
|
|
|
|
virtual void tape_did_change_input(Tape *tape) = 0;
|
|
|
|
};
|
|
|
|
void set_delegate(Delegate *delegate)
|
|
|
|
{
|
|
|
|
_delegate = delegate;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
Delegate *_delegate;
|
|
|
|
virtual void process_input_pulse(Storage::Tape::Pulse pulse);
|
|
|
|
bool _input_level;
|
|
|
|
};
|
|
|
|
|
2016-08-10 00:41:05 +00:00
|
|
|
class Vic6560: public MOS::MOS6560<Vic6560> {
|
|
|
|
public:
|
2016-08-10 01:10:53 +00:00
|
|
|
inline void perform_read(uint16_t address, uint8_t *pixel_data, uint8_t *colour_data)
|
2016-08-10 00:41:05 +00:00
|
|
|
{
|
|
|
|
*pixel_data = _videoMemoryMap[address >> 10] ? _videoMemoryMap[address >> 10][address & 0x3ff] : 0xff; // TODO
|
|
|
|
*colour_data = _colorMemory[address & 0x03ff];
|
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t *_videoMemoryMap[16];
|
|
|
|
uint8_t *_colorMemory;
|
|
|
|
};
|
2016-06-26 23:43:09 +00:00
|
|
|
|
2016-06-19 17:10:52 +00:00
|
|
|
class Machine:
|
|
|
|
public CPU6502::Processor<Machine>,
|
|
|
|
public CRTMachine::Machine,
|
|
|
|
public MOS::MOS6522IRQDelegate::Delegate,
|
2016-06-26 23:43:09 +00:00
|
|
|
public Utility::TypeRecipient,
|
|
|
|
public Tape::Delegate {
|
2016-06-19 17:10:52 +00:00
|
|
|
|
2016-06-05 02:00:50 +00:00
|
|
|
public:
|
2016-06-05 14:51:07 +00:00
|
|
|
Machine();
|
2016-06-11 18:00:12 +00:00
|
|
|
~Machine();
|
2016-06-05 13:06:59 +00:00
|
|
|
|
|
|
|
void set_rom(ROMSlot slot, size_t length, const uint8_t *data);
|
|
|
|
void add_prg(size_t length, const uint8_t *data);
|
2016-06-25 20:24:52 +00:00
|
|
|
void set_tape(std::shared_ptr<Storage::Tape> tape);
|
2016-07-10 16:57:17 +00:00
|
|
|
void set_disk(std::shared_ptr<Storage::Disk> disk);
|
2016-06-25 20:24:52 +00:00
|
|
|
|
2016-07-05 14:55:47 +00:00
|
|
|
void set_key_state(Key key, bool isPressed) { _keyboardVIA->set_key_state(key, isPressed); }
|
|
|
|
void clear_all_keys() { _keyboardVIA->clear_all_keys(); }
|
2016-07-05 01:48:25 +00:00
|
|
|
void set_joystick_state(JoystickInput input, bool isPressed) {
|
2016-07-05 14:55:47 +00:00
|
|
|
_userPortVIA->set_joystick_state(input, isPressed);
|
|
|
|
_keyboardVIA->set_joystick_state(input, isPressed);
|
2016-07-05 01:48:25 +00:00
|
|
|
}
|
2016-08-14 17:33:20 +00:00
|
|
|
|
2016-08-13 21:21:25 +00:00
|
|
|
void set_memory_size(MemorySize size);
|
2016-08-14 17:33:20 +00:00
|
|
|
void set_region(Region region);
|
2016-06-05 13:06:59 +00:00
|
|
|
|
2016-06-28 01:38:14 +00:00
|
|
|
inline void set_use_fast_tape_hack(bool activate) { _use_fast_tape_hack = activate; }
|
2016-08-06 21:39:27 +00:00
|
|
|
inline void set_should_automatically_load_media(bool activate) { _should_automatically_load_media = activate; }
|
2016-06-28 01:38:14 +00:00
|
|
|
|
2016-06-05 02:00:50 +00:00
|
|
|
// to satisfy CPU6502::Processor
|
|
|
|
unsigned int perform_bus_operation(CPU6502::BusOperation operation, uint16_t address, uint8_t *value);
|
2016-06-14 01:49:59 +00:00
|
|
|
void synchronise() { _mos6560->synchronise(); }
|
2016-06-05 02:00:50 +00:00
|
|
|
|
|
|
|
// to satisfy CRTMachine::Machine
|
2016-06-05 14:51:07 +00:00
|
|
|
virtual void setup_output(float aspect_ratio);
|
2016-07-05 00:34:11 +00:00
|
|
|
virtual void close_output();
|
2016-07-04 23:33:55 +00:00
|
|
|
virtual std::shared_ptr<Outputs::CRT::CRT> get_crt() { return _mos6560->get_crt(); }
|
|
|
|
virtual std::shared_ptr<Outputs::Speaker> get_speaker() { return _mos6560->get_speaker(); }
|
2016-06-05 02:00:50 +00:00
|
|
|
virtual void run_for_cycles(int number_of_cycles) { CPU6502::Processor<Machine>::run_for_cycles(number_of_cycles); }
|
2016-06-17 00:39:46 +00:00
|
|
|
// TODO: or 1108405 for PAL; see http://www.antimon.org/dl/c64/code/stable.txt
|
2016-06-05 14:51:07 +00:00
|
|
|
|
2016-06-10 02:37:59 +00:00
|
|
|
// to satisfy MOS::MOS6522::Delegate
|
|
|
|
virtual void mos6522_did_change_interrupt_status(void *mos6522);
|
|
|
|
|
2016-06-19 17:10:52 +00:00
|
|
|
// for Utility::TypeRecipient
|
|
|
|
virtual int get_typer_delay();
|
|
|
|
virtual int get_typer_frequency();
|
2016-06-19 17:46:53 +00:00
|
|
|
virtual bool typer_set_next_character(Utility::Typer *typer, char character, int phase);
|
2016-06-19 17:10:52 +00:00
|
|
|
|
2016-06-26 23:43:09 +00:00
|
|
|
// for Tape::Delegate
|
|
|
|
virtual void tape_did_change_input(Tape *tape);
|
|
|
|
|
2016-06-05 14:51:07 +00:00
|
|
|
private:
|
|
|
|
uint8_t _characterROM[0x1000];
|
2016-06-05 15:20:05 +00:00
|
|
|
uint8_t _basicROM[0x2000];
|
|
|
|
uint8_t _kernelROM[0x2000];
|
2016-08-13 21:21:25 +00:00
|
|
|
uint8_t _expansionRAM[0x8000];
|
2016-06-05 20:00:35 +00:00
|
|
|
|
2016-06-11 18:00:12 +00:00
|
|
|
uint8_t *_rom;
|
|
|
|
uint16_t _rom_address, _rom_length;
|
|
|
|
|
2016-06-05 20:00:35 +00:00
|
|
|
uint8_t _userBASICMemory[0x0400];
|
|
|
|
uint8_t _screenMemory[0x1000];
|
2016-06-07 00:29:39 +00:00
|
|
|
uint8_t _colorMemory[0x0400];
|
2016-07-01 23:01:22 +00:00
|
|
|
uint8_t _junkMemory[0x0400];
|
2016-07-31 23:33:18 +00:00
|
|
|
std::unique_ptr<uint8_t> _driveROM;
|
2016-07-01 23:01:22 +00:00
|
|
|
|
|
|
|
uint8_t *_processorReadMemoryMap[64];
|
|
|
|
uint8_t *_processorWriteMemoryMap[64];
|
|
|
|
void write_to_map(uint8_t **map, uint8_t *area, uint16_t address, uint16_t length);
|
2016-06-05 20:00:35 +00:00
|
|
|
|
2016-08-14 17:33:20 +00:00
|
|
|
Region _region;
|
|
|
|
|
2016-08-06 18:33:24 +00:00
|
|
|
std::unique_ptr<Vic6560> _mos6560;
|
2016-07-05 14:55:47 +00:00
|
|
|
std::shared_ptr<UserPortVIA> _userPortVIA;
|
|
|
|
std::shared_ptr<KeyboardVIA> _keyboardVIA;
|
|
|
|
std::shared_ptr<SerialPort> _serialPort;
|
2016-07-05 18:55:20 +00:00
|
|
|
std::shared_ptr<::Commodore::Serial::Bus> _serialBus;
|
2016-07-10 02:29:11 +00:00
|
|
|
// std::shared_ptr<::Commodore::Serial::DebugPort> _debugPort;
|
2016-06-28 01:38:14 +00:00
|
|
|
|
|
|
|
// Tape
|
2016-06-26 23:43:09 +00:00
|
|
|
Tape _tape;
|
2016-08-06 21:39:27 +00:00
|
|
|
bool _use_fast_tape_hack, _should_automatically_load_media;
|
2016-07-05 20:39:18 +00:00
|
|
|
|
2016-08-06 18:33:24 +00:00
|
|
|
// Disk
|
2016-07-05 20:39:18 +00:00
|
|
|
std::shared_ptr<::Commodore::C1540::Machine> _c1540;
|
2016-08-06 18:33:24 +00:00
|
|
|
void install_disk_rom();
|
2016-08-08 01:48:09 +00:00
|
|
|
|
|
|
|
// Autoload string
|
2016-06-05 01:43:50 +00:00
|
|
|
};
|
|
|
|
|
2016-07-05 17:28:27 +00:00
|
|
|
}
|
2016-06-05 01:43:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* Vic20_hpp */
|