diff 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
line wrap: on
line diff
--- a/backend.h	Sat Mar 08 00:15:09 2014 -0800
+++ b/backend.h	Tue Mar 11 09:44:47 2014 -0700
@@ -56,7 +56,15 @@
 	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 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_