428
Conversion Instructions Section 3-11
Operands C: Control Word
Specifies the signed BCD format. C must be 0000 to 0003.
S: First Source Word
Source words S+1 and S contain the double signed binary data to be con-
verted. Their content must be within the valid range of the BCD format speci-
fied in C.
D: First destination word
Destination words D+1 and D contain the converted double signed BCD data.
See the description section below for an explanation of the BCD formats.
Operand Specifications
Description BDSL(473) converts double signed binary data to double signed BCD data.
First the double signed binary data in S+1 and S is checked to verify that it is
within the valid range for the signed BCD format specified in the control word
(C). If the source data is correct, the double signed binary data in S+1 and S
is converted to double signed BCD and output to D+1 and D. If the source
data is incorrect, the Error Flag will be turned ON and the instruction will not
be executed.
Setting Allowed values for S+1 and S
C=0000 FF67 6981 to FFFF FFFF or 0000 0000 to 0098 967F
C=0001 FB3B 4C01 to FFFF FFFF or 0000 0000 to 04C4 B3FF
C=0002 FF67 6981 to FFFF FFFF or 0000 0000 to 05F5 E0FF
C=0003 FECE D301 to FFFF FFFF or 0000 0000 to 05F5 E0FF
Area C S D
CIO Area CIO 0 to
CIO 6143
CIO 0 to CIO 6142
Work Area W0 to W511 W0 to W510
Holding Bit Area H0 to H511 H0 to H510
Auxiliary Bit Area A0 to A959 A0 to A958 A448 to A958
Timer Area T0000 to T4095 T0000 to T4094
Counter Area C0000 to C4095 C0000 to C4094
DM Area D0 to D32767 D0 to D32766
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants #0000 to #0003
(binary)
---
Data Registers DR0 to DR15 ---
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Signed BCD
Signed BCD
Signed binary
Signed binary
Signed BCD format
specified in C