1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 01:31:42 +00:00

Corrects scope of delay.

This commit is contained in:
Thomas Harte 2019-02-28 18:46:28 -05:00
parent 0dbd8a667d
commit 0536697d8f

View File

@ -196,7 +196,7 @@ class ConcreteMachine:
// This code works out the delay up front in order to simplify execution flow, though // This code works out the delay up front in order to simplify execution flow, though
// technically this is a little duplicative. // technically this is a little duplicative.
HalfCycles penalty(0); HalfCycles penalty(0);
if((cycle.operation == CPU::Z80::PartialMachineCycle::Output || cycle.operation == CPU::Z80::PartialMachineCycle::Input) && ((*cycle.address >> 5) & 7) == 7) { if(cycle.operation == CPU::Z80::PartialMachineCycle::Output && ((*cycle.address >> 5) & 7) == 7) {
penalty = HalfCycles(62); penalty = HalfCycles(62);
} else if(cycle.operation == CPU::Z80::PartialMachineCycle::ReadOpcode) { } else if(cycle.operation == CPU::Z80::PartialMachineCycle::ReadOpcode) {
penalty = HalfCycles(2); penalty = HalfCycles(2);