From e8a9c14ec2e0b75eb1aef1c2a77936c6f7fd8326 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 26 Dec 2014 15:45:31 -0800 Subject: Fix a few bugs introduced in the Z80 core from the adjustments to fit with the code gen refactor --- m68k_internal.h | 1 - 1 file changed, 1 deletion(-) (limited to 'm68k_internal.h') diff --git a/m68k_internal.h b/m68k_internal.h index 1a06e03..a556505 100644 --- a/m68k_internal.h +++ b/m68k_internal.h @@ -10,7 +10,6 @@ //functions implemented in host CPU specfic file void translate_out_of_bounds(code_info *code); -void check_code_prologue(code_info *code); 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); -- cgit v1.2.3 From 882b6ddf738a529c15f45f9d058dc753bc354b50 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 8 Jan 2015 19:11:56 -0800 Subject: Moved translate_m68k_rte and translate_m68k_reset to m68k_core.c --- m68k_internal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'm68k_internal.h') diff --git a/m68k_internal.h b/m68k_internal.h index a556505..fe77e78 100644 --- a/m68k_internal.h +++ b/m68k_internal.h @@ -31,6 +31,7 @@ void calc_areg_displace(m68k_options *opts, m68k_op_info *op, uint8_t native_reg void calc_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg); void calc_areg_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg); void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst); +void check_user_mode_swap_ssp_usp(m68k_options *opts); //functions implemented in m68k_core.c int8_t native_reg(m68k_op_info * op, m68k_options * opts); @@ -83,8 +84,6 @@ 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); -void translate_m68k_rte(m68k_options *opts, m68kinst *inst); //flag update bits #define X0 0x0001 -- cgit v1.2.3 From 7565848dd7a5d4dd1f762aeebd31d5835fe14835 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 8 Jan 2015 21:00:21 -0800 Subject: Moved m68k_save_result to m68k_core.c --- m68k_internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'm68k_internal.h') diff --git a/m68k_internal.h b/m68k_internal.h index fe77e78..755fd99 100644 --- a/m68k_internal.h +++ b/m68k_internal.h @@ -42,6 +42,7 @@ void translate_m68k_op(m68kinst * inst, host_ea * ea, m68k_options * opts, uint8 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); +void m68k_save_result(m68kinst * inst, m68k_options * opts); void push_const(m68k_options *opts, int32_t value); void jump_m68k_abs(m68k_options * opts, uint32_t address); void swap_ssp_usp(m68k_options * opts); -- cgit v1.2.3 From 057e8fb32092e1c1c642791cf915c2522b5662e0 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 22 May 2015 23:49:32 -0700 Subject: Don't attempt to translate or map code at odd addresses. This fixes a bug that shows up when playing College Footbal USA 96 --- m68k_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm68k_internal.h') diff --git a/m68k_internal.h b/m68k_internal.h index 755fd99..13b7c15 100644 --- a/m68k_internal.h +++ b/m68k_internal.h @@ -46,7 +46,7 @@ void m68k_save_result(m68kinst * inst, m68k_options * opts); void push_const(m68k_options *opts, int32_t value); void jump_m68k_abs(m68k_options * opts, uint32_t address); void swap_ssp_usp(m68k_options * opts); -code_ptr get_native_address(native_map_slot * native_code_map, uint32_t address); +code_ptr get_native_address(m68k_options *opts, uint32_t address); void map_native_address(m68k_context * context, uint32_t address, code_ptr native_addr, uint8_t size, uint8_t native_size); uint8_t get_native_inst_size(m68k_options * opts, uint32_t address); uint8_t m68k_is_terminal(m68kinst * inst); -- cgit v1.2.3