Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->FCMP

Floating-Point Compare

Compatibility: ColdFire chips with a floating-point unit (FPU)

FPx - Source

    
Assembler Syntax:FCMP.fmt <ea>,FPx
FCMP.D FPy,FPx
Format: Byte (B), Word (W), Long (L), Single-precision (S), Double-precision (D)

Converts the source operand to double-precision (if necessary) and subtracts that number from the destination floating point data register.

Floating-Point Status Register:

NSet if result is negative;else cleared
ZSet if result is zero;else cleared
ISet if result is infinity;else cleared
NANSet if result is a NAN;else cleared
BSUNAlways cleared
INANSet if either input is not-a-number; else cleared
IDESet if either input is a denormalised number; else cleared
OPERR Always cleared
OVFL Always cleared
UNFL Always cleared
DZ Always cleared
INEX Set if either operand is denormalised and the operands are not exactly the same and the IDE exception is disabled; else cleared

    
Allowable Addressing Modes
    
Dn,FPn
(An),FPn
(An)+,FPn
-(An),FPn
(d16,An),FPn
(d16,PC),FPn