# HG changeset patch # User Michael Pavone # Date 1420184244 28800 # Node ID 66388360f87352a97eb52027d38a201a86fb33d2 # Parent 01c51f397db25728f96c65029cc26bc46a81c42d Remove dedicated registers for Z80 bank reg and Z80 bank pointer as they are no longer used diff -r 01c51f397db2 -r 66388360f873 z80_to_x86.c --- 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; diff -r 01c51f397db2 -r 66388360f873 z80_to_x86.h --- 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;