A-25
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-9 Symbol Math Instructions
DOUBLE
SIGNED
BINARY ADD
WITHOUT
CARRY
+L
@+L
401 Output Required
SIGNED
BINARY ADD
WITH CARRY
+C
@+C
402 Output Required
DOUBLE
SIGNED
BINARY ADD
WITH CARRY
+CL
@+CL
403 Output Required
BCD ADD
WITHOUT
CARRY
+B
@+B
404 Output Required
DOUBLE BCD
ADD WITH-
OUT CARRY
+BL
@+BL
405 Output Required
BCD ADD
WITH CARRY
+BC
@+BC
406 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
+L(401)
Au
Ad
R
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
Ad+1
R+1CY
+
Au
Ad
R
Au+1
CY will
turn ON
when there
is a carry.
(Signed binary)
(Signed binary)
(Signed binary)
Adds 8-digit (double-word) hexadecimal data and/or
constants.
+C(402)
Au
Ad
R
Au: Augend word
Ad: Addend word
R: Result word
CY
+
Au
Ad
RCY
CY will turn
ON when
there is a
carry.
Adds 4-digit (single-word) hexadecimal data and/or
constants with the Carry Flag (CY).
(Signed binary)
(Signed binary)
(Signed binary)
+CL(403)
Au
Ad
R
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
Ad+1
R+1
CY
+
Au
Ad
RCY
Au+1
Adds 8-digit (double-word) hexadecimal data and/or
constants with the Carry Flag (CY).
(Signed binary)
(Signed binary)
(Signed binary)
CY will
turn ON
when there
is a carry.
+B(404)
Au
Ad
R
Au: Augend word
Ad: Addend word
R: Result word
Au
Ad
RCY
+
(BCD)
(BCD)
(BCD)
CY will turn
ON when
there is a
carry.
Adds 4-digit (single-word) BCD data and/or constants.
+BL(405)
Au
Ad
R
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
Ad+1
R+1CY
+
Au
Ad
R
Au+1
(BCD)
(BCD)
(BCD)
CY will turn
ON when
there is a
carry.
Adds 8-digit (double-word) BCD data and/or constants.
+BC(406)
Au
Ad
R
Au: Augend word
Ad: Addend word
R: Result word
CY
+
Au
Ad
RCY
(BCD)
(BCD)
(BCD)
CY will turn
ON when
there is a
carry.
Adds 4-digit (single-word) BCD data and/or
constants with the Carry Flag (CY).