PDP-10 Debugger now supports command overrides from the page settings
This commit is contained in:
parent
9c96ec14ad
commit
639db42178
14 changed files with 18254 additions and 96252 deletions
|
|
@ -331,11 +331,17 @@ class DebuggerPDP10 extends Debugger {
|
|||
this.nBusWidth = bus.getWidth();
|
||||
|
||||
/*
|
||||
* Re-initialize Debugger message support if necessary
|
||||
* Override the Debugger's message configuration if specified.
|
||||
*/
|
||||
var sMessages = /** @type {string|undefined} */ (cmp.getMachineParm('messages'));
|
||||
if (sMessages) this.messageInit(sMessages);
|
||||
|
||||
/*
|
||||
* Override the Debugger's initialization commands if specified.
|
||||
*/
|
||||
var sCommands = /** @type {string|undefined} */ (cmp.getMachineParm('commands'));
|
||||
if (sCommands) this.sInitCommands = sCommands;
|
||||
|
||||
/*
|
||||
* Update aOpReserved as appropriate for the current model
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -214,14 +214,22 @@ class Macro10 {
|
|||
this.done(this.parseFile());
|
||||
return;
|
||||
}
|
||||
|
||||
var macro10 = this;
|
||||
Web.getResource(this.asURLs[this.iURL++], null, true, function processMacro10(sURL, sResource, nErrorCode) {
|
||||
var sURL = this.asURLs[this.iURL++];
|
||||
|
||||
/*
|
||||
* We know that local resources ending with ".MAC" are actually stored with a ".txt" extension.
|
||||
*/
|
||||
if (sURL[0] == '/' && sURL.slice(-4) == ".MAC") sURL += ".txt";
|
||||
|
||||
Web.getResource(sURL, null, true, function processMacro10(sFile, sResource, nErrorCode) {
|
||||
if (nErrorCode) {
|
||||
macro10.done(nErrorCode, sURL);
|
||||
macro10.done(nErrorCode, sFile);
|
||||
return;
|
||||
}
|
||||
var sText = sResource;
|
||||
if (Str.endsWith(sURL, ".html")) {
|
||||
if (Str.endsWith(sFile, ".html")) {
|
||||
/*
|
||||
* We want to parse ONLY the text between <PRE>...</PRE> tags, and eliminate any HTML entities.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue