UserspaceEmulator: Implement FABS

This commit is contained in:
Andreas Kling
2020-11-14 15:27:05 +01:00
parent 60ff27c633
commit a031c6c754

View File

@@ -1573,7 +1573,11 @@ void SoftCPU::FCHS(const X86::Instruction&)
fpu_set(0, -fpu_get(0));
}
void SoftCPU::FABS(const X86::Instruction&) { TODO_INSN(); }
void SoftCPU::FABS(const X86::Instruction&)
{
fpu_set(0, __builtin_fabs(fpu_get(0)));
}
void SoftCPU::FTST(const X86::Instruction&) { TODO_INSN(); }
void SoftCPU::FXAM(const X86::Instruction&) { TODO_INSN(); }