comparison m68k_core.h @ 1130:8f14767661fa

Remove memory map assumptions from Z80 core and move a little bit of logic to the generic backend.c so it can be shared between CPU cores
author Michael Pavone <pavone@retrodev.com>
date Wed, 28 Dec 2016 20:39:27 -0800
parents 2eb54e24914e
children 2e6dcb5c11a2
comparison
equal deleted inserted replaced
1129:6b5c92b6205c 1130:8f14767661fa
61 uint32_t int_num; 61 uint32_t int_num;
62 uint32_t last_prefetch_address; 62 uint32_t last_prefetch_address;
63 uint16_t *mem_pointers[NUM_MEM_AREAS]; 63 uint16_t *mem_pointers[NUM_MEM_AREAS];
64 code_ptr resume_pc; 64 code_ptr resume_pc;
65 code_ptr reset_handler; 65 code_ptr reset_handler;
66 native_map_slot *native_code_map;
67 m68k_options *options; 66 m68k_options *options;
68 void *system; 67 void *system;
69 uint8_t int_pending; 68 uint8_t int_pending;
70 uint8_t should_return; 69 uint8_t should_return;
71 uint8_t ram_code_flags[]; 70 uint8_t ram_code_flags[];
82 void m68k_reset(m68k_context * context); 81 void m68k_reset(m68k_context * context);
83 void m68k_options_free(m68k_options *opts); 82 void m68k_options_free(m68k_options *opts);
84 void insert_breakpoint(m68k_context * context, uint32_t address, m68k_debug_handler bp_handler); 83 void insert_breakpoint(m68k_context * context, uint32_t address, m68k_debug_handler bp_handler);
85 void remove_breakpoint(m68k_context * context, uint32_t address); 84 void remove_breakpoint(m68k_context * context, uint32_t address);
86 m68k_context * m68k_handle_code_write(uint32_t address, m68k_context * context); 85 m68k_context * m68k_handle_code_write(uint32_t address, m68k_context * context);
87 uint32_t get_instruction_start(m68k_options *opts, native_map_slot * native_code_map, uint32_t address); 86 uint32_t get_instruction_start(m68k_options *opts, uint32_t address);
88 uint16_t m68k_get_ir(m68k_context *context); 87 uint16_t m68k_get_ir(m68k_context *context);
89 void m68k_print_regs(m68k_context * context); 88 void m68k_print_regs(m68k_context * context);
90 89
91 #endif //M68K_CORE_H_ 90 #endif //M68K_CORE_H_
92 91