diff options
author | Mike Pavone <pavone@retrodev.com> | 2012-12-27 21:19:58 -0800 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2012-12-27 21:19:58 -0800 |
commit | e20c4dfeab1bbfb208f5ecfcf25ca4185babe750 (patch) | |
tree | 5c54203478db0263576f8bf246919b9b24fa164d /m68k_to_x86.h | |
parent | 604066b43154d773f536fa2a86869949a7cc8a83 (diff) |
Initial work on allowing dynamic branches and code in RAM plus a small fix to effective address decoding
Diffstat (limited to 'm68k_to_x86.h')
-rw-r--r-- | m68k_to_x86.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/m68k_to_x86.h b/m68k_to_x86.h index a066f39..7871c6a 100644 --- a/m68k_to_x86.h +++ b/m68k_to_x86.h @@ -23,7 +23,8 @@ typedef struct { int8_t aregs[8]; native_map_slot *native_code_map; deferred_addr *deferred; - + uint8_t *cur_code; + uint8_t *code_end; } x86_68k_options; typedef struct { @@ -46,7 +47,7 @@ typedef struct { } m68k_context; uint8_t * translate_m68k(uint8_t * dst, m68kinst * inst, x86_68k_options * opts); -uint8_t * translate_m68k_stream(uint8_t * dst, uint8_t * dst_end, uint32_t address, m68k_context * context); +uint8_t * 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); void init_68k_context(m68k_context * context, native_map_slot * native_code_map, void * opts); |