diff z80_to_x86.c @ 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 e7cae6d9aaa6
children 7a5461001242
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;