# HG changeset patch # User Michael Pavone # Date 1432695650 25200 # Node ID 043393b79e288de6af9daee217c955c77c379e23 # Parent 535e97bad27f10c9b938f3c374ad7625141f2d7b Fixes for the 32-bit build accidentally introduced a bug into the 64-bit build, this commit fixes the regression diff -r 535e97bad27f -r 043393b79e28 z80_to_x86.c --- 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 {