summaryrefslogtreecommitdiffstats
path: root/src/code-generation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code-generation.c')
-rw-r--r--src/code-generation.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/code-generation.c b/src/code-generation.c
index 4075822..4b10015 100644
--- a/src/code-generation.c
+++ b/src/code-generation.c
@@ -500,6 +500,9 @@ static void generate_statement(
state, current_offset);
break;
case CCMMC_KIND_STMT_FUNCTION_CALL:
+ ccmmc_register_caller_save(state->reg_pool);
+ fprintf(state->asm_output, "\tbl\t%s\n", stmt->child->value_id.name);
+ ccmmc_register_caller_load(state->reg_pool);
break;
case CCMMC_KIND_STMT_RETURN:
break;