diff m68k_to_x86.h @ 95:dd3c680c618c

Initial work on allowing dynamic branches and code in RAM plus a small fix to effective address decoding
author Mike Pavone <pavone@retrodev.com>
date Thu, 27 Dec 2012 21:19:58 -0800
parents 3d3966c254b2
children 94a65fb4e1c7
line wrap: on
line diff
--- a/m68k_to_x86.h	Thu Dec 27 18:47:33 2012 -0800
+++ b/m68k_to_x86.h	Thu Dec 27 21:19:58 2012 -0800
@@ -23,7 +23,8 @@
 	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 @@
 } 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);