Cleaned up the MACRO-10 assembly demos

This commit is contained in:
Jeff 2017-03-24 14:11:28 -07:00 committed by Jeff Parsons
commit eed6e990e3
6 changed files with 30 additions and 10 deletions

View file

@ -2606,7 +2606,7 @@ class DebuggerPDP10 extends Debugger {
}
var sOptions = asArgs[0].substr(1);
var match = sOpcode.match(/^(['"]?)((\/|http:).*)\1$/);
var match = sOpcode.match(/^(['"]?)(.*\.mac)\1$/i);
if (match) {
var dbg = this;
if (this.macro10) {

View file

@ -288,7 +288,7 @@ class Macro10 {
/*
* We know that local resources ending with ".MAC" are actually stored with a ".txt" extension.
*/
if (sURL[0] == '/' && sURL.slice(-4) == ".MAC") sURL += ".txt";
if (sURL.slice(-4).toUpperCase() == ".MAC") sURL += ".txt";
Web.getResource(sURL, null, true, function processMacro10(sFile, sResource, nErrorCode) {
if (nErrorCode) {