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>fbstp store packed decimal and pop exception flags: i</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FBSTP             Store Packed Decimal and Pop     Exception Flags: I

FBSTP memory location

       Logic:      [memory location] . ST
                   pop stack

     FBSTP converts the number in ST to BCD (packed decimal) format, stores it
     at memory location, and pops the stack. The value in ST is rounded to
     an integer before being stored in BCD format.

  --------------------------------------------------------------------------
   Operands            Clocks         Bytes           Example
   FBSTP destination   520-540+EA       5             FBSTP PACKED_NUMBER
  --------------------------------------------------------------------------

        Note:          FBSTP rounds any fractional part up by adding .5 to
                       the value in ST and then truncating the result.

See Also: FST FRNDINT

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