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:
Jeff Parsons 2017-08-07 19:21:15 -07:00 committed by Jeff Parsons
commit bf5e1faf67
6 changed files with 648 additions and 660 deletions

View file

@ -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