From 626e719fabc5b44da69e6d525cb8449d1d0e10e4 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 3 Nov 2016 22:50:49 -0400 Subject: [PATCH] Added sanity checks on loading quickly. --- Machines/Oric/Oric.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/Oric/Oric.cpp b/Machines/Oric/Oric.cpp index 05aed5902..13bf6b9c7 100644 --- a/Machines/Oric/Oric.cpp +++ b/Machines/Oric/Oric.cpp @@ -52,7 +52,7 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin // 024D = 0 => fast; otherwise slow // E6C9 = read byte: return byte in A - if(address == 0xe6c9 && _use_fast_tape_hack && operation == CPU6502::BusOperation::ReadOpcode) + if(address == 0xe6c9 && _use_fast_tape_hack && operation == CPU6502::BusOperation::ReadOpcode && _via.tape->has_tape() && !_via.tape->get_tape()->is_at_end()) { uint8_t next_byte = _via.tape->get_next_byte(!_ram[0x024d]); set_value_of_register(CPU6502::A, next_byte);