Fixed the PDP-10 BLT instruction

This commit is contained in:
Jeff 2017-04-05 11:32:16 -07:00 committed by Jeff Parsons
commit d4c12c8c7a
10 changed files with 121 additions and 109 deletions

View file

@ -1611,7 +1611,7 @@ class Macro10 {
{
name = name.toUpperCase().substr(0, 6);
if ((nType & Macro10.SYMTYPE.LABEL) && this.tblSymbols[name] !== undefined) {
this.error("label '" + name + "' redefined");
this.error("redefined label '" + name + "'");
return;
}
var sUndefined = undefined;
@ -1619,9 +1619,12 @@ class Macro10 {
var aUndefined = [];
var v = this.parseExpression(value, aUndefined);
if (v === undefined) {
this.error("symbol error (" + value + ")");
this.error("invalid symbol '" + name + "': " + value);
return;
}
if (aUndefined.length > 1) {
this.error("too many undefined symbols in '" + name + "': " + aUndefined.join());
}
value = v;
sUndefined = aUndefined[0];
}