mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-24 12:30:17 +00:00
Added respect for limiting to the requested number of cycles in the Z80.
This commit is contained in:
parent
22afa509ca
commit
c3ea6dc1f5
@ -538,7 +538,8 @@ template <class T> class Processor: public MicroOpScheduler<MicroOp> {
|
||||
if(number_of_cycles_ < operation->machine_cycle.length) {
|
||||
return;
|
||||
}
|
||||
static_cast<T *>(this)->perform_machine_cycle(&operation->machine_cycle);
|
||||
number_of_cycles_ -= operation->machine_cycle.length;
|
||||
number_of_cycles_ -= static_cast<T *>(this)->perform_machine_cycle(&operation->machine_cycle);
|
||||
break;
|
||||
case MicroOp::MoveToNextProgram:
|
||||
move_to_next_program();
|
||||
|
Loading…
Reference in New Issue
Block a user