From bf42f58b05f3d957174e525d26e5ffbb18d2c6ed Mon Sep 17 00:00:00 2001 From: Xun Yang <x299yang@uwaterloo.ca> Date: Mon, 13 Apr 2020 15:05:57 -0400 Subject: [PATCH] fix assignment --- ExprPrimaryNodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ExprPrimaryNodes.py b/ExprPrimaryNodes.py index 71674cb..1ac5ba8 100644 --- a/ExprPrimaryNodes.py +++ b/ExprPrimaryNodes.py @@ -358,6 +358,7 @@ class AssignNode(ASTNode): self.code += p("pop", "ebx") self.code += p("mov", "[eax]", "ebx") + self.code += p("mov", "eax", "ebx") # result of assignment is its own value self.code += ("; End of assignment\n") -- GitLab