From 76119cc00d1b63bf1568ed07bed2ba131124ce68 Mon Sep 17 00:00:00 2001 From: SarahW Date: Tue, 15 Aug 2017 20:54:27 +0100 Subject: [PATCH] Fixed bug in MOVQ with 16-bit addressing. Patch from JosepMa. --- src/x86_ops_mmx_mov.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x86_ops_mmx_mov.h b/src/x86_ops_mmx_mov.h index 2d43663..37899b3 100644 --- a/src/x86_ops_mmx_mov.h +++ b/src/x86_ops_mmx_mov.h @@ -136,7 +136,7 @@ static int opMOVQ_mm_q_a16(uint32_t fetchdat) else { CHECK_WRITE(cpu_state.ea_seg, cpu_state.eaaddr, cpu_state.eaaddr + 7); - writememq(easeg, cpu_state.eaaddr, cpu_state.MM[cpu_reg].l[0]); if (cpu_state.abrt) return 1; + writememq(easeg, cpu_state.eaaddr, cpu_state.MM[cpu_reg].q); if (cpu_state.abrt) return 1; CLOCK_CYCLES(2); } return 0;