99
Conversion Instructions Section 3-10
3-10 Conversion Instructions
BCD DIVIDE
/B
@/B
434
Output
Required
DOUBLE BCD
DIVIDE
/BL
@/BL
435
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
BCD-TO-BINARY
BIN
@BIN
023
Output
Required
DOUBLE BCD-
TO-DOUBLE
BINARY
BINL
@BINL
058
Output
Required
BINARY-TO-BCD
BCD
@BCD
024
Output
Required
DOUBLE
BINARY-TO-
DOUBLE BCD
BCDL
@BCDL
059
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Dd: Dividend
word
Dr: Divisor word
R: Result word
/B(434)
Dd
Dr
R
Divides 4-digit (single-word) BCD data and/or constants.
Dd
Dr
R +1 R
÷
(BCD)
(BCD)
(BCD)
Remainder Quotient
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
/BL(435)
Dd
Dr
R
Divides 8-digit (double-word) BCD data and/or constants.
Dd + 1 Dd
Dr + 1 Dr
R + 1 RR + 3
R + 2
(BCD)
(BCD)
(BCD)
÷
Remainder Quotient
S: Source word
R: Result word
BIN(023)
S
R
(BCD) (BIN)
Converts BCD data to binary data.
R
S: 1st source
word
R: 1st result word
BINL(058)
S
R
(BCD) (BIN)
(BCD)
(BIN)
R
R+1
Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary) data.
S: Source word
R: Result word
BCD(024)
S
R
(BCD)(BIN) R
Converts a word of binary data to a word of BCD data.
S: 1st source
word
R: 1st result word
BCDL(059)
S
R
(BIN) (BCD)
(BIN) (BCD)
R
R+1
Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.