C/+Cl - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions

+C/+CL

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents