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

Cp1e cpu unit software
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents