1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-05 08:26:28 +00:00

Attempts to respond more sensibly to various queries.

Including adding a 1-second delay on motor off.
This commit is contained in:
Thomas Harte
2019-06-01 18:43:47 -04:00
parent 983407896c
commit 48d837c636
2 changed files with 58 additions and 6 deletions

View File

@@ -10,6 +10,7 @@
#define IWM_hpp
#include "../../ClockReceiver/ClockReceiver.hpp"
#include "../../Storage/Disk/Drive.hpp"
#include <cstdint>
@@ -38,12 +39,19 @@ class IWM {
void run_for(const Cycles cycles);
private:
const int clock_rate_;
uint8_t mode_ = 0;
bool read_write_ready_ = true;
bool write_overran_ = false;
int state_ = 0;
int active_drive_ = 0;
Storage::Disk::Drive drives_[2];
Cycles cycles_until_motor_off_;
void access(int address);
};