Mitsubishi Electronics C64 Home Safety Product User Manual


 
8. Function Commands
D/, D/P
- 176 -
{ D/, D/P ... BIN 32-bit division
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S1
{ { { { { { { { {
S2
{ { { { { { { { {
D
{ { { { { { {
5/6
D/P
S2
S1 D
D/
D/P
D/ S2S1 D
S2
S1
Division data or head No. of
device where division data is stored.
D
Setting data
Division command
Head No. of device to store division
results.
Division data or head No. of device
where division data is stored.
Function
(1) The BIN data designated with S1 and the BIN data designated with S2 are divided, and the
division results are stored in the device designated with D.
567890 (BIN) 123456 (BIN)
4 (BIN)
B31……B16B15……B0
÷
S1
S1+1
B31……B16B15……B0
S2
S2+1
B31……B16B15……B0
D
D+1
74066 (BIN)
B31……B16B15……B0
D+2
D+3
Quotient
Redundant
(2) -2147483648 to 2147483647 (BIN 32-bit) can be designated in S1 and S2.
(3) The positive/negative of the data in S1, S2 and D is determined with the highest-order bit (B31).
B31
Judgment of
positive/negative
0 Positive
1 Negative
(4) For the word device, the operation results will be stored as quotient and redundant using the
64-bit.
Quotient ... Stored in low-order 32-bit.
Redundant ... Stored in high-order 32-bit.
(5) The S1 and S2 data will not change even after operation is executed.