Omron CS1G/H-CPUxxH Instructions Manual page 445

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
424
Area
Index Registers
Indirect addressing
using Index Registers
/UL(433) divides the unsigned binary values in Dd and Dd+1 by those in Dr
and Dr+1 and outputs the quotient to R, R+1 and the remainder 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 content of Dr, Dr+1 is 0, the Error Flag will turn ON.
If as a result of the division, the content of R, R+1, is 0000 hex, the Equals
Flag will turn ON.
If as a result of the division, the content of the leftmost bit of R+1 is 1, the Neg-
ative Flag will turn ON.
When CIO 000000 is ON in the following example, D00100 and D00101 will
be divided by D00111 and D00110 as 8-digit unsigned hexadecimal values
and the quotient will be output to D00121 and D00120 and the remainder to
D00123 and D00122.
Dd
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Dd
(Unsigned binary)
(Unsigned binary)
Dr
R
(Unsigned binary)
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

Advertisement

Table of Contents
loading

Table of Contents