PDP-10 Debugger now supports command overrides from the page settings

This commit is contained in:
Jeff 2017-03-17 10:21:15 -07:00 • committed by Jeff Parsons
commit 639db42178
14 changed files with 18254 additions and 96252 deletions

View file

@ -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.
*/