summaryrefslogtreecommitdiff
path: root/gen.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-25 08:40:45 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-25 08:40:45 -0800
commit77f239c97ce5d496998c3b8a07d84d27b5d5984f (patch)
treeb9e7951e055fa80a7afc925bec7d72193cead1f6 /gen.c
parent621afa83ca859c29efcf57beef5b21c918161e78 (diff)
Partially working change to do proper stack alignment rather than doing a lame alignment check when calling a C compile dfunction. 68K core seems okay, but Z80 is busted.
Diffstat (limited to 'gen.c')
-rw-r--r--gen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gen.c b/gen.c
index 52be6a0..dafe5af 100644
--- a/gen.c
+++ b/gen.c
@@ -12,4 +12,5 @@ void init_code_info(code_info *code)
fatal_error("Failed to allocate memory for generated code\n");
}
code->last = code->cur + size/sizeof(code_word) - RESERVE_WORDS;
+ code->stack_off = 0;
}