X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fassignment.c;h=196e0dcd93f26eb413c0123d7d16b256e18126ee;hb=b3496bb343a2c93284a8669da4b52cf45b3db3dd;hp=a6f00ac13e7d7b7b752f9c7aa5a3470da3e264b8;hpb=81f94afd5ca9e84124d4743d1c631c028e6be754;p=cc65 diff --git a/src/cc65/assignment.c b/src/cc65/assignment.c index a6f00ac13..196e0dcd9 100644 --- a/src/cc65/assignment.c +++ b/src/cc65/assignment.c @@ -87,7 +87,7 @@ int Assignment (ExprDesc* lval) if (UseReg) { PushAddr (lval); } else { - exprhs (0, 0, lval); + ExprLoad (0, 0, lval); g_push (CF_PTR | CF_UNSIGNED, 0); } @@ -107,7 +107,7 @@ int Assignment (ExprDesc* lval) lval2.Type = stype; /* Load the value into the primary */ - exprhs (CF_FORCECHAR, k, &lval2); + ExprLoad (CF_FORCECHAR, k, &lval2); /* Store it into the new location */ Store (lval, stype); @@ -115,7 +115,7 @@ int Assignment (ExprDesc* lval) } else { /* We will use memcpy. Push the address of the rhs */ - exprhs (0, 0, &lval2); + ExprLoad (0, 0, &lval2); /* Push the address (or whatever is in ax in case of errors) */ g_push (CF_PTR | CF_UNSIGNED, 0); @@ -158,7 +158,7 @@ int Assignment (ExprDesc* lval) k = TypeConversion (&lval2, k, ltype); /* If necessary, load the value into the primary register */ - exprhs (CF_NONE, k, &lval2); + ExprLoad (CF_NONE, k, &lval2); /* Generate a store instruction */ Store (lval, 0);