![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268567.webp)
528
Conversion Instructions
Section 3-12
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.
Note
1.
Values of –0 in the source data will be treated as 0 and will not cause an
error.
2.
Some Special I/O Units require signed BCD data inputs. BDSL(473) can
be used to convert double signed binary data for output to these Units.
The control word specifies the signed BCD format that will be used for the
result, as shown below.
C = 0000 (Output Data Range: –999 9999 to 999 9999 BCD)
C = 0001 (Output Data Range: –7999 9999 to 7999 9999 BCD)
C = 0002 (Output Data Range: –999 9999 to 9999 9999 BCD)
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
Area
C
S
D
Signed BCD
Signed BCD
Signed binary
Signed binary
Signed BCD format
specified in C
S+1
S
7 digits BCD, 28 bits
Sign bit (0: Positive; 1: Negative)
Status of 3 bits: 0
S+1
S
3 bits of digit 8 (0 to 7)
7 digits BCD, 28 bits
Sign bit (0: Positive; 1: Negative)
S+1
S
0 to 9: Eighth digit BCD
F: Negative (–)
7 digits BCD, 28 bits
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...