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>fscale set scale exception flags: i o u</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FSCALE            Set Scale                   Exception Flags: I O U

FSCALE
                              INT(ST(1))
       Logic:      ST . ST * 2

     FSCALE treats the number in ST(1) as an integer and adds it to the
     exponent of the number in ST. This instruction is the same as the
     following calculation:
                                  INT(ST(1))
                       ST . ST * 2

                                   15           15
     The number in ST(1) must be -2  . ST(1) < 2  . It is truncated before
     the operation is performed. If 0 < ST(1) < 1, the result is undefined
     (and no exception is generated).

  --------------------------------------------------------------------------
   Operands            Clocks         Bytes           Example
   FSCALE              32-38            3             FSCALE
  --------------------------------------------------------------------------

        Note:          You can use FSCALE for quick multiplication or
                       division by powers of 2.

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