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:
parent
9d8195415a
commit
c93f6792ce
7
stmnt.c
7
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user