Appendices
A-22
CP1E CPU Unit Software User’s Manual(W480)
DOUBLE BCD
DIVIDE
/BL @ Divides 8-digit (double-word) BCD data and/or constants.
A-1-10 Conversion Instructions
Instruction Mnemonic Variations Symbol/Operand Function
BCD-TO-BINA
RY
BIN @ Converts BCD data to binary data.
DOUBLE
BCD-TO-DOU-
BLE BINARY
BINL @ Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary)
data.
BINARY-TO-
BCD
BCD @ Converts a word of binary data to a word of BCD data.
DOUBLE
BINARY-TO-
DOUBLE BCD
BCDL @ Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD
data.
2'S COMPLE-
MENT
NEG @ Calculates the 2's complement of a word of hexadecimal data.
Instruction Mnemonic Variations Symbol/Operand Function
/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
BIN(023)
S
R
S: Source word
R: Result word
(BCD) (BIN)
R
BINL(058)
S
R
S: 1st source word
R: 1st result word
(BCD) (BIN)
(BCD) (BIN)
R
R+1
BCD(024)
S
R
S: Source word
R: Result word
(BCD)(BIN)
R
BCDL(059)
S
R
S: 1st source word
R: 1st result word
(BIN) (BCD)
(BIN) (BCD)
R
R+1
NEG(160)
S
R
S: Source word
R: Result word
2's complement
(Complement + 1)
(S)
(R)