From 92ab0ee8ef020a299e885835c76fbea204ee99fa Mon Sep 17 00:00:00 2001 From: SarahW Date: Tue, 27 Nov 2018 10:15:18 +0000 Subject: [PATCH] Fix flags on 8-bit memory INC/DEC. --- src/codegen_ops_arith.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/codegen_ops_arith.c b/src/codegen_ops_arith.c index f4e4152..4c7c43d 100644 --- a/src/codegen_ops_arith.c +++ b/src/codegen_ops_arith.c @@ -1416,6 +1416,8 @@ uint32_t ropDEC_r32(codeblock_t *block, ir_data_t *ir, uint8_t opcode, uint32_t uint32_t ropINCDEC(codeblock_t *block, ir_data_t *ir, uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_t op_pc) { + rebuild_c(ir); + if ((fetchdat & 0xc0) == 0xc0) { uop_MOVZX(ir, IREG_flags_op1, IREG_8(fetchdat & 7));