A-27
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-9 Symbol Math Instructions
DOUBLE BCD
SUBTRACT
WITHOUT
CARRY
− BL
@− BL
415 Output Required
BCD SUB-
TRACT WITH
CARRY
− BC
@− BC
416 Output Required
DOUBLE BCD
SUBTRACT
WITH CARRY
− BCL
@− BCL
417 Output Required
SIGNED
BINARY MULTI-
PLY
*
@*
420 Output Required
DOUBLE
SIGNED
BINARY MULTI-
PLY
*L
@*L
421 Output Required
UNSIGNED
BINARY
MULTIPLY
*U
@*U
422 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
−BL(415)
Mi
Su
R
Mi: 1st minuend
word
Su: 1st
subtrahend word
R: 1st result word
Mi +1
Su+1
R+1CY
Mi
Su
R
(BCD)
(BCD)
(BCD)
Subtracts 8-digit (double-word) BCD data and/or constants.
CY will turn
ON when
there is a
borrow.
−
−BC(416)
Mi
Su
R
Mi: Minuend word
Su: Subtrahend
word
R: Result word
CY
Mi
Su
RCY
(BCD)
(BCD)
(BCD)
CY will turn
ON when
there is a
borrow.
Subtracts 4-digit (single-word) BCD data and/or
constants with the Carry Flag (CY).
−
−BCL(417)
Mi
Su
R
Mi: 1st minuend
word
Su: 1st
subtrahend word
R: 1st result word
Mi +1
Su+1
R+1
CY
Mi
Su
RCY
(BCD)
(BCD)
(BCD)
CY will turn
ON when
there is a
borrow.
Subtracts 8-digit (double-word) BCD data and/or constants
with the Carry Flag (CY).
−
*(420)
Md
Mr
R
Md: Multiplicand
word
Mr: Multiplier
word
R: Result word
Md
Mr
R +1 R
(Signed binary)
(Signed binary)
(Signed binary)
Multiplies 4-digit signed hexadecimal data and/or constants.
×
*L(421)
Md
Mr
R
Md: 1st
multiplicand word
Mr: 1st multiplier
word
R: 1st result word
Md + 1
Mr + 1
R + 1 RR + 3 R + 2
Md
Mr
(Signed binary)
(Signed binary)
(Signed binary)
Multiplies 8-digit signed hexadecimal data and/or constants.
×
*U(422)
Md
Mr
R
Md: Multiplicand
word
Mr: Multiplier
word
R: Result word
Md
Mr
R +1 R
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)
×
Multiplies 4-digit unsigned hexadecimal data
and/or constants.