Symbol Math Instructions
Description
Flags
Precautions
Examples
Area
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
/L(431) divides the signed binary values in Dd and Dd+1 by those in Dr and
Dr+1 and outputs the result to R, R+1, R+2, and R+3. The quotient is output
to R and R+1 and the remainder is output to R+2 and R+3.
Dd + 1
÷
Dr + 1
R + 3
R + 2
R + 1
Remainder
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
When the remainder of the result, R+3, R+2 is 0,the Error Flag will turn ON.
If as a result of the division, the content of R+1, R is 00000000 hex, the
Equals Flag will turn ON.
If as a result of the division, the content of the leftmost bit of R+1, R is 1, the
Negative Flag will turn ON.
When CIO 000000 is ON in the following example, D00101 and D00100 are
divided by D00111 and D00110 as 8-digit signed hexadecimal values and the
Dd
En_00000 to En_32766
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#00000000 to
#00000001 to
#FFFFFFFF
#FFFFFFFF
(binary)
(binary)
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
(Signed binary)
Dd
(Signed binary)
Dr
(Signed binary)
R
Quotient
Operation
ON when the result is 0.
OFF in all other cases.
ON when as a result of the division, R+1, R is 0.
OFF in all other cases.
ON when the leftmost bit of the R+1, R is 1.
OFF in all other cases.
Section 3-11
Dr
R
En_00000 to
En_32764
(n = 0 to C)
---
475
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?
Questions and answers