mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-21 18:37:11 +00:00
Adds some appropriate costs to the tape players.
This commit is contained in:
parent
f9f870ad2d
commit
0b297f2972
@ -130,11 +130,15 @@ void BinaryTapePlayer::set_motor_control(bool enabled) {
|
||||
}
|
||||
}
|
||||
|
||||
bool BinaryTapePlayer::get_motor_control() const {
|
||||
return motor_is_running_;
|
||||
}
|
||||
|
||||
void BinaryTapePlayer::set_tape_output(bool set) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
bool BinaryTapePlayer::get_input() {
|
||||
bool BinaryTapePlayer::get_input() const {
|
||||
return motor_is_running_ && input_level_;
|
||||
}
|
||||
|
||||
|
@ -132,8 +132,10 @@ class BinaryTapePlayer: public TapePlayer {
|
||||
public:
|
||||
BinaryTapePlayer(unsigned int input_clock_rate);
|
||||
void set_motor_control(bool enabled);
|
||||
bool get_motor_control() const;
|
||||
|
||||
void set_tape_output(bool set);
|
||||
bool get_input();
|
||||
bool get_input() const;
|
||||
|
||||
void run_for(const Cycles cycles);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user