diff --git a/src/cc65/assignment.c b/src/cc65/assignment.c index 7d7f8c6df..d4e9d61fd 100644 --- a/src/cc65/assignment.c +++ b/src/cc65/assignment.c @@ -96,8 +96,9 @@ void Assignment (ExprDesc* Expr) } if (UseReg) { PushAddr (Expr); - } else { - LoadExpr (CF_NONE, Expr); + } else { + ED_MakeRVal (Expr); + LoadExpr (CF_NONE, Expr); g_push (CF_PTR | CF_UNSIGNED, 0); }