Appendices
A-20
CP2E CPU Unit Software User’s Manual(W614)
BCD ADD
WITHOUT
CARRY
+B @ Adds 4-digit (single-word) BCD data and/or constants.
DOUBLE BCD
ADD WITH-
OUT CARRY
+BL @ Adds 8-digit (double-word) BCD data and/or constants.
BCD ADD
WITH CARRY
+BC @ Adds 4-digit (single-word) BCD data and/or constants with the
Carry Flag (CY).
DOUBLE BCD
ADD WITH
CARRY
+BCL @ Adds 8-digit (double-word) BCD data and/or constants with the
Carry Flag (CY).
SIGNED
BINARY SUB-
TRACT WITH-
OUT CARRY
− @ Subtracts 4-digit (single-word) hexadecimal data and/or constants.
DOUBLE
SIGNED
BINARY SUB-
TRACT WITH-
OUT CARRY
− L @ Subtracts 8-digit (double-word) hexadecimal data and/or con-
stants.
Instruction Mnemonic Variations Symbol/Operand Function
+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.
+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.
+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.
+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
CY will turn
ON when
there is a
carry.
− (410)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend word
R: Result word
Mi
Su
RCY
−
(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.
−