EasyManua.ls Logo

Omron SYSMAC CV Series - Page 544

Omron SYSMAC CV Series
636 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix AInstruction Set
534
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
BCD DIVIDE
DIV, jDIV
(073)
DIV Dd Dr R
Divides the 4-digit BCD dividend (Dd) by the
4-digit BCD divisor (Dr) and outputs the result
to the specified result words. R receives the
quotient; R+1 receives the remainder. R and
R+1 must be in the same data area.
R+1 R
Dd ÷ Dr
Dd:
CIO
G
A
T/C
#
DM
DR
IR
Dr:
CIO
G
A
T/C
#
DM
DR
IR
R:
CIO
G
A
DM
254
DOUBLE BCD ADD
ADDL, jADDL
(074)
ADDL Au Ad R
Adds two 8-digit BCD values (2 words each)
and the content of CY and outputs the result to
the specified result words. All words for any
one operand must be in the same data area.
Au+1
+ Ad+1
+
CY R+1
CY
Au
Ad
R
Au:
CIO
G
A
T/C
#
DM
Ad:
CIO
G
A
T/C
#
DM
R:
CIO
G
A
DM
DR
IR
255
DOUBLE BCD SUBTRACT
SUBL, jSUBL
(075)
SUBL Mi Su R
Subtracts both the 8-digit BCD subtrahend
and the content of CY from an 8-digit BCD
minuend, and outputs the result to the
specified result words. All words for any one
operand must be in the same data area.
Mi+1 Mi
– Su+1
Su
CY R+1 R
CY
Mi:
CIO
G
A
T/C
#
DM
Su:
CIO
G
A
T/C
#
DM
R:
CIO
G
A
DM
DR
IR
256
DOUBLE BCD MULTIPLY
MULL, jMULL
(076)
MULL Md Mr R
Multiplies the 8-digit BCD multiplicand and
8-digit BCD multiplier, and outputs the result to
the specified result words. All words for any
one operand must be in the same data area.
Md+1 Md
Mr+1 Md
R+3 R+2 R+1 R
X
Md:
CIO
G
A
T/C
#
DM
Mr:
CIO
G
A
T/C
#
DM
R:
CIO
G
A
DM
257
DOUBLE BCD DIVIDE
DIVL, jDIVL
(077)
DIVL Dd Dr R
Divides the 8-digit BCD dividend by an 8-digit
BCD divisor, and outputs the result to the
specified result words. All words for any one
operand must be in the same data area.
Dd+1 Dd
Dr+1 Dr
R+1 R
R+3 R+2
Quotient
Remainder
÷
Dd:
CIO
G
A
T/C
#
DM
Dr:
CIO
G
A
T/C
#
DM
R:
CIO
G
A
DM
258
SET CARRY
STC, jSTC
(078)
STC
Sets the Carry Flag (i.e., turns ON A50004). None 250

Table of Contents

Related product manuals