comparison m68k_to_x86.h @ 263:2989ed7b8608

Add a second context pointer to m68k_context so that try_fifo_write can still have easy access to the VDP. Handle writes to Z80 code addresses from the 68K.
author Mike Pavone <pavone@retrodev.com>
date Tue, 30 Apr 2013 20:36:15 -0700
parents 63b9a500a00b
children a8ee7934a1f8
comparison
equal deleted inserted replaced
262:d97c9eca49f4 263:2989ed7b8608
35 uint32_t current_cycle; 35 uint32_t current_cycle;
36 uint32_t sync_cycle; 36 uint32_t sync_cycle;
37 uint32_t int_cycle; 37 uint32_t int_cycle;
38 uint32_t int_num; 38 uint32_t int_num;
39 uint16_t *mem_pointers[NUM_MEM_AREAS]; 39 uint16_t *mem_pointers[NUM_MEM_AREAS];
40 void *next_context; 40 void *video_context;
41 uint16_t value; 41 uint16_t value;
42 42
43 native_map_slot *native_code_map; 43 native_map_slot *native_code_map;
44 void *options; 44 void *options;
45 uint8_t ram_code_flags[32/8]; 45 uint8_t ram_code_flags[32/8];
46 void *next_cpu;
46 } m68k_context; 47 } m68k_context;
47 48
48 uint8_t * translate_m68k(uint8_t * dst, struct m68kinst * inst, x86_68k_options * opts); 49 uint8_t * translate_m68k(uint8_t * dst, struct m68kinst * inst, x86_68k_options * opts);
49 uint8_t * translate_m68k_stream(uint32_t address, m68k_context * context); 50 uint8_t * translate_m68k_stream(uint32_t address, m68k_context * context);
50 void start_68k_context(m68k_context * context, uint32_t address); 51 void start_68k_context(m68k_context * context, uint32_t address);