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>frndint round to integer exception flags: i p</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FRNDINT           Round to Integer            Exception Flags: I P

FRNDINT

       Logic:      ST . nearest integer (ST)

     FRNDINT rounds ST to the nearest integer. The way the rounding is
     accomplished depends on the RC field in the control word:

                        RC = 00         Round to nearest integer
                                        If exactly between two, choose
                                        the even integer.
                        RC = 01         Round downwards (towards -.)
                        RC = 10         Round upwards (towards +.)
                        RC = 11         Truncate (round towards 0)

  --------------------------------------------------------------------------
   Operands            Clocks         Bytes           Example
   FRNDINT             16-50            3             FRNDINT
  --------------------------------------------------------------------------

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