Mercurial > repos > blastem
comparison z80_to_x86.c @ 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 |
comparison
equal
deleted
inserted
replaced
1047:6b07af1515b5 | 1048:05ecef6c73b6 |
---|---|
2745 options->gen.scratch2 = R14; | 2745 options->gen.scratch2 = R14; |
2746 #else | 2746 #else |
2747 memset(options->regs, -1, sizeof(options->regs)); | 2747 memset(options->regs, -1, sizeof(options->regs)); |
2748 options->regs[Z80_A] = RAX; | 2748 options->regs[Z80_A] = RAX; |
2749 options->regs[Z80_R] = AH; | 2749 options->regs[Z80_R] = AH; |
2750 options->regs[Z80_SP] = RBX; | 2750 options->regs[Z80_H] = BH; |
2751 options->regs[Z80_L] = RBX; | |
2752 options->regs[Z80_HL] = RBX; | |
2753 | |
2754 options->regs[Z80_SP] = RDI; | |
2751 | 2755 |
2752 options->gen.scratch1 = RCX; | 2756 options->gen.scratch1 = RCX; |
2753 options->gen.scratch2 = RDX; | 2757 options->gen.scratch2 = RDX; |
2754 #endif | 2758 #endif |
2755 | 2759 |