2021-07-23 01:16:23 +00:00
|
|
|
//
|
|
|
|
// Chipset.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 22/07/2021.
|
|
|
|
// Copyright © 2021 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2021-07-23 01:16:23 +00:00
|
|
|
|
2021-10-22 03:48:57 +00:00
|
|
|
#include <algorithm>
|
2021-10-09 01:11:47 +00:00
|
|
|
#include <array>
|
2021-10-22 03:48:57 +00:00
|
|
|
#include <cassert>
|
2021-07-23 01:16:23 +00:00
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdint>
|
|
|
|
|
2021-10-04 13:44:54 +00:00
|
|
|
#include "../../Activity/Source.hpp"
|
2021-10-05 22:38:56 +00:00
|
|
|
#include "../../ClockReceiver/ClockingHintSource.hpp"
|
2021-11-11 14:24:15 +00:00
|
|
|
#include "../../ClockReceiver/JustInTime.hpp"
|
2021-10-04 13:44:54 +00:00
|
|
|
#include "../../Components/6526/6526.hpp"
|
2021-07-26 22:44:20 +00:00
|
|
|
#include "../../Outputs/CRT/CRT.hpp"
|
2023-05-10 22:13:01 +00:00
|
|
|
#include "../../Processors/68000/68000.hpp"
|
2021-10-04 23:45:05 +00:00
|
|
|
#include "../../Storage/Disk/Controller/DiskController.hpp"
|
2021-10-04 15:12:13 +00:00
|
|
|
#include "../../Storage/Disk/Drive.hpp"
|
2021-07-23 01:16:23 +00:00
|
|
|
|
2021-11-09 12:11:23 +00:00
|
|
|
#include "Audio.hpp"
|
2021-11-26 23:16:24 +00:00
|
|
|
#include "Bitplanes.hpp"
|
2021-07-23 01:16:23 +00:00
|
|
|
#include "Blitter.hpp"
|
2021-09-17 01:17:23 +00:00
|
|
|
#include "Copper.hpp"
|
|
|
|
#include "DMADevice.hpp"
|
2021-10-13 22:09:19 +00:00
|
|
|
#include "Flags.hpp"
|
2021-11-06 19:03:09 +00:00
|
|
|
#include "Keyboard.hpp"
|
2021-11-26 22:50:47 +00:00
|
|
|
#include "MouseJoystick.hpp"
|
2021-10-04 13:44:54 +00:00
|
|
|
#include "MemoryMap.hpp"
|
2021-11-26 20:30:31 +00:00
|
|
|
#include "Sprites.hpp"
|
2021-07-23 01:16:23 +00:00
|
|
|
|
|
|
|
namespace Amiga {
|
|
|
|
|
2021-10-05 22:38:56 +00:00
|
|
|
class Chipset: private ClockingHint::Observer {
|
2021-07-23 01:16:23 +00:00
|
|
|
public:
|
2021-10-04 15:12:13 +00:00
|
|
|
Chipset(MemoryMap &memory_map, int input_clock_rate);
|
2021-07-23 01:16:23 +00:00
|
|
|
|
2021-07-24 01:24:07 +00:00
|
|
|
struct Changes {
|
2021-07-26 20:40:42 +00:00
|
|
|
int interrupt_level = 0;
|
2021-07-27 00:13:06 +00:00
|
|
|
HalfCycles duration;
|
2021-08-09 01:52:28 +00:00
|
|
|
|
|
|
|
Changes &operator += (const Changes &rhs) {
|
|
|
|
duration += rhs.duration;
|
|
|
|
return *this;
|
|
|
|
}
|
2021-07-24 01:24:07 +00:00
|
|
|
};
|
|
|
|
|
2021-07-27 20:41:18 +00:00
|
|
|
/// Advances the stated amount of time.
|
|
|
|
Changes run_for(HalfCycles);
|
|
|
|
|
2021-12-10 00:17:44 +00:00
|
|
|
/// Advances to the end of the next available CPU slot.
|
|
|
|
Changes run_until_after_cpu_slot();
|
2021-07-23 01:16:23 +00:00
|
|
|
|
|
|
|
/// Performs the provided microcycle, which the caller guarantees to be a memory access.
|
2023-12-22 04:08:18 +00:00
|
|
|
template <typename Microcycle>
|
|
|
|
void perform(const Microcycle &cycle) {
|
|
|
|
const uint32_t register_address = *cycle.address & ChipsetAddressMask;
|
|
|
|
if(cycle.operation & CPU::MC68000::Operation::Read) {
|
|
|
|
cycle.set_value16(read(register_address));
|
|
|
|
} else {
|
|
|
|
write(register_address, cycle.value16());
|
|
|
|
}
|
|
|
|
}
|
2021-07-23 01:16:23 +00:00
|
|
|
|
2021-07-28 23:36:30 +00:00
|
|
|
/// Sets the current state of the CIA interrupt lines.
|
|
|
|
void set_cia_interrupts(bool cia_a, bool cia_b);
|
|
|
|
|
2021-07-26 20:40:42 +00:00
|
|
|
/// Provides the chipset's current interrupt level.
|
|
|
|
int get_interrupt_level() {
|
|
|
|
return interrupt_level_;
|
|
|
|
}
|
|
|
|
|
2021-10-05 23:12:30 +00:00
|
|
|
/// Inserts the disks provided.
|
|
|
|
/// @returns @c true if anything was inserted; @c false otherwise.
|
|
|
|
bool insert(const std::vector<std::shared_ptr<Storage::Disk::Disk>> &disks);
|
|
|
|
|
2021-07-26 22:44:20 +00:00
|
|
|
// The standard CRT set.
|
|
|
|
void set_scan_target(Outputs::Display::ScanTarget *scan_target);
|
|
|
|
Outputs::Display::ScanStatus get_scaled_scan_status() const;
|
|
|
|
void set_display_type(Outputs::Display::DisplayType);
|
|
|
|
Outputs::Display::DisplayType get_display_type() const;
|
|
|
|
|
2021-10-04 13:44:54 +00:00
|
|
|
// Activity observation.
|
|
|
|
void set_activity_observer(Activity::Observer *observer) {
|
|
|
|
cia_a_handler_.set_activity_observer(observer);
|
2021-10-06 11:54:40 +00:00
|
|
|
disk_controller_.set_activity_observer(observer);
|
2021-10-04 13:44:54 +00:00
|
|
|
}
|
|
|
|
|
2021-11-17 20:33:46 +00:00
|
|
|
// Keyboard and mouse exposure.
|
2021-11-06 19:03:09 +00:00
|
|
|
Keyboard &get_keyboard() {
|
|
|
|
return keyboard_;
|
|
|
|
}
|
|
|
|
|
2021-11-17 20:33:46 +00:00
|
|
|
const std::vector<std::unique_ptr<Inputs::Joystick>> &get_joysticks() {
|
|
|
|
return joysticks_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Synchronisation.
|
2021-11-12 20:30:52 +00:00
|
|
|
void flush();
|
|
|
|
|
2021-11-26 23:16:24 +00:00
|
|
|
// Input for receiving collected bitplanes.
|
|
|
|
void post_bitplanes(const BitplaneData &data);
|
|
|
|
|
2021-12-01 10:37:58 +00:00
|
|
|
// Obtains the source of audio output.
|
|
|
|
Outputs::Speaker::Speaker *get_speaker() {
|
|
|
|
return audio_.get_speaker();
|
|
|
|
}
|
|
|
|
|
2021-07-23 01:16:23 +00:00
|
|
|
private:
|
2021-09-15 00:51:32 +00:00
|
|
|
friend class DMADeviceBase;
|
2021-08-09 21:35:09 +00:00
|
|
|
|
2021-12-18 22:43:53 +00:00
|
|
|
// MARK: - Register read/write functions.
|
2021-12-19 21:31:44 +00:00
|
|
|
uint16_t read(uint32_t address, bool allow_conversion = true);
|
|
|
|
void write(uint32_t address, uint16_t value, bool allow_conversion = true);
|
2021-12-18 22:53:11 +00:00
|
|
|
static constexpr uint32_t ChipsetAddressMask = 0x1fe;
|
|
|
|
friend class Copper;
|
2021-12-18 22:43:53 +00:00
|
|
|
|
2021-11-07 13:19:16 +00:00
|
|
|
// MARK: - E Clock and keyboard dividers.
|
2021-10-04 13:44:54 +00:00
|
|
|
|
|
|
|
HalfCycles cia_divider_;
|
2021-11-07 13:19:16 +00:00
|
|
|
HalfCycles keyboard_divider_;
|
2021-10-04 13:44:54 +00:00
|
|
|
|
2021-07-23 01:16:23 +00:00
|
|
|
// MARK: - Interrupts.
|
|
|
|
|
|
|
|
uint16_t interrupt_enable_ = 0;
|
|
|
|
uint16_t interrupt_requests_ = 0;
|
2021-07-26 20:40:42 +00:00
|
|
|
int interrupt_level_ = 0;
|
2021-07-23 01:16:23 +00:00
|
|
|
|
2021-07-26 20:40:42 +00:00
|
|
|
void update_interrupts();
|
2022-07-26 13:22:05 +00:00
|
|
|
void posit_interrupt(InterruptFlag::FlagT);
|
2021-07-23 01:16:23 +00:00
|
|
|
|
2021-07-27 20:41:18 +00:00
|
|
|
// MARK: - Scheduler.
|
|
|
|
|
2021-08-09 01:52:28 +00:00
|
|
|
template <bool stop_on_cpu> Changes run(HalfCycles duration = HalfCycles::max());
|
2021-07-28 01:59:27 +00:00
|
|
|
template <bool stop_on_cpu> int advance_slots(int, int);
|
2021-07-27 20:41:18 +00:00
|
|
|
template <int cycle, bool stop_if_cpu> bool perform_cycle();
|
2021-07-28 01:33:07 +00:00
|
|
|
template <int cycle> void output();
|
2021-11-28 10:06:30 +00:00
|
|
|
void output_pixels(int cycles_until_sync);
|
|
|
|
void apply_ham(uint8_t);
|
2021-07-27 20:41:18 +00:00
|
|
|
|
|
|
|
// MARK: - DMA Control, Scheduler and Blitter.
|
2021-07-23 01:16:23 +00:00
|
|
|
|
|
|
|
uint16_t dma_control_ = 0;
|
2022-08-06 13:51:20 +00:00
|
|
|
Blitter<false> blitter_;
|
2021-07-23 01:16:23 +00:00
|
|
|
|
2021-11-27 20:03:46 +00:00
|
|
|
// MARK: - Sprites and collision flags.
|
2021-07-23 01:16:23 +00:00
|
|
|
|
2021-11-26 21:02:18 +00:00
|
|
|
std::array<Sprite, 8> sprites_;
|
|
|
|
std::array<TwoSpriteShifter, 4> sprite_shifters_;
|
2021-11-27 20:03:46 +00:00
|
|
|
uint16_t collisions_ = 0, collisions_flags_= 0;
|
|
|
|
|
|
|
|
uint32_t playfield_collision_mask_ = 0, playfield_collision_complement_ = 0;
|
2021-10-25 23:30:30 +00:00
|
|
|
|
2021-08-10 23:01:41 +00:00
|
|
|
// MARK: - Raster position and state.
|
2021-07-23 01:45:51 +00:00
|
|
|
|
2021-08-10 23:01:41 +00:00
|
|
|
// Definitions related to PAL/NTSC.
|
2021-11-02 21:34:03 +00:00
|
|
|
// (Default values are PAL).
|
2021-07-28 01:33:07 +00:00
|
|
|
int line_length_ = 227;
|
2021-11-02 21:34:03 +00:00
|
|
|
int short_field_height_ = 312;
|
2021-11-26 14:37:52 +00:00
|
|
|
int vertical_blank_height_ = 25; // PAL = 25, NTSC = 20
|
2021-07-23 02:00:53 +00:00
|
|
|
|
2021-08-10 23:01:41 +00:00
|
|
|
// Current raster position.
|
|
|
|
int line_cycle_ = 0, y_ = 0;
|
|
|
|
|
|
|
|
// Parameters affecting bitplane collection and output.
|
2021-07-23 02:00:53 +00:00
|
|
|
uint16_t display_window_start_[2] = {0, 0};
|
|
|
|
uint16_t display_window_stop_[2] = {0, 0};
|
|
|
|
uint16_t fetch_window_[2] = {0, 0};
|
2021-07-26 22:44:20 +00:00
|
|
|
|
2021-08-10 23:01:41 +00:00
|
|
|
// Ephemeral bitplane collection state.
|
2022-03-17 23:39:24 +00:00
|
|
|
bool fetch_vertical_ = false;
|
2021-08-12 00:31:37 +00:00
|
|
|
bool display_horizontal_ = false;
|
2021-08-11 01:28:48 +00:00
|
|
|
bool did_fetch_ = false;
|
2022-03-17 23:39:24 +00:00
|
|
|
|
|
|
|
int horizontal_offset_ = 0;
|
|
|
|
enum HorizontalFetch {
|
2022-03-18 12:27:46 +00:00
|
|
|
Started, WillRequestStop, StopRequested, Stopped
|
|
|
|
} horizontal_fetch_ = HorizontalFetch::Stopped;
|
2021-08-10 23:01:41 +00:00
|
|
|
|
2021-08-12 00:31:37 +00:00
|
|
|
// Output state.
|
|
|
|
uint16_t border_colour_ = 0;
|
|
|
|
bool is_border_ = true;
|
|
|
|
int zone_duration_ = 0;
|
|
|
|
uint16_t *pixels_ = nullptr;
|
2021-11-28 10:06:30 +00:00
|
|
|
uint16_t last_colour_ = 0; // Retained for HAM mode.
|
2021-08-12 00:31:37 +00:00
|
|
|
void flush_output();
|
|
|
|
|
2021-11-26 23:16:24 +00:00
|
|
|
Bitplanes bitplanes_;
|
2021-08-11 01:28:48 +00:00
|
|
|
|
2021-11-01 21:18:58 +00:00
|
|
|
BitplaneData next_bitplanes_, previous_bitplanes_;
|
|
|
|
bool has_next_bitplanes_ = false;
|
2021-10-22 03:48:57 +00:00
|
|
|
|
2021-11-02 00:15:36 +00:00
|
|
|
int odd_priority_ = 0, even_priority_ = 0;
|
|
|
|
bool even_over_odd_ = false;
|
|
|
|
bool hold_and_modify_ = false;
|
|
|
|
bool dual_playfields_ = false;
|
|
|
|
bool interlace_ = false;
|
2021-11-02 10:47:39 +00:00
|
|
|
bool is_long_field_ = false;
|
2021-11-02 00:15:36 +00:00
|
|
|
|
2021-11-26 23:16:24 +00:00
|
|
|
BitplaneShifter bitplane_pixels_;
|
2021-08-10 23:01:41 +00:00
|
|
|
|
2021-08-11 22:47:35 +00:00
|
|
|
int odd_delay_ = 0, even_delay_ = 0;
|
2021-09-20 23:00:52 +00:00
|
|
|
bool is_high_res_ = false;
|
2021-08-11 22:47:35 +00:00
|
|
|
|
2021-07-26 22:44:20 +00:00
|
|
|
// MARK: - Copper.
|
|
|
|
|
2021-09-17 01:17:23 +00:00
|
|
|
Copper copper_;
|
2021-07-30 22:24:27 +00:00
|
|
|
|
2021-11-09 12:11:23 +00:00
|
|
|
// MARK: - Audio.
|
|
|
|
|
2021-11-13 20:53:41 +00:00
|
|
|
Audio audio_;
|
2021-11-09 12:11:23 +00:00
|
|
|
|
2021-07-30 22:24:27 +00:00
|
|
|
// MARK: - Serial port.
|
|
|
|
|
|
|
|
class SerialPort {
|
|
|
|
public:
|
2021-12-23 20:22:20 +00:00
|
|
|
void set_control(uint16_t);
|
|
|
|
void set_data(uint16_t);
|
|
|
|
uint16_t get_status();
|
2021-07-30 22:24:27 +00:00
|
|
|
|
|
|
|
private:
|
2023-12-27 16:14:08 +00:00
|
|
|
// uint16_t value = 0, reload = 0;
|
|
|
|
// uint16_t shift = 0, receive_shift = 0;
|
|
|
|
// uint16_t status;
|
2021-07-30 22:24:27 +00:00
|
|
|
} serial_;
|
2021-07-26 22:44:20 +00:00
|
|
|
|
2021-10-09 11:08:59 +00:00
|
|
|
// MARK: - Pixel output.
|
|
|
|
|
|
|
|
Outputs::CRT::CRT crt_;
|
|
|
|
uint16_t palette_[32]{};
|
2021-11-01 21:44:30 +00:00
|
|
|
uint16_t swizzled_palette_[64]{};
|
2021-10-09 11:08:59 +00:00
|
|
|
|
2021-10-24 03:17:13 +00:00
|
|
|
// MARK: - Mouse.
|
|
|
|
private:
|
2021-11-26 22:50:47 +00:00
|
|
|
Mouse mouse_;
|
2021-10-24 03:17:13 +00:00
|
|
|
|
|
|
|
public:
|
2021-11-26 22:50:47 +00:00
|
|
|
Inputs::Mouse &get_mouse() {
|
|
|
|
return mouse_;
|
|
|
|
}
|
2021-10-24 03:17:13 +00:00
|
|
|
|
2021-11-17 19:26:51 +00:00
|
|
|
// MARK: - Joystick.
|
|
|
|
private:
|
2021-11-17 20:33:46 +00:00
|
|
|
std::vector<std::unique_ptr<Inputs::Joystick>> joysticks_;
|
|
|
|
Joystick &joystick(size_t index) const {
|
|
|
|
return *static_cast<Joystick *>(joysticks_[index].get());
|
|
|
|
}
|
|
|
|
|
2021-10-24 03:17:13 +00:00
|
|
|
// MARK: - CIAs.
|
2021-10-09 11:08:59 +00:00
|
|
|
private:
|
|
|
|
class DiskController;
|
|
|
|
|
|
|
|
class CIAAHandler: public MOS::MOS6526::PortHandler {
|
|
|
|
public:
|
2021-10-24 03:17:13 +00:00
|
|
|
CIAAHandler(MemoryMap &map, DiskController &controller, Mouse &mouse);
|
2021-10-09 11:08:59 +00:00
|
|
|
void set_port_output(MOS::MOS6526::Port port, uint8_t value);
|
|
|
|
uint8_t get_port_input(MOS::MOS6526::Port port);
|
|
|
|
void set_activity_observer(Activity::Observer *observer);
|
|
|
|
|
2021-11-17 20:33:46 +00:00
|
|
|
// TEMPORARY.
|
|
|
|
// TODO: generalise mice and joysticks.
|
|
|
|
// This is a hack. A TEMPORARY HACK.
|
|
|
|
void set_joystick(Joystick *joystick) {
|
|
|
|
joystick_ = joystick;
|
|
|
|
}
|
|
|
|
|
2021-10-09 11:08:59 +00:00
|
|
|
private:
|
|
|
|
MemoryMap &map_;
|
|
|
|
DiskController &controller_;
|
2021-10-24 03:17:13 +00:00
|
|
|
Mouse &mouse_;
|
2021-11-17 20:33:46 +00:00
|
|
|
Joystick *joystick_ = nullptr;
|
2021-10-09 11:08:59 +00:00
|
|
|
Activity::Observer *observer_ = nullptr;
|
|
|
|
inline static const std::string led_name = "Power";
|
|
|
|
} cia_a_handler_;
|
|
|
|
|
|
|
|
class CIABHandler: public MOS::MOS6526::PortHandler {
|
|
|
|
public:
|
|
|
|
CIABHandler(DiskController &controller);
|
|
|
|
void set_port_output(MOS::MOS6526::Port port, uint8_t value);
|
|
|
|
uint8_t get_port_input(MOS::MOS6526::Port);
|
|
|
|
|
|
|
|
private:
|
|
|
|
DiskController &controller_;
|
|
|
|
} cia_b_handler_;
|
|
|
|
|
|
|
|
public:
|
|
|
|
using CIAA = MOS::MOS6526::MOS6526<CIAAHandler, MOS::MOS6526::Personality::P8250>;
|
|
|
|
using CIAB = MOS::MOS6526::MOS6526<CIABHandler, MOS::MOS6526::Personality::P8250>;
|
|
|
|
|
|
|
|
// CIAs are provided for direct access; it's up to the caller properly
|
|
|
|
// to distinguish relevant accesses.
|
|
|
|
CIAA cia_a;
|
|
|
|
CIAB cia_b;
|
|
|
|
|
|
|
|
private:
|
2021-08-09 21:35:09 +00:00
|
|
|
// MARK: - Disk drives.
|
|
|
|
|
2021-10-09 00:18:11 +00:00
|
|
|
class DiskDMA: public DMADevice<1> {
|
|
|
|
public:
|
|
|
|
using DMADevice::DMADevice;
|
|
|
|
|
2021-11-03 01:18:59 +00:00
|
|
|
void set_length(uint16_t);
|
|
|
|
void set_control(uint16_t);
|
2021-11-13 20:53:41 +00:00
|
|
|
bool advance_dma();
|
2021-10-09 00:18:11 +00:00
|
|
|
|
|
|
|
void enqueue(uint16_t value, bool matches_sync);
|
|
|
|
|
|
|
|
private:
|
|
|
|
uint16_t length_;
|
|
|
|
bool dma_enable_ = false;
|
|
|
|
bool write_ = false;
|
2021-10-11 13:16:01 +00:00
|
|
|
uint16_t last_set_length_ = 0;
|
2021-11-03 01:18:59 +00:00
|
|
|
bool sync_with_word_ = false;
|
2021-10-09 01:11:47 +00:00
|
|
|
|
|
|
|
std::array<uint16_t, 4> buffer_;
|
|
|
|
size_t buffer_read_ = 0, buffer_write_ = 0;
|
2021-11-03 01:18:59 +00:00
|
|
|
|
|
|
|
enum class State {
|
|
|
|
Inactive,
|
|
|
|
WaitingForSync,
|
|
|
|
Reading,
|
|
|
|
} state_ = State::Inactive;
|
2021-10-09 00:18:11 +00:00
|
|
|
} disk_;
|
|
|
|
|
2021-10-05 22:38:56 +00:00
|
|
|
class DiskController: public Storage::Disk::Controller {
|
2021-10-04 23:45:05 +00:00
|
|
|
public:
|
2021-10-14 23:36:17 +00:00
|
|
|
DiskController(Cycles clock_rate, Chipset &chipset, DiskDMA &disk_dma, CIAB &cia);
|
2021-10-04 23:45:05 +00:00
|
|
|
|
2021-10-05 12:12:01 +00:00
|
|
|
void set_mtr_sel_side_dir_step(uint8_t);
|
|
|
|
uint8_t get_rdy_trk0_wpro_chng();
|
2021-10-04 23:45:05 +00:00
|
|
|
|
2021-10-05 22:38:56 +00:00
|
|
|
void run_for(Cycles duration) {
|
|
|
|
Storage::Disk::Controller::run_for(duration);
|
|
|
|
}
|
|
|
|
|
2021-10-05 23:12:30 +00:00
|
|
|
bool insert(const std::shared_ptr<Storage::Disk::Disk> &disk, size_t drive);
|
2021-10-06 11:54:40 +00:00
|
|
|
void set_activity_observer(Activity::Observer *);
|
2021-10-05 23:12:30 +00:00
|
|
|
|
2021-10-07 12:11:32 +00:00
|
|
|
void set_sync_word(uint16_t);
|
|
|
|
void set_control(uint16_t);
|
|
|
|
|
2021-10-04 23:45:05 +00:00
|
|
|
private:
|
|
|
|
void process_input_bit(int value) final;
|
|
|
|
void process_index_hole() final;
|
|
|
|
|
2021-10-05 12:12:01 +00:00
|
|
|
// Implement the Amiga's drive ID shift registers
|
|
|
|
// directly in the controller for now.
|
|
|
|
uint32_t drive_ids_[4]{};
|
|
|
|
uint32_t previous_select_ = 0;
|
|
|
|
|
2021-10-07 12:11:32 +00:00
|
|
|
uint16_t data_ = 0;
|
|
|
|
int bit_count_ = 0;
|
2021-10-14 23:36:17 +00:00
|
|
|
uint16_t sync_word_ = 0x4489; // TODO: confirm or deny guess.
|
2021-10-07 12:11:32 +00:00
|
|
|
bool sync_with_word_ = false;
|
|
|
|
|
2021-10-14 23:36:17 +00:00
|
|
|
Chipset &chipset_;
|
2021-10-09 00:18:11 +00:00
|
|
|
DiskDMA &disk_dma_;
|
2021-10-09 11:08:59 +00:00
|
|
|
CIAB &cia_;
|
2021-10-09 00:18:11 +00:00
|
|
|
|
2021-10-04 23:45:05 +00:00
|
|
|
} disk_controller_;
|
2021-10-14 23:36:17 +00:00
|
|
|
friend DiskController;
|
2021-10-07 12:11:32 +00:00
|
|
|
|
2021-10-05 22:38:56 +00:00
|
|
|
void set_component_prefers_clocking(ClockingHint::Source *, ClockingHint::Preference) final;
|
|
|
|
bool disk_controller_is_sleeping_ = false;
|
2021-10-07 12:11:32 +00:00
|
|
|
uint16_t paula_disk_control_ = 0;
|
2021-11-06 19:03:09 +00:00
|
|
|
|
|
|
|
// MARK: - Keyboard.
|
|
|
|
|
|
|
|
Keyboard keyboard_;
|
2021-07-23 01:16:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|