A-23
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A-1 Instruction Functions
App
A-1-9 Symbol Math Instructions
DOUBLE
SIGNED
BINARY
DIVIDE
/L @ Divides 8-digit (double-word) signed hexadecimal data and/or con-
stants.
UNSIGNED
BINARY
DIVIDE
/U @ Function:Divides 4-digit (single-word) unsigned hexadecimal data
and/or constants.
DOUBLE
UNSIGNED
BINARY
DIVIDE
/UL @ Function:Divides 8-digit (double-word) unsigned hexadecimal data
and/or constants.
BCD DIVIDE /B @ Divides 4-digit (single-word) BCD data and/or constants.
DOUBLE BCD
DIVIDE
/BL @ Divides 8-digit (double-word) BCD data and/or constants.
Instruction Mnemonic Variations Symbol/Operand Function
/L(431)
Dd
Dr
R
Dd: 1st dividend word
Dr: 1st divisor word
R: 1st result word
Dd + 1
Dr + 1
R + 1 RR + 3 R + 2
÷
Dd
Dr
Remainder Quotient
(Signed binary)
(Signed binary)
(Signed binary)
Dd: Dividend word
Dr: Divisor word
R: Result word
/U(432)
Dd
Dr
R
÷
R+1 R
Dd
Dr
Remainder
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)
Quotient
/UL(433)
Dd
Dr
R
Dd: 1st dividend word
Dr: 1st divisor word
R: 1st result word
÷
R + 1 RR + 3 R + 2
Dd + 1 Dd
Dr + 1 Dr
Remainder Quotient
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)
/B(434)
Dd
Dr
R
Dd: Dividend word
Dr: Divisor word
R: Result word
Dd
Dr
R +1 R
÷
(BCD)
(BCD)
(BCD)
Remainder Quotient
/BL(435)
Dd
Dr
R
Dd: 1st dividend word
Dr: 1st divisor word
R: 1st result word
Dd + 1
Dr + 1
R + 1 RR + 3 R + 2
(BCD)
(BCD)
(BCD)
÷
Dd
Dr
Remainder Quotient