From 26b8bdddb68c11857ce7d4c5fd9edef3d61fddbe Mon Sep 17 00:00:00 2001 From: SarahW Date: Tue, 30 Aug 2016 20:32:11 +0100 Subject: [PATCH] Fixed branch offset in x86 recompiler JNLE instruction - MS-DOS 6.22 installer works again --- src/codegen_ops_x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen_ops_x86.h b/src/codegen_ops_x86.h index d89990a..34992cd 100644 --- a/src/codegen_ops_x86.h +++ b/src/codegen_ops_x86.h @@ -1768,7 +1768,7 @@ static int BRANCH_COND_LE(int pc_offset, uint32_t op_pc, uint32_t offset, int no addbyte(0x75); /*JNZ +*/ } if (not) - addbyte(5+2+3+5+2+3+2+2+7+5+(timing_bt ? 7 : 0)); + addbyte(5+2+3+5+2+3+2+2+7+5+(timing_bt ? 4 : 0)); else addbyte(5+2+3+5+2+3+2+2);