Mercurial > repos > blastem
changeset 1048:05ecef6c73b6
More efficient register usage in 32-bit mode
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 27 Jul 2016 23:08:05 -0700 |
parents | 6b07af1515b5 |
children | ef7ee9919a73 |
files | z80_to_x86.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/z80_to_x86.c Wed Jul 27 22:46:22 2016 -0700 +++ b/z80_to_x86.c Wed Jul 27 23:08:05 2016 -0700 @@ -2747,7 +2747,11 @@ memset(options->regs, -1, sizeof(options->regs)); options->regs[Z80_A] = RAX; options->regs[Z80_R] = AH; - options->regs[Z80_SP] = RBX; + options->regs[Z80_H] = BH; + options->regs[Z80_L] = RBX; + options->regs[Z80_HL] = RBX; + + options->regs[Z80_SP] = RDI; options->gen.scratch1 = RCX; options->gen.scratch2 = RDX;