Panasonic FP7 Series Command Reference Manual page 316

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

6.5 DIV (Division)
Outline of operation
● This instruction divides the value [S1] with [S2] according to the operation unit [i].
● The calculation result is stored in the address starting with [D].
[S1] / [S2] → Quotient ([D])
● The remainder is not output. If remainder is necessary, use the DIVMOD instruction.
Processing
Example 1) Operation unit: 16 bits (US, SS)
Example 2) Operation unit: 32 bits (UL, SL, SF)
Example 3) Operation unit: 64 bits (DF)
Flag operations
Name
SR7
SR8
(ER)
6-12
Description
To be set in the case of out-of-range in indirect access (index modification).
To be set when a non-real number is specified for [S1] or [S2], and the operation unit is a
real number (SF).
To be set when '0' is specified for [S2].
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents