summaryrefslogtreecommitdiff
path: root/m68k_core.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 /m68k_core.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 'm68k_core.c')
-rw-r--r--m68k_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/m68k_core.c b/m68k_core.c
index 6a7283f..f751fe8 100644
--- a/m68k_core.c
+++ b/m68k_core.c
@@ -827,6 +827,10 @@ void translate_m68k(m68k_options * opts, m68kinst * inst)
m68k_disasm(inst, disasm_buf);
fatal_error("%X: %s\ninstruction %d not yet implemented\n", inst->address, disasm_buf, inst->op);
}
+ if (opts->gen.code.stack_off) {
+ m68k_disasm(inst, disasm_buf);
+ fatal_error("Stack offset is %X after %X: %s\n", opts->gen.code.stack_off, inst->address, disasm_buf);
+ }
}
void translate_m68k_stream(uint32_t address, m68k_context * context)