1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-27 02:29:12 +00:00

Adjusted per tests on StarDot; it appears the tape interrupts may fire during audio output, as if in tape output mode.

This commit is contained in:
Thomas Harte 2016-10-03 20:03:14 -04:00
parent dae6b45464
commit 97304e22f0

View File

@ -230,11 +230,11 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin
{ {
update_audio(); update_audio();
_speaker->set_is_enabled(new_speaker_is_enabled); _speaker->set_is_enabled(new_speaker_is_enabled);
_tape.set_is_enabled(!new_speaker_is_enabled);
} }
_tape.set_is_enabled((*value & 6) != 6);
_tape.set_is_in_input_mode((*value & 6) == 0);
_tape.set_is_running(((*value)&0x40) ? true : false); _tape.set_is_running(((*value)&0x40) ? true : false);
_tape.set_is_in_input_mode(((*value)&0x04) ? false : true);
// TODO: caps lock LED // TODO: caps lock LED
} }