1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-07-25 13:24:23 +00:00

Attempts actual performance of the state machine.

This commit is contained in:
Thomas Harte
2018-04-24 08:29:05 -07:00
parent 56d88f23ef
commit af61bbc3e2
4 changed files with 45 additions and 17 deletions

View File

@@ -10,7 +10,9 @@
#define DiskII_hpp
#include "../../ClockReceiver/ClockReceiver.hpp"
#include <cstdint>
#include <vector>
namespace Apple {
@@ -33,13 +35,16 @@ class DiskII {
uint8_t get_shift_register();
void run_for(const Cycles cycles);
void set_state_machine(const std::vector<uint8_t> &);
private:
uint8_t state_ = 0;
uint8_t inputs_ = 0;
uint8_t shift_register_ = 0;
uint8_t data_register_ = 0;
bool is_write_protected();
std::vector<uint8_t> state_machine_;
};
}