It is now possible to re-attach or re-load the current paper tape; re-attaching means repositioning it at the beginning, and re-loading means loading it into RAM again. Note that whenever you reload a tape, it's HIGHLY recommended that you reset the machine first, too.

This commit is contained in:
Jeff Parsons 2016-10-23 13:44:31 -07:00 committed by Jeff Parsons
commit de916981f3
8 changed files with 339 additions and 283 deletions

View file

@ -1168,9 +1168,11 @@ CPUPDP11.prototype.stepCPU = function(nMinCycles)
*
* @this {CPUPDP11}
* @param {boolean} [fComplete]
* @return {boolean} true if the CPU was stopped, false if it was already stopped
*/
CPUPDP11.prototype.stopCPU = function(fComplete)
{
var fStopped = false;
if (this.flags.running) {
this.endBurst();
this.addCycles(this.nRunCycles);
@ -1181,8 +1183,10 @@ CPUPDP11.prototype.stopCPU = function(fComplete)
if (this.cmp) {
this.cmp.stop(usr.getTime(), this.getCycles());
}
fStopped = true;
}
this.flags.complete = fComplete;
return fStopped;
};
/**