From 798c24d7c45ca77ba71be820d2fae6c65d1fcc1f Mon Sep 17 00:00:00 2001 From: TomW Date: Mon, 26 Jan 2015 21:58:14 +0000 Subject: [PATCH] Fixed flag on recompiled 8-bit SUB reg,imm - Windows 95 setup works again --- src/codegen_ops_arith.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen_ops_arith.h b/src/codegen_ops_arith.h index 2e3b0e8..e99ccae 100644 --- a/src/codegen_ops_arith.h +++ b/src/codegen_ops_arith.h @@ -351,7 +351,7 @@ static uint32_t rop80(uint8_t opcode, uint32_t fetchdat, uint32_t op_32, uint32_ STORE_HOST_REG_ADDR((uint32_t)&flags_op1, host_reg); SUB_HOST_REG_IMM_B(host_reg, imm); STORE_IMM_ADDR_L((uint32_t)&flags_op2, imm); - STORE_IMM_ADDR_L((uint32_t)&flags_op, FLAGS_ADD8); + STORE_IMM_ADDR_L((uint32_t)&flags_op, FLAGS_SUB8); FLAG_C_COPY(); break; case 0x30: /*XOR*/