From 4d15ffc63362410563a49481faf9652c138945ac Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 11 Mar 2014 09:44:47 -0700 Subject: Split gen_mem_fun out of m68k_core_x86 and make it more generic so it can be used by the Z80 core --- backend.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'backend.h') diff --git a/backend.h b/backend.h index af522fd..0106759 100644 --- a/backend.h +++ b/backend.h @@ -56,7 +56,15 @@ typedef struct { code_ptr load_context; code_ptr handle_cycle_limit; code_ptr handle_cycle_limit_int; - uint8_t context_reg; + code_ptr handle_code_write; + uint32_t address_mask; + uint32_t max_address; + uint32_t bus_cycles; + int32_t mem_ptr_off; + int32_t ram_flags_off; + uint8_t address_size; + uint8_t byte_swap; + uint8_t context_reg; uint8_t cycles; uint8_t limit; uint8_t scratch1; @@ -100,5 +108,7 @@ void cycles(cpu_options *opts, uint32_t num); void check_cycles_int(cpu_options *opts, uint32_t address); void check_cycles(cpu_options * opts); +code_ptr gen_mem_fun(cpu_options * opts, memmap_chunk * memmap, uint32_t num_chunks, ftype fun_type); + #endif //BACKEND_H_ -- cgit v1.2.3