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

@ -1141,10 +1141,6 @@ class Computer extends Component {
reset()
{
if (this.bus && this.bus.reset) {
/*
* TODO: Why does WebStorm think that this.bus.type is undefined? The base class (Component)
* constructor defines it.
*/
this.printMessage("Resetting " + this.bus.type);
this.bus.reset();
}