Motorola CPU32 Bedienungsanleitung Seite 372

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 646
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 371
Floating Point Instructions
5-70 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA
FMOD Modulo Remainder FMOD
(MC6888X, M68040FPSP)
Operation: Modulo Remainder of (FPn ÷ Source) FPn
Assembler FMOD. < fmt > < ea > ,FPn
Syntax: FMOD.X FPm,FPn
Attributes: Format = (Byte, Word, Long, Single, Double, Extended, Packed)
Description: Converts the source operand to extended precision (if necessary) and
calculates the modulo remainder of the number in the destination floating-point data
register, using the source operand as the modulus. Stores the result in the destination
floating-point data register and stores the sign and seven least significant bits of the
quotient in the floating-point status register quotient byte (the quotient is the result of
FPn ÷ Source). The modulo remainder function is defined as:
FPn – (Source x N)
where N = INT(FPn ÷ Source) in the round-to-zero mode.
The FMOD function is not defined for a source operand equal to zero or for a destination
operand equal to infinity. Note that this function is not the same as the FREM instruction,
which uses the round-to-nearest mode and thus returns the remainder that is required by
the IEEE
Specification for Binary Floating-Point Arithmetic
.
Operation Table:
NOTES:
1. If the source operand is a NAN, refer to 1.6.5 Not-A-Numbers for more information.
2. Sets the OPERR bit in the floating-point status register exception byte.
3. Returns the value of FPn before the operation. However, the result is
processed by the normal instruction termination procedure to round it as
required. Thus, an overflow and/or inexact result may occur if the rounding
precision has been changed to a smaller size since the FPn value was
loaded
DESTINATION
SOURCE
1
+ In Range + Zero# + Infinity
In Range +
Modulo Remainder NAN
2
FPn
3
Zero +
+ 0.0
– 0.0
NAN
2
+ 0.0
– 0.0
Infinity +
NAN
2
NAN
2
NAN
2
Seitenansicht 371
1 2 ... 367 368 369 370 371 372 373 374 375 376 377 ... 645 646

Kommentare zu diesen Handbüchern

Keine Kommentare