aboutsummaryrefslogtreecommitdiff
path: root/gen_code.c
diff options
context:
space:
mode:
Diffstat (limited to 'gen_code.c')
-rw-r--r--gen_code.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gen_code.c b/gen_code.c
index 02c75aa..4be1a08 100644
--- a/gen_code.c
+++ b/gen_code.c
@@ -222,10 +222,8 @@ ptree *t;
switch (t->type){
case ASSIGNOP:
if (t->l->ret_type == INT) {
- gen_label(t->r);
- print_tree(t);
GEN_EXPR(t->r);
- fprintf(stdout, "movq %s, %d(%%rbp)\n", *reg_ptr,
+ fprintf(stdout, "movq\t%s, %d(%%rbp)\n", *reg_ptr,
- t->l->attr.nval->offset * OFFSET_SIZE);
} else {
yyerror(FLOAT_ERROR);