mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 03:32:01 +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) {
|
if(number_of_cycles_ < operation->machine_cycle.length) {
|
||||||
return;
|
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;
|
break;
|
||||||
case MicroOp::MoveToNextProgram:
|
case MicroOp::MoveToNextProgram:
|
||||||
move_to_next_program();
|
move_to_next_program();
|
||||||
|
Loading…
Reference in New Issue
Block a user