mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-29 13:29:46 +00:00
4a42de4f18
I want to try some classic software.
34 lines
529 B
C++
34 lines
529 B
C++
//
|
|
// DiskIIDrive.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 20/11/2020.
|
|
// Copyright © 2020 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef DiskIIDrive_hpp
|
|
#define DiskIIDrive_hpp
|
|
|
|
#include "IWM.hpp"
|
|
|
|
namespace Apple {
|
|
namespace Disk {
|
|
|
|
class DiskIIDrive: public IWMDrive {
|
|
public:
|
|
DiskIIDrive(int input_clock_rate);
|
|
|
|
private:
|
|
void set_enabled(bool) final;
|
|
void set_control_lines(int) final;
|
|
bool read() final;
|
|
|
|
int stepper_mask_ = 0;
|
|
int stepper_position_ = 0;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* DiskIIDrive_hpp */
|