Instruction
Mnemonic
BCD ADD
+B
WITHOUT
CARRY
DOUBLE BCD
+BL
ADD WITH-
OUT CARRY
BCD ADD
+BC
WITH CARRY
DOUBLE BCD
+BCL
ADD WITH
CARRY
−
SIGNED
BINARY SUB-
TRACT WITH-
OUT CARRY
− L
DOUBLE
SIGNED
BINARY SUB-
TRACT WITH-
OUT CARRY
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
@
+B(404)
Au
Ad
R
Au: Augend word
Ad: Addend word
R: Result word
@
+BL(405)
Au
Ad
R
Au: 1st augend word
Ad: 1st addend word
R: 1st result word
@
+BC(406)
Au
Ad
R
Au: Augend word
Ad: Addend word
R: Result word
@
+BCL(407)
Au
Ad
R
Au: 1st augend word
Ad: 1st addend word
R: 1st result word
@
(410)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend word
R: Result word
@
L(411)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend word
R: Result word
Function
Adds 4-digit (single-word) BCD data and/or constants.
(BCD)
Au
(BCD)
Ad
+
CY will turn
(BCD)
ON when
CY
R
there is a
carry.
Adds 8-digit (double-word) BCD data and/or constants.
Au+1
Ad+1
+
CY will turn
CY
R+1
ON when
there is a
carry.
Adds 4-digit (single-word) BCD data and/or constants with the
Carry Flag (CY).
Au
Ad
CY
+
CY will turn
ON when
CY
R
there is a
carry.
Adds 8-digit (double-word) BCD data and/or constants with the
Carry Flag (CY).
Au+1
Ad+1
+
CY will turn
CY
R+1
ON when
there is a
carry.
Subtracts 4-digit (single-word) hexadecimal data and/or constants.
Mi
Su
CY will turn
CY
R
ON when
there is a
borrow.
Subtracts 8-digit (double-word) hexadecimal data and/or con-
stants.
Mi+1
Su+1
CY will turn
ON when
CY
R+1
there is a
borrow.
Appendices
(BCD)
Au
(BCD)
Ad
(BCD)
R
(BCD)
(BCD)
(BCD)
(BCD)
Au
(BCD)
Ad
CY
R
(BCD)
(Signed binary)
(Signed binary)
(Signed binary)
Mi
(Signed binary)
(Signed binary)
Su
(Signed binary)
R
A-19
Need help?
Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?
Questions and answers