Mercurial > repos > blastem
comparison m68k_to_x86.h @ 192:1db07e112bf7
Prep work for handling games that modify code in RAM
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 14 Jan 2013 21:56:54 -0800 |
parents | ebcbdd1c4cc8 |
children | c66e4636f991 |
comparison
equal
deleted
inserted
replaced
191:1b4d856b067a | 192:1db07e112bf7 |
---|---|
25 int8_t aregs[8]; | 25 int8_t aregs[8]; |
26 native_map_slot *native_code_map; | 26 native_map_slot *native_code_map; |
27 deferred_addr *deferred; | 27 deferred_addr *deferred; |
28 uint8_t *cur_code; | 28 uint8_t *cur_code; |
29 uint8_t *code_end; | 29 uint8_t *code_end; |
30 uint8_t **ram_inst_sizes; | |
30 } x86_68k_options; | 31 } x86_68k_options; |
31 | 32 |
32 typedef struct { | 33 typedef struct { |
33 uint8_t flags[5]; | 34 uint8_t flags[5]; |
34 uint8_t status; | 35 uint8_t status; |
44 void *next_context; | 45 void *next_context; |
45 uint16_t value; | 46 uint16_t value; |
46 | 47 |
47 native_map_slot *native_code_map; | 48 native_map_slot *native_code_map; |
48 void *options; | 49 void *options; |
50 uint8_t ram_code_flags[32/8]; | |
49 } m68k_context; | 51 } m68k_context; |
50 | 52 |
51 uint8_t * translate_m68k(uint8_t * dst, m68kinst * inst, x86_68k_options * opts); | 53 uint8_t * translate_m68k(uint8_t * dst, m68kinst * inst, x86_68k_options * opts); |
52 uint8_t * translate_m68k_stream(uint32_t address, m68k_context * context); | 54 uint8_t * translate_m68k_stream(uint32_t address, m68k_context * context); |
53 void start_68k_context(m68k_context * context, uint32_t address); | 55 void start_68k_context(m68k_context * context, uint32_t address); |