diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-03-02 14:45:36 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-03-02 14:45:36 -0800 |
commit | 16e7b59467ba17034f63834962e5d326a8facce4 (patch) | |
tree | 34c188d6f088c7985905fc69a29b4cddff88f332 /m68k_to_x86.h | |
parent | 21c7f3bc1537b360433c3149488c3077c7639b9b (diff) |
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
Diffstat (limited to 'm68k_to_x86.h')
-rw-r--r-- | m68k_to_x86.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m68k_to_x86.h b/m68k_to_x86.h index 3b8c619..7613ab7 100644 --- a/m68k_to_x86.h +++ b/m68k_to_x86.h @@ -64,8 +64,8 @@ typedef struct { void *system; } m68k_context; -uint8_t * translate_m68k(uint8_t * dst, struct m68kinst * inst, x86_68k_options * opts); -uint8_t * translate_m68k_stream(uint32_t address, m68k_context * context); +void translate_m68k(x86_68k_options * opts, struct m68kinst * inst); +void translate_m68k_stream(uint32_t address, m68k_context * context); void start_68k_context(m68k_context * context, uint32_t address); void init_x86_68k_opts(x86_68k_options * opts, memmap_chunk * memmap, uint32_t num_chunks); void init_68k_context(m68k_context * context, native_map_slot * native_code_map, void * opts); |