Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2 Instructions
2-160
CP1E CPU Unit Instructions Reference Manual(W483)
+C/+CL
Applicable Program Areas
Operands
Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
SIGNED BINARY ADD WITH
CARRY
+C @+C 402
Adds 4-digit (single-word) hexadecimal data
and/or constants with the Carry Flag (CY).
DOUBLE SIGNED BINARY
ADD WITH CARRY
+CL @+CL 403
Adds 8-digit (double-word) hexadecimal data
and/or constants with the Carry Flag (CY).
Symbol
+C +CL
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description
Data type Size
+C +CL +C +CL
Au
+C: Augend word
+CL: First augend word
INT DINT 1 2
Ad
+C: Addend word
+CL: First addend word
INT DINT 1 2
R
+C: Result word
+CL: First result word
INT DINT 1 2
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
Au, Ad
OK OK OK OK OK OK OK OK OK
OK
--- --- ---
R ---
Name Label
Operation
+C +CL
Error Flag P_ER OFF OFF
Equals Flag P_EQ ON when the addition result is 0.
OFF in all other cases.
ON when the result is 0.
OFF in all other cases.
Carry Flag P_CY ON when the addition results in a carry.
OFF in all other cases.
ON when the results in a carry.
OFF in all other cases.
Overflow Flag P_OF ON when the addition result of adding two positive
numbers and CY is in the range 8000 to FFFF
hex.
OFF in all other cases.
ON when the result of adding two positive num-
bers and CY is in the range 80000000 to
FFFFFFFF hex.
OFF in all other cases.
Underflow Flag P_UF ON when the addition result of adding two nega-
tive numbers and CY is in the range 0000 to 7FFF
hex.
OFF in all other cases.
ON when the result of adding two negative num-
bers and CY is in the range 00000000 to
7FFFFFFF hex.
OFF in all other cases.
Negative Flag P_N ON when the leftmost bit of the result is 1.
OFF in all other cases.
ON when the leftmost bit of the result is 1.
OFF in all other cases.
+C(402)
R
Au
Ad
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