EasyManua.ls Logo

Omron CP1E CPU UNIT SOFTWARE - A-1-9 Symbol Math Instructions

Omron CP1E CPU UNIT SOFTWARE
450 pages
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...
Appendices
A-18
CP1E CPU Unit Software User’s Manual(W480)
DOUBLE
INCREMENT
BCD
++BL @ Increments the 8-digit BCD content of the specified words by 1.
DECREMENT
BCD
B @ Decrements the 4-digit BCD content of the specified word by 1.
DOUBLE DEC-
REMENT BCD
BL @ Decrements the 8-digit BCD content of the specified words by 1.
A-1-9 Symbol Math Instructions
Instruction Mnemonic Variations Symbol/Operand Function
SIGNED
BINARY ADD
WITHOUT
CARRY
+ @ Adds 4-digit (single-word) hexadecimal data and/or constants.
DOUBLE
SIGNED
BINARY ADD
WITHOUT
CARRY
+L @ Adds 8-digit (double-word) hexadecimal data and/or constants.
SIGNED
BINARY ADD
WITH CARRY
+C @ Adds 4-digit (single-word) hexadecimal data and/or constants with
the Carry Flag (CY).
DOUBLE
SIGNED
BINARY ADD
WITH CARRY
+CL @ Adds 8-digit (double-word) hexadecimal data and/or constants
with the Carry Flag (CY).
Instruction Mnemonic Variations Symbol/Operand Function
++BL(595)
Wd
Wd: 1st word
Wd+1 Wd Wd+1 Wd
− − B(596)
Wd
Wd: Word
1
Wd Wd
− − BL(597)
Wd
Wd: 1st word
Wd+1 Wd Wd+1 Wd
+(400)
Au
Ad
R
Au: Augend word
Ad: Addend word
R: Result word
Au
Ad
RCY
+
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn
ON when
there is a
carry.
+L(401)
Au
Ad
R
Au: 1st augend word
Ad: 1st addend word
R: 1st result word
Ad+1
R+1CY
+
Au
Ad
R
Au+1
CY will
turn ON
when there
is a carry.
(Signed binary)
(Signed binary)
(Signed binary)
+C(402)
Au
Ad
R
Au: Augend word
Ad: Addend word
R: Result word
CY
+
Au
Ad
RCY
CY will turn
ON when
there is a
carry.
(Signed binary)
(Signed binary)
(Signed binary)
+CL(403)
Au
Ad
R
Au: 1st augend word
Ad: 1st addend word
R: 1st result word
Ad+1
R+1
CY
+
Au
Ad
RCY
Au+1
(Signed binary)
(Signed binary)
(Signed binary)
CY will
turn ON
when there
is a carry.

Table of Contents

Related product manuals