From c93f6792ce7657c453515cd10956f70a8bea489b Mon Sep 17 00:00:00 2001 From: Curtis F Kaylor Date: Mon, 26 Jun 2017 20:23:04 -0400 Subject: [PATCH] Reverted Assignment to Register code --- stmnt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stmnt.c b/stmnt.c index d73b504..d982f1c 100644 --- a/stmnt.c +++ b/stmnt.c @@ -33,6 +33,7 @@ void prssif(char trmntr) { void prcasn(char trmntr) { expect('='); +/* if (strlen(asnvar) == 1 && strchr("XY", asnvar[0])) { DEBUG("Processing assignment of register '%s'\n", asnvar); prsval(TRUE); //Get value to assign @@ -54,17 +55,17 @@ void prcasn(char trmntr) } return; } +*/ DEBUG("Processing assignment of variable '%s'\n", asnvar); if (look('(')) prssif(trmntr); //Parse Shortcut If else prsxpr(trmntr); //Parse Expression - /* if (strcmp(asnvar, "X")==0) + if (strcmp(asnvar, "X")==0) asmlin("TAX", ""); else if (strcmp(asnvar, "Y")==0) asmlin("TAY", ""); - else */ - if ((strcmp(asnvar, "A")!=0)) + else if ((strcmp(asnvar, "A")!=0)) { if (strlen(asnidx)) { if (asnivt == CONSTANT) {