changeset 662:66388360f873

Remove dedicated registers for Z80 bank reg and Z80 bank pointer as they are no longer used
author Michael Pavone <pavone@retrodev.com>
date Thu, 01 Jan 2015 23:37:24 -0800
parents 01c51f397db2
children 7a5461001242
files z80_to_x86.c z80_to_x86.h
diffstat 2 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/z80_to_x86.c	Thu Jan 01 22:52:18 2015 -0800
+++ b/z80_to_x86.c	Thu Jan 01 23:37:24 2015 -0800
@@ -1956,9 +1956,6 @@
 	options->regs[Z80_IX] = RDX;
 	options->regs[Z80_IY] = R8;
 
-	options->bank_reg = R15;
-	options->bank_pointer = R12;
-
 	options->gen.context_reg = RSI;
 	options->gen.cycles = RBP;
 	options->gen.limit = RDI;
@@ -2003,8 +2000,6 @@
 	}
 	mov_rrdisp(code, options->gen.limit, options->gen.context_reg, offsetof(z80_context, target_cycle), SZ_D);
 	mov_rrdisp(code, options->gen.cycles, options->gen.context_reg, offsetof(z80_context, current_cycle), SZ_D);
-	mov_rrdisp(code, options->bank_reg, options->gen.context_reg, offsetof(z80_context, bank_reg), SZ_W);
-	mov_rrdisp(code, options->bank_pointer, options->gen.context_reg, offsetof(z80_context, mem_pointers) + sizeof(uint8_t *) * 1, SZ_PTR);
 	retn(code);
 
 	options->load_context_scratch = code->cur;
@@ -2034,8 +2029,6 @@
 	}
 	mov_rdispr(code, options->gen.context_reg, offsetof(z80_context, target_cycle), options->gen.limit, SZ_D);
 	mov_rdispr(code, options->gen.context_reg, offsetof(z80_context, current_cycle), options->gen.cycles, SZ_D);
-	mov_rdispr(code, options->gen.context_reg, offsetof(z80_context, bank_reg), options->bank_reg, SZ_W);
-	mov_rdispr(code, options->gen.context_reg, offsetof(z80_context, mem_pointers) + sizeof(uint8_t *) * 1, options->bank_pointer, SZ_PTR);
 	retn(code);
 
 	options->native_addr = code->cur;
--- a/z80_to_x86.h	Thu Jan 01 22:52:18 2015 -0800
+++ b/z80_to_x86.h	Thu Jan 01 23:37:24 2015 -0800
@@ -42,8 +42,6 @@
 
 	uint32_t        flags;
 	int8_t          regs[Z80_UNUSED];
-	int8_t          bank_reg;
-	int8_t          bank_pointer;
 	z80_run_fun     run;
 } z80_options;