TS68882
Note that data movement instructions perform arithmetic operations, since the result is
always rounded to the precision selected in the FPCR mode control byte. The result is
rounded using the selected rounding mode, and is checked for overflow and underflow.
The syntax for the move is:
FMOVE.(fmt)
FMOVE.(fmt)
FMOVE.X
(ea).FPn
FPm.(ea)
FPm.FPn
Move to TS68882
Move from TS68882
Move within TS68882
where:
(ea) is a TS68000 Family effective address operand and (fmt) is the data format size.
FPm and FPn are floating-point data registers.
Move Multiples
The floating-point move multiple instructions on the TS68882 are much like the integer
counterparts on the TS68000 Family processors. Any set of the floating-point registers
FP0 through FP7 can be moved to or from memory with one instruction. These registers
are always moved as 96-bit extended data with no conversion (hence no possibility of
conversion errors). Some move multiple examples are as follows:
FMOVEM
(ea), FP0-FP3/FP7
FMOVEM
FP2/FP4/FP6,(ea)
Move multiples are useful during context switches and interrupts to save or restore the
state of a program. These moves are also useful at the start and end of a procedure to
save and restore the calling routine’s register set. In order to reduce procedure call over-
head, the list of registers to be saved or restored can be contained in a data register.
This allows run-time optimization by allowing a called routine to save as few registers as
possible. Note that no rounding or overflow/underflow checking is performed by these
operations.
Monadic Operations
Monadic operations have one operand. This operand may be in a floating-point data
register, memory, or in an MPU data register. The result is always stored in a floating-
point data register. For example, the syntax for square root is:
FSQRT.(fmt)
FSQRT.X
(ea), FPN or,
FPm, FPn or,
FPn
FSQRT.X
The TS68882 monadic operations available are as follows:
FABS
Absolute Value
Arc Cosine
FACOS
FASIN
FATAN
FATANH
FCOS
Arc Sine
Arc Tangent
Hyperbolic Arc Tangent
Cosine
FCOSH
FETOX
Hyperbolic Cosine
e to the x Power
27
2119A–HIREL–04/02