From a1e57db66977cdf5989ca375d8aec6cb6768ab5f Mon Sep 17 00:00:00 2001 From: SarahW Date: Wed, 7 Dec 2016 21:12:29 +0000 Subject: [PATCH] Fixed opcode enable in code generation for opcode 0xff --- src/codegen_ops_misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen_ops_misc.h b/src/codegen_ops_misc.h index cba171a..434b574 100644 --- a/src/codegen_ops_misc.h +++ b/src/codegen_ops_misc.h @@ -71,7 +71,7 @@ static uint32_t ropFF_16(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint x86seg *target_seg; int host_reg; - if ((fetchdat & 0x30) != 0x00 && (fetchdat & 0x38) != 0x10 && (fetchdat & 0x38) != 0x20)// && (fetchdat & 0x38) != 0x30) + if ((fetchdat & 0x30) != 0x00 && (fetchdat & 0x08)) return 0; if ((fetchdat & 0x30) == 0x00) @@ -163,7 +163,7 @@ static uint32_t ropFF_32(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint x86seg *target_seg; int host_reg; - if ((fetchdat & 0x30) != 0x00 && (fetchdat & 0x38) != 0x10 && (fetchdat & 0x38) != 0x20)// && (fetchdat & 0x38) != 0x30) + if ((fetchdat & 0x30) != 0x00 && (fetchdat & 0x08)) return 0; if ((fetchdat & 0x30) == 0x00)