Mercurial > repos > blastem
comparison backend.h @ 589:2dde38c1744f
Split gen_mem_fun out of m68k_core_x86 and make it more generic so it can be used by the Z80 core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 11 Mar 2014 09:44:47 -0700 |
parents | c05fcbfe1b1a |
children | ea80559c67cb |
comparison
equal
deleted
inserted
replaced
588:963d5901f583 | 589:2dde38c1744f |
---|---|
54 uint8_t **ram_inst_sizes; | 54 uint8_t **ram_inst_sizes; |
55 code_ptr save_context; | 55 code_ptr save_context; |
56 code_ptr load_context; | 56 code_ptr load_context; |
57 code_ptr handle_cycle_limit; | 57 code_ptr handle_cycle_limit; |
58 code_ptr handle_cycle_limit_int; | 58 code_ptr handle_cycle_limit_int; |
59 uint8_t context_reg; | 59 code_ptr handle_code_write; |
60 uint32_t address_mask; | |
61 uint32_t max_address; | |
62 uint32_t bus_cycles; | |
63 int32_t mem_ptr_off; | |
64 int32_t ram_flags_off; | |
65 uint8_t address_size; | |
66 uint8_t byte_swap; | |
67 uint8_t context_reg; | |
60 uint8_t cycles; | 68 uint8_t cycles; |
61 uint8_t limit; | 69 uint8_t limit; |
62 uint8_t scratch1; | 70 uint8_t scratch1; |
63 uint8_t scratch2; | 71 uint8_t scratch2; |
64 } cpu_options; | 72 } cpu_options; |
98 | 106 |
99 void cycles(cpu_options *opts, uint32_t num); | 107 void cycles(cpu_options *opts, uint32_t num); |
100 void check_cycles_int(cpu_options *opts, uint32_t address); | 108 void check_cycles_int(cpu_options *opts, uint32_t address); |
101 void check_cycles(cpu_options * opts); | 109 void check_cycles(cpu_options * opts); |
102 | 110 |
111 code_ptr gen_mem_fun(cpu_options * opts, memmap_chunk * memmap, uint32_t num_chunks, ftype fun_type); | |
112 | |
103 #endif //BACKEND_H_ | 113 #endif //BACKEND_H_ |
104 | 114 |