Got rid of runState, implemented a solution for WAIT

This commit is contained in:
Jeff 2016-09-29 11:04:33 -07:00 committed by Jeff Parsons
commit b3ba03d0a5
7 changed files with 358 additions and 338 deletions

View file

@ -1161,8 +1161,8 @@ CPUPDP11.prototype.startCPU = function(fUpdateFocus)
var controlRun = this.bindings["run"];
if (controlRun) controlRun.textContent = "Halt";
if (this.cmp) {
this.cmp.start(this.msStartRun, this.getCycles());
if (fUpdateFocus) this.cmp.updateFocus(true);
this.cmp.start(this.msStartRun, this.getCycles());
}
this.updateCPU(true);
setTimeout(this.onRunTimeout, 0);