diff gen.c @ 894:a7774fc2de4b

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.
author Michael Pavone <pavone@retrodev.com>
date Wed, 25 Nov 2015 08:40:45 -0800
parents 724bbec47f86
children
line wrap: on
line diff
--- a/gen.c	Sun Nov 22 14:43:51 2015 -0800
+++ b/gen.c	Wed Nov 25 08:40:45 2015 -0800
@@ -12,4 +12,5 @@
 		fatal_error("Failed to allocate memory for generated code\n");
 	}
 	code->last = code->cur + size/sizeof(code_word) - RESERVE_WORDS;
+	code->stack_off = 0;
 }