Changed X86CPU.reset() to not stop the CPU on a RESET (you can still force HALT after RESET by simply halting the machine manually before clicking RESET); moreover, by not calling stopCPU() in the X86CPU.reset() handler, we avoid problems in the CPU's speed recalculation logic (for example, if you repeatedly clicked RESET on a running machine, speed variables would get out of sync)
This commit is contained in:
parent
e5a9b01dde
commit
bf5e1faf67
6 changed files with 648 additions and 660 deletions
|
|
@ -885,7 +885,6 @@ class X86CPU extends CPU {
|
|||
*/
|
||||
reset()
|
||||
{
|
||||
if (this.flags.running) this.stopCPU();
|
||||
this.resetRegs();
|
||||
this.resetCycles();
|
||||
this.clearError(); // clear any fatal error/exception that setError() may have flagged
|
||||
|
|
|
|||
Loading…
Reference in a new issue