Conversion Instructions
Description
Flags
7-20-4 DOUBLE BINARY-TO-DOUBLE BCD – BCDL(59)
Limitations
Description
Flags
When the execution condition is OFF, BINL(58) is not executed. When the
execution condition is ON, BINL(58) converts an eight-digit number in S and S+1
into 32-bit binary data, and outputs the converted data to R and R+1.
ER:
The contents of S and/or S+1 words are not BCD.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is zero.
Ladder Symbols
BCDL(59)
@BCDL(59)
S
R
This instruction is available in the CPM2A/CPM2C only.
If the content of S exceeds 05F5E0FF, the converted result would exceed
99999999 and BCDL(59) will not be executed. When the instruction is not
executed, the content of R and R+1 remain unchanged.
DM 6144 to DM 6655 cannot be used for R.
BCDL(59) converts the 32-bit binary content of S and S+1 into eight digits of
BCD data, and outputs the converted data to R and R+1.
ER:
Content of R and R+1 exceeds 99999999.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is zero.
S + 1
S
BCD
R + 1
R
Binary
Operand Data Areas
S: First source word (binary)
IR, SR, AR, DM, HR, LR
S
R
IR, SR, AR, DM, HR, LR
S + 1
S
Binary
R + 1
R
BCD
Section
7-20
R: First result word
441
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?