diff z80_to_x86.h @ 591:966b46c68942

Get Z80 core back into compileable state
author Michael Pavone <pavone@retrodev.com>
date Wed, 17 Dec 2014 09:53:51 -0800
parents ea80559c67cb
children 4ff7bbb3943b
line wrap: on
line diff
--- a/z80_to_x86.h	Sun Dec 14 16:45:23 2014 -0800
+++ b/z80_to_x86.h	Wed Dec 17 09:53:51 2014 -0800
@@ -25,10 +25,17 @@
 	cpu_options     gen;
 	code_ptr        save_context_scratch;
 	code_ptr        load_context_scratch;
+	code_ptr		read_8;
+	code_ptr		write_8;
 	code_ptr        write_8_noinc;
+	code_ptr		read_16;
+	code_ptr		write_16_highfirst;
+	code_ptr		write_16_lowfirst;
 
 	uint32_t        flags;
 	int8_t          regs[Z80_UNUSED];
+	int8_t			bank_reg;
+	int8_t			bank_pointer;
 } z80_options;
 
 typedef struct {
@@ -62,8 +69,8 @@
 void translate_z80_stream(z80_context * context, uint32_t address);
 void init_x86_z80_opts(z80_options * options, memmap_chunk * chunks, uint32_t num_chunks);
 void init_z80_context(z80_context * context, z80_options * options);
-uint8_t * z80_get_native_address(z80_context * context, uint32_t address);
-uint8_t * z80_get_native_address_trans(z80_context * context, uint32_t address);
+code_ptr z80_get_native_address(z80_context * context, uint32_t address);
+code_ptr z80_get_native_address_trans(z80_context * context, uint32_t address);
 z80_context * z80_handle_code_write(uint32_t address, z80_context * context);
 void z80_run(z80_context * context);
 void z80_reset(z80_context * context);