From 58a397213adf9fd4fdf5dc7322158ae1a5eaf61b Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Fri, 14 Jun 2013 23:27:01 -0700 Subject: Fix adc and sbc --- z80_to_x86.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'z80_to_x86.c') diff --git a/z80_to_x86.c b/z80_to_x86.c index 9030944..1e6cfdd 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -618,6 +618,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context dst = zcycles(dst, cycles); dst = translate_z80_reg(inst, &dst_op, dst, opts); dst = translate_z80_ea(inst, &src_op, dst, opts, READ, DONT_MODIFY); + dst = bt_irdisp8(dst, 0, CONTEXT, zf_off(ZF_C), SZ_B); if (src_op.mode == MODE_REG_DIRECT) { dst = adc_rr(dst, src_op.base, dst_op.base, z80_size(inst)); } else { @@ -668,6 +669,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context dst = zcycles(dst, cycles); dst = translate_z80_reg(inst, &dst_op, dst, opts); dst = translate_z80_ea(inst, &src_op, dst, opts, READ, DONT_MODIFY); + dst = bt_irdisp8(dst, 0, CONTEXT, zf_off(ZF_C), SZ_B); if (src_op.mode == MODE_REG_DIRECT) { dst = sbb_rr(dst, src_op.base, dst_op.base, z80_size(inst)); } else { -- cgit v1.2.3