comparison m68k_internal.h @ 687:a61d33ccea7d

Moved translate_m68k_rte and translate_m68k_reset to m68k_core.c
author Michael Pavone <pavone@retrodev.com>
date Thu, 08 Jan 2015 19:11:56 -0800
parents f0061e3d2ad9
children 8c546bc1d773
comparison
equal deleted inserted replaced
686:8cb61671777b 687:a61d33ccea7d
29 void add_dreg_native(m68k_options *opts, uint8_t reg, uint8_t native_reg); 29 void add_dreg_native(m68k_options *opts, uint8_t reg, uint8_t native_reg);
30 void calc_areg_displace(m68k_options *opts, m68k_op_info *op, uint8_t native_reg); 30 void calc_areg_displace(m68k_options *opts, m68k_op_info *op, uint8_t native_reg);
31 void calc_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg); 31 void calc_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg);
32 void calc_areg_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg); 32 void calc_areg_index_disp8(m68k_options *opts, m68k_op_info *op, uint8_t native_reg);
33 void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst); 33 void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst);
34 void check_user_mode_swap_ssp_usp(m68k_options *opts);
34 35
35 //functions implemented in m68k_core.c 36 //functions implemented in m68k_core.c
36 int8_t native_reg(m68k_op_info * op, m68k_options * opts); 37 int8_t native_reg(m68k_op_info * op, m68k_options * opts);
37 size_t dreg_offset(uint8_t reg); 38 size_t dreg_offset(uint8_t reg);
38 size_t areg_offset(uint8_t reg); 39 size_t areg_offset(uint8_t reg);
81 void translate_m68k_andi_ori_ccr_sr(m68k_options *opts, m68kinst *inst); 82 void translate_m68k_andi_ori_ccr_sr(m68k_options *opts, m68kinst *inst);
82 void translate_m68k_eori_ccr_sr(m68k_options *opts, m68kinst *inst); 83 void translate_m68k_eori_ccr_sr(m68k_options *opts, m68kinst *inst);
83 void translate_m68k_move_ccr_sr(m68k_options *opts, m68kinst *inst, host_ea *src_op, host_ea *dst_op); 84 void translate_m68k_move_ccr_sr(m68k_options *opts, m68kinst *inst, host_ea *src_op, host_ea *dst_op);
84 void translate_m68k_stop(m68k_options *opts, m68kinst *inst); 85 void translate_m68k_stop(m68k_options *opts, m68kinst *inst);
85 void translate_m68k_move_from_sr(m68k_options *opts, m68kinst *inst, host_ea *src_op, host_ea *dst_op); 86 void translate_m68k_move_from_sr(m68k_options *opts, m68kinst *inst, host_ea *src_op, host_ea *dst_op);
86 void translate_m68k_reset(m68k_options *opts, m68kinst *inst);
87 void translate_m68k_rte(m68k_options *opts, m68kinst *inst);
88 87
89 //flag update bits 88 //flag update bits
90 #define X0 0x0001 89 #define X0 0x0001
91 #define X1 0x0002 90 #define X1 0x0002
92 #define X 0x0004 91 #define X 0x0004