Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>fprem1 partial ieee remainder (80387) exception flags: i d u</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FPREM1       Partial IEEE Remainder (80387)         Exception Flags: I D U

FPREM1

       Logic:      ST . remainder (ST / ST(1))

     FPREM1 calculates the remainder of ST divided by ST(1). It generates
     the IEEE-754 standard partial remainder answer. This may differ from
     PREM when two integers are equally close to the answer; FPREM rounds
     towards 0 and FPREM1 always chooses the even value.

     FPREM1 also indicates the least-significant three bits of the
     quotient generated by FPREM in C3 C1 and C0 as follows:

                C3 C2 C1 C0 Meaning
                -- -- -- -- -------
                ?  1  ?  ?  Incomplete reduction
                0  0  0  0  quotient MOD 8 = 0
                0  0  0  1  quotient MOD 8 = 4
                0  0  1  0  quotient MOD 8 = 1
                0  0  1  1  quotient MOD 8 = 5
                1  0  0  0  quotient MOD 8 = 2
                1  0  0  1  quotient MOD 8 = 6
                1  0  1  0  quotient MOD 8 = 3
                1  0  1  1  quotient MOD 8 = 7

  --------------------------------------------------------------------------
   Operands            Clocks         Bytes           Example
   FPREM1              95-185 (387)     3             FPREM1
  --------------------------------------------------------------------------

See Also: FPREM

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