Mercurial > repos > blastem
comparison m68k_to_x86.h @ 567:8e395210f50f
Refactor gen_x86 to use an interface more like gen_arm and to remove the need for the caller to decide whether an 8-bit or 32-bit displacement is needed in the rdisp functions. Update m68k_to_x86 to use the new version of the gen_x86 functions and do some minor refactoring there in the process
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 02 Mar 2014 14:45:36 -0800 |
parents | 624dd5106060 |
children |
comparison
equal
deleted
inserted
replaced
566:624dd5106060 | 567:8e395210f50f |
---|---|
62 void *options; | 62 void *options; |
63 uint8_t ram_code_flags[32/8]; | 63 uint8_t ram_code_flags[32/8]; |
64 void *system; | 64 void *system; |
65 } m68k_context; | 65 } m68k_context; |
66 | 66 |
67 uint8_t * translate_m68k(uint8_t * dst, struct m68kinst * inst, x86_68k_options * opts); | 67 void translate_m68k(x86_68k_options * opts, struct m68kinst * inst); |
68 uint8_t * translate_m68k_stream(uint32_t address, m68k_context * context); | 68 void translate_m68k_stream(uint32_t address, m68k_context * context); |
69 void start_68k_context(m68k_context * context, uint32_t address); | 69 void start_68k_context(m68k_context * context, uint32_t address); |
70 void init_x86_68k_opts(x86_68k_options * opts, memmap_chunk * memmap, uint32_t num_chunks); | 70 void init_x86_68k_opts(x86_68k_options * opts, memmap_chunk * memmap, uint32_t num_chunks); |
71 void init_68k_context(m68k_context * context, native_map_slot * native_code_map, void * opts); | 71 void init_68k_context(m68k_context * context, native_map_slot * native_code_map, void * opts); |
72 void m68k_reset(m68k_context * context); | 72 void m68k_reset(m68k_context * context); |
73 void insert_breakpoint(m68k_context * context, uint32_t address, uint8_t * bp_handler); | 73 void insert_breakpoint(m68k_context * context, uint32_t address, uint8_t * bp_handler); |