Mercurial > repos > blastem
diff z80_to_x86.c @ 737:043393b79e28
Fixes for the 32-bit build accidentally introduced a bug into the 64-bit build, this commit fixes the regression
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 26 May 2015 20:00:50 -0700 |
parents | 539d12fa6a4d |
children | 7306b3967c51 |
line wrap: on
line diff
--- a/z80_to_x86.c Mon May 25 23:37:13 2015 -0700 +++ b/z80_to_x86.c Tue May 26 20:00:50 2015 -0700 @@ -1460,6 +1460,7 @@ uint8_t bit; if ((inst->addr_mode & 0x1F) == Z80_REG && opts->regs[inst->ea_reg] >= AH && opts->regs[inst->ea_reg] <= BH) { src_op.base = opts->regs[z80_word_reg(inst->ea_reg)]; + src_op.mode = MODE_REG_DIRECT; size = SZ_W; bit = inst->immed + 8; } else { @@ -1497,6 +1498,7 @@ uint8_t bit; if ((inst->addr_mode & 0x1F) == Z80_REG && opts->regs[inst->ea_reg] >= AH && opts->regs[inst->ea_reg] <= BH) { src_op.base = opts->regs[z80_word_reg(inst->ea_reg)]; + src_op.mode = MODE_REG_DIRECT; size = SZ_W; bit = inst->immed + 8; } else { @@ -1563,6 +1565,7 @@ uint8_t bit; if ((inst->addr_mode & 0x1F) == Z80_REG && opts->regs[inst->ea_reg] >= AH && opts->regs[inst->ea_reg] <= BH) { src_op.base = opts->regs[z80_word_reg(inst->ea_reg)]; + src_op.mode = MODE_REG_DIRECT; size = SZ_W; bit = inst->immed + 8; } else {