mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2024-05-20 13:48:02 -04:00
fixed catchup loop when stepping back in instruction quantum
the input loop would be called (and the end of the catchup loop delayed) on the last cycle of the previous instruction that we want to stop on
This commit is contained in:
parent
9b11590fde
commit
b10c094f24
|
@ -93,6 +93,12 @@ func (dbg *Debugger) catchupLoop(inputter terminal.Input) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// if quantum if QuantumInstruction and we're not at the end of the
|
||||
// instruction then we never want to call the input loop
|
||||
if dbg.Quantum() == govern.QuantumInstruction && !dbg.vcs.CPU.LastResult.Final {
|
||||
return nil
|
||||
}
|
||||
|
||||
return dbg.inputLoop(inputter, true)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue