From 986b3641a1110e7dd1994c76ecb592420877f8f5 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 6 Oct 2016 09:34:31 -0700 Subject: Add support for specifying a reset handler in the M68K core. Adjust memory map initialization to handle extra field. Improved handling of out of bounds execution. --- m68k_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm68k_internal.h') diff --git a/m68k_internal.h b/m68k_internal.h index 4a3acf3..b472eb6 100644 --- a/m68k_internal.h +++ b/m68k_internal.h @@ -9,7 +9,7 @@ #include "68kinst.h" //functions implemented in host CPU specfic file -void translate_out_of_bounds(code_info *code); +void translate_out_of_bounds(m68k_options *opts, uint32_t address); void areg_to_native(m68k_options *opts, uint8_t reg, uint8_t native_reg); void dreg_to_native(m68k_options *opts, uint8_t reg, uint8_t native_reg); void areg_to_native_sx(m68k_options *opts, uint8_t reg, uint8_t native_reg); @@ -42,7 +42,6 @@ size_t dreg_offset(uint8_t reg); size_t areg_offset(uint8_t reg); size_t reg_offset(m68k_op_info *op); void translate_m68k_op(m68kinst * inst, host_ea * ea, m68k_options * opts, uint8_t dst); -void print_regs_exit(m68k_context * context); void m68k_read_size(m68k_options *opts, uint8_t size); void m68k_write_size(m68k_options *opts, uint8_t size, uint8_t lowfirst); void m68k_save_result(m68kinst * inst, m68k_options * opts); @@ -88,6 +87,7 @@ void translate_m68k_eori_ccr_sr(m68k_options *opts, m68kinst *inst); void translate_m68k_move_ccr_sr(m68k_options *opts, m68kinst *inst, host_ea *src_op, host_ea *dst_op); void translate_m68k_stop(m68k_options *opts, m68kinst *inst); void translate_m68k_move_from_sr(m68k_options *opts, m68kinst *inst, host_ea *src_op, host_ea *dst_op); +void translate_m68k_reset(m68k_options *opts, m68kinst *inst); //flag update bits #define X0 0x0001 -- cgit v1.2.3