qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
FPREM
   Summary  Timings
────────────────────────────────────────────────────────────────────────────
 
Partial Remainder
 
Syntax:  FPREM
 
Calculates the remainder of ST divided by ST(1), returning the result in
ST. The remainder retains the same sign as the original dividend. The
calculation uses the following formula:
 
         remainder = ST - ST(1) * quotient
 
The quotient is the exact value obtained by chopping ST / ST(1) toward
0. The instruction is intended to be used in a loop that repeats until
the reduction is complete, as indicated by the condition codes of the
status word.
                                    -♦-