Fixed 16-bit and 32-bit FISTP(P) instruction, fixes OpenStep 4.2 font on interpreter and old recompiler, closes #1204.

This commit is contained in:
OBattler
2021-09-17 02:17:25 +02:00
parent 206c34ed27
commit d9123cad4a
3 changed files with 73 additions and 27 deletions

View File

@@ -4363,7 +4363,7 @@ static inline int FP_LOAD_REG_INT_W(int reg)
addbyte(0xc5);
addbyte((uint8_t)cpu_state_offset(ST));
CALL_FUNC((uintptr_t)x87_fround);
CALL_FUNC((uintptr_t)x87_fround16_64);
addbyte(0x93); /*XCHG EBX, EAX*/
@@ -4393,7 +4393,7 @@ static inline int FP_LOAD_REG_INT(int reg)
addbyte(0xc5);
addbyte((uint8_t)cpu_state_offset(ST));
CALL_FUNC((uintptr_t)x87_fround);
CALL_FUNC((uintptr_t)x87_fround32_64);
addbyte(0x93); /*XCHG EBX, EAX*/