Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 3e - borland languages - floating point emulation shortcut call http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 3E - Borland languages - Floating Point emulation "shortcut" call
        The two bytes following the INT 3E instruction are the subcode and
        a NOP (90h)

Subcode         Function
 DCh    load 8086 stack with 8087 registers
 DEh    load 8087 registers from 8086 stack
 E0h    round TOS and R1 to single precision, compare, pop twice
 E2h    round TOS and R1 to double precision, compare, pop twice
        Note: apparently buggy in TPas5.5, actually rounding to single prec.
 E4h    compare TOS/R1 with two POP's
 E6h    compare TOS/R1 with POP
 E8h    FTST (check TOS value)
 EAh    FXAM (check TOS value)
 ECh    sine
 EEh    cosine
 F0h    tangent
 F2h    arctangent
 F4h    Ln (FLDLN2 to TOS)
 F6h    Log2 (FLDLG2 to TOS)
 F8h    Log10 (FLDLG10 to TOS
 FAh    Exp (FLDL2E to TOS)
 FCh    TOS = 2**TOS
 FEh    TOS = 10**TOS

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson