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>ficom integer compare exception flags: i d</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FICOM             Integer Compare             Exception Flags: I D

FICOM source

       Logic:      cmp source, ST
                   sets condition codes in the status word:

                   C3 C2 C1 C0    Means
                   -- -- -- --    -----------
                   0  0  ?  0     ST > source
                   0  0  ?  1     ST < source
                   1  0  ?  0     ST = source
                   1  1  ?  1     ST not comparable to source

     FICOM compares two integers and leaves the result encoded in the status
     word as shown above. The source operand can be either a memory short
     integer or a memory word integer, and the implied destination is ST.

  --------------------------------------------------------------------------
   Operands            Clocks         Bytes           Example
   FICOM MEMORY_INT    72-91+EA         5             FICOM INTEGER_NUMBER
  --------------------------------------------------------------------------

See Also: FCOM FCOMP FCOMPP FICOMP

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