diff --git a/Processors/6502/CPU6502.hpp b/Processors/6502/CPU6502.hpp index 4a169d344..960921064 100644 --- a/Processors/6502/CPU6502.hpp +++ b/Processors/6502/CPU6502.hpp @@ -621,7 +621,7 @@ template class Processor { _irq_request_history = _irq_line & _inverseInterruptFlag; \ number_of_cycles -= static_cast(this)->perform_bus_operation(nextBusOperation, busAddress, busValue); \ nextBusOperation = BusOperation::None; \ - if(number_of_cycles < 0) break; + if(number_of_cycles <= 0) break; checkSchedule(); number_of_cycles += _cycles_left_to_run;