Symbol Math Instructions - Omron CS1G/H-CPUxxH Instructions Manual

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

Advertisement

Instruction Functions
2-2-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
48
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
CY
is a 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 2-2
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
Page
373
375
377
379
381

Advertisement

Table of Contents
loading

Table of Contents