Appendices
A-26
CJ2 CPU Unit Software User’s Manual
DOUBLE BCD
ADD WITH
CARRY
+BCL
@+BCL
407 Output Required
SIGNED
BINARY SUB-
TRACT WITH-
OUT CARRY
−
@−
410 Output Required
DOUBLE
SIGNED
BINARY SUB-
TRACT WITH-
OUT CARRY
− L
@− L
411 Output Required
SIGNED
BINARY SUB-
TRACT WITH
CARRY
− C
@− C
412 Output Required
DOUBLE
SIGNED
BINARY WITH
CARRY
− CL
@−- CL
413 Output Required
BCD SUB-
TRACT WITH-
OUT CARRY
− B
@− B
414 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
+BCL(407)
Au
Ad
R
Au: 1st augend
word
Ad: 1st addend
word
R: 1st result word
Ad+1
R+1
CY
+
Au
Ad
RCY
(BCD)
(BCD)
(BCD)
Au+1
Adds 8-digit (double-word) BCD data and/or constants
with the Carry Flag (CY).
CY will turn
ON when
there is a
carry.
− (410)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
Mi
Su
RCY
−
Subtracts 4-digit (single-word) hexadecimal data
and/or constants.
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn
ON when
there is a
borrow.
−L(411)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
Mi+1
Su+1
R+1CY
Mi
Su
R
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn
ON when
there is a
borrow.
−
Subtracts 8-digit (double-word) hexadecimal data
and/or constants.
−C(412)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
CY
Mi
Su
RCY
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn
ON when
there is a
borrow.
Subtracts 4-digit (single-word) hexadecimal data
and/or constants with the Carry Flag (CY).
−
−CL(413)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
Mi+1
Su+1
R+1
CY
Mi
Su
RCY
Subtracts 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
borrow.
−
−B(414)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
Mi
Su
RCY
(BCD)
(BCD)
(BCD)
Subtracts 4-digit (single-word) BCD data and/or constants.
CY will turn ON
when there is a
carry.
−