64
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2-10 Conversion Instructions
BCD DIVIDE
/B
@/B
434
Output
Required
380
DOUBLE BCD
DIVIDE
/BL
@/BL
435
Output
Required
380
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
BCD TO BINARY
BIN
@BIN
023
Output
Required
382
DOUBLE BCD TO
DOUBLE
BINARY
BINL
@BINL
058
Output
Required
382
BINARY TO BCD
BCD
@BCD
024
Output
Required
384
DOUBLE
BINARY TO DOU-
BLE BCD
BCDL
@BCDL
059
Output
Required
384
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
/B(434)
R
Dd
Dr
Dd: Dividend
word
Dr: Divisor word
R: Result word
R+1 R
(BCD)
(BCD)
(BCD)
÷
Dd
Dr
Remainder
Divides 4-digit (single-word) BCD data and/or constants.
Quotient
/BL(435)
R
Dd
Dr
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
R+1 RR+3
R+2
(BCD)
(BCD)
(BCD)
÷
Dd+1
Dr+1
Remainder
Dr
Dd
Divides 8-digit (double-word) BCD data and/or constants.
Quotient
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.
BCD(024)
S
R
S: Source word
R: Result word
(BCD)(BIN)
R
Converts a word of binary data to a word of BCD data.
BCDL(059)
S
R
S: 1st source
word
R: 1st result word
(BIN)
(BCD)
(BIN)
(BCD)
R
R+1
Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.