Chapter 6 Applied Instructions Example 2: Users can use the applied instructions to perform the following calculation. The binary integer in D10 is converted into the single-precision floating-point number, and the conversion result is stored in (D101, D100). The binary-coded decimal value in X0.0~X0.15 is converted into the binary value, and the conversion result is stored in D200. The binary integer in D200 is converted into the single-precision floating-point number, and the conversion result is stored in (D203, D202). The constant 615 is divided by the constant 10, and the quotient which is the single-precision floating-point number is stored in (D301, D300).
The single-precision floating-point number in (D101, D100) is divided by the single-precision floating-point number in (D203, D202), and the quotient which is the single-precision floating-point number is stored in (D401, D400). The single-precision floating-point number in (D401, D400) is multiplied by the single-precision floating-point number in (D301, D300), and the product which is the single-precision floating-point number is stored in (D21, D20). The single-precision floating-point number in (D21, D20) is converted into the decimal floating-point number, and the conversion result is stored in (D31, D30).
The single-precision floating-point number in (D21, D20) is converted into the binary integer, and the conversion result is stored in (D41, D40). (D21,D20) 6 Single-precision floating-point number 7 (D31,D30) Decimal floating-point number 8 (D41,D40) 32 -bit integer Single-precision floating-point number (D401,D400) 6-79 (D10) (X0.0~X0.15) K61.5 16-bit binary four-digit number binary-coded decimal number 1 2 5 (D101,D100) (D200) BIN ingle-precision 3 oating-point number (D203,D202) Single-precision floating-point number