mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
UserspaceEmulator: SoftCPU: Add support for FPTAN instruction
This commit is contained in:
parent
b1e3176f9f
commit
2c24c0e451
1 changed files with 8 additions and 1 deletions
|
@ -1641,7 +1641,14 @@ void SoftCPU::FYL2XP1(const X86::Instruction&)
|
|||
fpu_pop();
|
||||
}
|
||||
|
||||
void SoftCPU::FPTAN(const X86::Instruction&) { TODO_INSN(); }
|
||||
void SoftCPU::FPTAN(const X86::Instruction&)
|
||||
{
|
||||
// FIXME: set C1 upon stack overflow or if result was rounded
|
||||
// FIXME: Set C2 to 1 if ST(0) is outside range of -2^63 to +2^63; else set to 0
|
||||
fpu_set(0, tanf(fpu_get(0)));
|
||||
fpu_push(1.0f);
|
||||
}
|
||||
|
||||
void SoftCPU::FPATAN(const X86::Instruction&) { TODO_INSN(); }
|
||||
void SoftCPU::FXTRACT(const X86::Instruction&) { TODO_INSN(); }
|
||||
void SoftCPU::FPREM1(const X86::Instruction&) { TODO_INSN(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue