
Chapter 5. Application instructions
5-53
2) Program example
-
Program which stores the division result of D0001 and D0002 at D0010, D0011 while P020 is on.
-
Program which stores the division result of D0001, D0002 and D0003,D0004 at D0010 ~ D0013
when P020 is switched on.
DIV D0001 D0002 D0010
P020
h78AB
h0678
h017D
D0001
h002D
=
÷
D0002
D0011
D0010
DDIVP D0001 D0003 D0010
hF904
h5678
h0021
D0001
h8765
=
÷
D0002
D0003
D0004
h0009
hED77
D0013
D0012
h0000
h076D
D0011
D0010
P020
Remainder
Quotient
Remainder
Quotient