1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-17 15:06:29 +00:00

Reverted Assignment to Register code

This commit is contained in:
Curtis F Kaylor 2017-06-26 20:23:04 -04:00
parent 9d8195415a
commit c93f6792ce

View File

@ -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) {