Fixed parsing of expressions with spaces

This commit is contained in:
Jeff 2017-03-28 09:17:09 -07:00 committed by Jeff Parsons
commit b2a6a06908
11 changed files with 11503 additions and 13 deletions

View file

@ -1704,9 +1704,9 @@ class DebuggerPDP10 extends Debugger {
}
/*
* MACRO-10 also allows instructions to be assembled without an opcode (ie, just an address reference),
* so we'll give that a try next.
* so we'll give that a try next (as long as we're not mashing two symbols together).
*/
if (opCode < 0) {
if (opCode < 0 && sOperands && !sOperands.match(/^[0-9A-Z$%.?]/i)) {
sOperands = sOpcode + sOperands;
sOpcode = "";
opCode = 0;