Improved MACRO-10 addWord() parsing

This commit is contained in:
Jeff 2017-03-24 13:44:34 -07:00 committed by Jeff Parsons
commit 1b0e01c66a
6 changed files with 102 additions and 89 deletions

View file

@ -1703,6 +1703,14 @@ class DebuggerPDP10 extends Debugger {
}
if (opCode >= 0) break;
}
/*
* MACRO-10 also allows instructions to be assembled without an opcode (ie, just an address reference),
* so we'll give that a try next.
*/
if (opCode < 0) {
sOperands = sOpcode + sOperands;
opCode = 0;
}
}
if (opCode >= 0) {