Mercurial > repos > blastem
comparison m68k_core.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 | 252dfd29831d |
children | 6011409ded0d |
comparison
equal
deleted
inserted
replaced
893:4f46b4cd5035 | 894:a7774fc2de4b |
---|---|
824 } else if (info->itype == UNARY_ARITH) { | 824 } else if (info->itype == UNARY_ARITH) { |
825 translate_m68k_unary(opts, inst, info->impl.flag_mask, inst->dst.addr_mode != MODE_UNUSED ? &dst_op : &src_op); | 825 translate_m68k_unary(opts, inst, info->impl.flag_mask, inst->dst.addr_mode != MODE_UNUSED ? &dst_op : &src_op); |
826 } else { | 826 } else { |
827 m68k_disasm(inst, disasm_buf); | 827 m68k_disasm(inst, disasm_buf); |
828 fatal_error("%X: %s\ninstruction %d not yet implemented\n", inst->address, disasm_buf, inst->op); | 828 fatal_error("%X: %s\ninstruction %d not yet implemented\n", inst->address, disasm_buf, inst->op); |
829 } | |
830 if (opts->gen.code.stack_off) { | |
831 m68k_disasm(inst, disasm_buf); | |
832 fatal_error("Stack offset is %X after %X: %s\n", opts->gen.code.stack_off, inst->address, disasm_buf); | |
829 } | 833 } |
830 } | 834 } |
831 | 835 |
832 void translate_m68k_stream(uint32_t address, m68k_context * context) | 836 void translate_m68k_stream(uint32_t address, m68k_context * context) |
833 { | 837 { |