2. Summary of Instructions
Instruction
Symbol/Operand
Mnemonic
Code
DOUBLE BCD
+BL(405)
ADD WITHOUT
CARRY
+BL
@+BL
405
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result
word
BCD ADD WITH
+BC(406)
CARRY
+BC
@+BC
406
Au: Augend word
Ad: Addend word
R: Result word
DOUBLE BCD
ADD WITH
+BCL(407)
CARRY
+BCL
@+BCL
407
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
SIGNED BINARY
SUBTRACT
WITHOUT
CARRY
–
@–
410
Mi: Minuend word
Su: Subtrahend
word
R: Result word
DOUBLE
SIGNED BINARY
SUBTRACT
WITHOUT
CARRY
–L
@–L
411
Mi: Minuend word
Su: Subtrahend
word
R: Result word
SIGNED BINARY
SUBTRACT
WITH CARRY
–C
@–C
412
Mi: Minuend word
Su: Subtrahend
word
R: Result word
58
Adds 8-digit (double-word) BCD data and/or constants.
Au
Ad
R
CY will turn ON
when there is a
carry.
Adds 4-digit (single-word) BCD 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) BCD data and/or constants with the Carry
Flag (CY).
Au
Ad
R
CY will turn
CY
ON when there
is a carry.
Subtracts 4-digit (single-word) hexadecimal data and/or constants.
(410)
Mi
Su
R
CY will turn ON
when there is a
borrow.
Subtracts 8-digit (double-word) hexadecimal data and/or constants.
L(411)
Mi
Su
−
R
CY will turn
ON when
CY
there is a
borrow.
Subtracts 4-digit (single-word) hexadecimal data and/or constants
C(412)
with the Carry Flag (CY).
Mi
Su
R
CY will turn ON
when there is a
borrow.
Function
Au+1
Au
Ad+1
Ad
+
CY
R+1
R
(BCD)
Au
(BCD)
Ad
CY
+
(BCD)
CY
R
Au+1
Au
Ad+1
Ad
CY
+
R+1
R
(Signed binary)
Mi
−
(Signed binary)
Su
CY
R
(Signed binary)
Mi+1
Mi
Su+1
Su
R+1
R
(Signed binary)
Mi
(Signed binary)
Su
−
CY
(Signed binary)
CY
R
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Location
Execution
condition
Output
Required
(BCD)
(BCD)
(BCD)
Output
Required
Output
Required
(BCD)
(BCD)
(BCD)
Output
Required
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
Page
346
348
348
350
350
354
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers