Symbol Math Instructions - Omron CS1G/H-CPUxx-EV1 Programming Manual

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Symbol Math Instructions

3-9
Symbol Math Instructions
Instruction
Symbol/Operand
Mnemonic
Code
SIGNED BINARY
+(400)
ADD WITHOUT
CARRY
+
@+
400
Au: Augend word
Ad: Addend word
R: Result word
DOUBLE
+L(401)
SIGNED BINARY
ADD WITHOUT
CARRY
+L
@+L
401
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
SIGNED BINARY
+C(402)
ADD WITH
CARRY
+C
@+C
402
Au: Augend word
Ad: Addend word
R: Result word
DOUBLE
+CL(403)
SIGNED BINARY
ADD WITH
CARRY
+CL
@+CL
403
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
BCD ADD WITH-
+B(404)
OUT CARRY
+B
@+B
404
Au: Augend word
Ad: Addend word
R: Result word
Adds 4-digit (single-word) hexadecimal data and/or constants.
Au
Ad
R
CY will turn ON
when there is a
carry.
Adds 8-digit (double-word) hexadecimal data and/or constants.
Au
Ad
+
R
CY will turn
ON when
CY
there is a
carry.
Adds 4-digit (single-word) hexadecimal data and/or constants with the
Carry Flag (CY).
Au
Ad
R
CY will turn ON
when there is a
carry.
Adds 8-digit (double-word) hexadecimal data and/or constants with the
Carry Flag (CY).
Au
Ad
R
CY will turn ON
when there is a
CY
carry.
Adds 4-digit (single-word) BCD data and/or constants.
Au
Ad
R
CY will turn ON
when there is a
carry.
Function
(Signed binary)
Au
(Signed binary)
Ad
+
(Signed binary)
CY
R
Au+1
Au
Ad+1
Ad
R+1
R
(Signed binary)
Au
(Signed binary)
Ad
CY
+
(Signed binary)
CY
R
Au+1
Au
Ad+1
Ad
CY
+
R+1
R
(BCD)
Au
(BCD)
Ad
+
(BCD)
CY
R
Section 3-9
Location
Execution condition
Output
Required
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
97

Advertisement

Table of Contents
loading

Table of Contents