From e00e489d5a2e0a15797716da4f4e0d80f990f8ef Mon Sep 17 00:00:00 2001 From: TomW Date: Wed, 8 Oct 2014 20:43:36 +0100 Subject: [PATCH] Fixed MMX PANDN instruction. --- src/x86_ops_mmx_logic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x86_ops_mmx_logic.h b/src/x86_ops_mmx_logic.h index eb6544d..e40df1c 100644 --- a/src/x86_ops_mmx_logic.h +++ b/src/x86_ops_mmx_logic.h @@ -29,7 +29,7 @@ int opPANDN_a16(uint32_t fetchdat) fetch_ea_16(fetchdat); MMX_GETSRC(); - MM[reg].q &= ~src.q; + MM[reg].q = ~MM[reg].q & src.q; return 0; } int opPANDN_a32(uint32_t fetchdat) @@ -40,7 +40,7 @@ int opPANDN_a32(uint32_t fetchdat) fetch_ea_32(fetchdat); MMX_GETSRC(); - MM[reg].q &= ~src.q; + MM[reg].q = ~MM[reg].q & src.q; return 0; }