aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler.c b/compiler.c
index c1086d4..44b2230 100644
--- a/compiler.c
+++ b/compiler.c
@@ -248,8 +248,8 @@ void generate(Compiler* c) {
case op_mul:
b = pop(c);
a = pop(c);
- gen_val(c, a, 0);
- gen_val(c, b, 1);
+ gen_val(c, a, 1);
+ gen_val(c, b, 0);
printf(
"imul %%%s, %%%s\n",
regs[1],