mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 18:30:21 +00:00
Ensured emulation doesn't enter an infinite loop if the user attempts to read beyond the end of a tape.
This commit is contained in:
parent
69f0cef747
commit
7843a244b0
@ -365,7 +365,7 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin
|
||||
|
||||
int cycles_left_while_plausibly_in_data = 50;
|
||||
_tape.clear_interrupts(Interrupt::ReceiveDataFull);
|
||||
while(1)
|
||||
while(!_tape.get_tape()->is_at_end())
|
||||
{
|
||||
_tape.run_for_input_pulse();
|
||||
cycles_left_while_plausibly_in_data--;
|
||||
|
Loading…
Reference in New Issue
Block a user