105
Conversion Instructions
Section 3-10
3-10 Conversion Instructions
DOUBLE
UNSIGNED
BINARY DIVIDE
/UL
@/UL
433
Output
Required
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
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
/UL(433)
R
Dd
Dr
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
R + 1 RR + 3 R + 2
÷
Dd + 1
Dr + 1
Remainder
Dd
Dr
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)
Divides 8-digit (double-word) unsigned hexadecimal data and/or
constants.
Quotient
/B(434)
Dd
Dr
R
Dd: Dividend
word
Dr: Divisor word
R: Result word
Dd
Dr
R +1 R
÷
(BCD)
(BCD)
(BCD)
Remainder Quotient
Divides 4-digit (single-word) BCD data and/or constants.
/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
Divides 8-digit (double-word) BCD data and/or constants.
BIN(023)
S
R
S: Source word
R: Result word
(BCD) (BIN)
R
Converts BCD data to binary data.
BINL(058)
S
R
S: 1st source
word
R: 1st result word
(BCD) (BIN)
(BCD) (BIN)
R
R+1
Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary) data.