1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Corrected test: hitting zero is sufficient. No need to cross it.

This commit is contained in:
Thomas Harte 2016-10-30 20:24:30 -04:00
parent 8d87a61f63
commit 2452a3104f

View File

@ -621,7 +621,7 @@ template <class T> class Processor {
_irq_request_history = _irq_line & _inverseInterruptFlag; \ _irq_request_history = _irq_line & _inverseInterruptFlag; \
number_of_cycles -= static_cast<T *>(this)->perform_bus_operation(nextBusOperation, busAddress, busValue); \ number_of_cycles -= static_cast<T *>(this)->perform_bus_operation(nextBusOperation, busAddress, busValue); \
nextBusOperation = BusOperation::None; \ nextBusOperation = BusOperation::None; \
if(number_of_cycles < 0) break; if(number_of_cycles <= 0) break;
checkSchedule(); checkSchedule();
number_of_cycles += _cycles_left_to_run; number_of_cycles += _cycles_left_to_run;