Symbol Math Instructions
Instruction
Symbol/Operand
Mnemonic
Code
BCD MULTIPLY
*B(424)
*B
@*B
424
Md: Multiplicand
word
Mr: Multiplier
word
R: Result word
DOUBLE BCD
*BL(425)
MULTIPLY
*BL
@*BL
425
Md: 1st
multiplicand word
Mr: 1st multiplier
word
R: 1st result word
SIGNED BINARY
/(430)
DIVIDE
/
@/
430
Dd: Dividend
word
Dr: Divisor word
R: Result word
DOUBLE
/L(431)
SIGNED BINARY
DIVIDE
/L
@/L
431
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
UNSIGNED
/U(432)
BINARY DIVIDE
/U
@/U
432
Dd: Dividend
word
Dr: Divisor word
R: Result word
102
Multiplies 4-digit (single-word) BCD data and/or constants.
Md
Mr
R
R +1
Multiplies 8-digit (double-word) BCD data and/or constants.
Md
Mr
×
R
R + 3
R + 2
Divides 4-digit (single-word) signed hexadecimal data and/or
constants.
Dd
Dr
÷
R
R +1
Remainder
Divides 8-digit (double-word) signed hexadecimal data and/or
constants.
Dd
Dr
R
÷
R + 3
R + 2
Remainder
Divides 4-digit (single-word) unsigned hexadecimal data and/or
constants.
Dd
Dr
R
÷
R +1
Remainder
Function
(BCD)
Md
×
(BCD)
Mr
(BCD)
R
Md + 1
Md
Mr
Mr + 1
R + 1
R
(Signed binary)
Dd
(Signed binary)
Dr
(Signed binary)
R
Quotient
Dd + 1
Dd
Dr + 1
Dr
R + 1
R
Quotient
(Unsigned binary)
Dd
(Unsigned binary)
Dr
(Unsigned binary)
R
Quotient
Section 3-9
Location
Execution condition
Output
Required
Output
Required
(BCD)
(BCD)
(BCD)
Output
Required
Output
Required
(Signed binary)
(Signed binary)
(Signed binary)
Output
Required
Need help?
Do you have a question about the CJ - PROGRAMMING MANUAL 08-2008 and is the answer not in the manual?
Questions and answers