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:
parent
dbe987dbc7
commit
de916981f3
8 changed files with 339 additions and 283 deletions
|
|
@ -1596,6 +1596,7 @@ if (DEBUGGER) {
|
|||
this.updateStatus(true);
|
||||
this.setFocus();
|
||||
this.clearTempBreakpoint(this.cpu.getPC());
|
||||
this.sMessagePrev = null;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -1679,18 +1680,20 @@ if (DEBUGGER) {
|
|||
};
|
||||
|
||||
/**
|
||||
* stopInstruction()
|
||||
* stopInstruction(sMessage)
|
||||
*
|
||||
* TODO: Currently, the only way to prevent this call from stopping the CPU is when you're single-stepping.
|
||||
*
|
||||
* @this {DebuggerPDP11}
|
||||
* @param {string} [sMessage]
|
||||
* @return {boolean} true if stopping is enabled, false if not
|
||||
*/
|
||||
DebuggerPDP11.prototype.stopInstruction = function()
|
||||
DebuggerPDP11.prototype.stopInstruction = function(sMessage)
|
||||
{
|
||||
var cpu = this.cpu;
|
||||
if (cpu.isRunning()) {
|
||||
cpu.setPC(this.cpu.getLastPC());
|
||||
if (sMessage) this.println(sMessage);
|
||||
this.stopCPU();
|
||||
/*
|
||||
* TODO: Review the appropriate-ness of throwing a bogus vector number in order to immediately stop
|
||||
|
|
|
|||
Loading…
Reference in a new issue