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
R
R + 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.
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...