1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-29 16:55:59 +00:00

Adds some appropriate costs to the tape players.

This commit is contained in:
Thomas Harte 2017-12-26 22:13:28 -05:00
parent f9f870ad2d
commit 0b297f2972
2 changed files with 8 additions and 2 deletions

View File

@ -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_;
}

View File

@ -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);