EasyManua.ls Logo

Siemens CPU 948 - Page 135

Siemens CPU 948
548 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Conversion operations
Operation Function
CFW
CSW
CSD
DEF
DUF
DED
DUD
FDG
GFD
Form the 1’s complement of ACCU-1-L (16 bits)
Form the 2’s complement of ACCU-1-L (16 bits)
Form the 2’s complement of ACCU 1 (32 bits)
Convert a fixed point number (16 bits) from BCD to binary
Convert a fixed point number (16 bits) from binary to BCD
Convert a double word (32 bits) from BCD to binary
Convert a double word (32 bits) from binary to BCD
Convert a fixed point number (32 bits) to a floating point number (32 bits)
Convert a floating point number to a fixed point number (32 bits)
DEF
The value in ACCU-1-L (bits 0 to 15) is interpreted as a BCD number.
After the conversion, ACCU-1-L contains a 16-bit fixed point
number.
DUF
The value in ACCU-1-L (bits 0 to 15) is interpreted as a 16-bit fixed point
number. After the conversion, ACCU-1-L contains a BCD number.
15 14 0
S2
14
. . . . . . . . . . . . . . . 2
0
DUF DEF
15
0
S S S S 10
2
10
1
10
0
S (sign): 0 = positive
1 = negative
Table 3-23 Conversion operations
Executive Operations
CPU 948 Programming Guide
C79000-G8576-C848-04
3 - 63

Table of Contents

Related product manuals