Omron CS1G/H-CPUxxH Instructions Manual page 439

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Symbol Math Instructions
Description
Flags
Precautions
Examples
418
Area
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
/(430) divides the signed binary (16 bit) values in Dd by those in Dr and out-
puts the result to R, R+1. The quotient is placed in R and the remainder in
R+1.
Dd
÷
Dr
R +1
R
Remainder
Quotient
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
When the content of Dr is 0, an error will be generated and the Error Flag will
turn ON.
If as a result of the division, the content of R is 0000 hex, the Equals Flag will
turn ON.
If as a result of the division, the content of the leftmost bit of R is 1, the Nega-
tive Flag will turn ON.
When CIO 000000 is ON in the following example, D00100 will be divided by
D00110 as 4-digit signed binary values and the quotient will be output to
D00120 and the remainder to D00121.
Dd
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to #FFFF
#0001 to #FFFF
(binary)
(binary)
DR0 to DR15
---
,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)
(Signed binary)
(Signed binary)
Operation
ON when the result is 0.
OFF in all other cases.
ON when as a result of the division, R is 0.
OFF in all other cases.
ON when the leftmost bit of the R is 1.
OFF in all other cases.
Section 3-11
Dr
R
---
---

Advertisement

Table of Contents
loading

Table of Contents