Fix the LxS fix on the new recompiler.

This commit is contained in:
OBattler
2025-04-10 01:08:21 +02:00
parent 8ac9d5d9cf
commit e2f8a58d95
3 changed files with 6 additions and 7 deletions

View File

@@ -998,10 +998,9 @@ codegen_MEM_LOAD_REG(codeblock_t *block, uop_t *uop)
host_x86_LEA_REG_REG(block, REG_ESI, seg_reg, addr_reg);
if (uop->imm_data) {
host_x86_ADD32_REG_IMM(block, REG_ESI, uop->imm_data);
if (uop->is_a16) {
host_x86_ADD16_REG_IMM(block, REG_SI, uop->imm_data);
} else {
host_x86_ADD32_REG_IMM(block, REG_ESI, uop->imm_data);
host_x86_AND32_REG_IMM(block, REG_ESI, 0x0000ffff);
}
}
if (REG_IS_B(dest_size)) {