246
4
4 Instructions4.6.4 Matrix Rotation and Shift
◆
Function
1) 32-bit operation (DESTR)
The binary oating-point number in [S+1, S] is converted to a string based on the content of [S2, S2+1,
S2+2]. The result is stored in elements from head address D.
0: Decimal form
1: Exponential form
Setting range: 2 to 24
The conversion result varies
with different S2 forms.
S2
Total number of characters
S2+1
Number of characters
in the fractional part
S2+2
2) Decimal form
Decimal form
S2
Total number
of characters
S2+1
S2+2
Binary floating-point number (real number)
S1+1 S1
.
Sign
D
D+1
D+2
b7-----b0
D+3
b15-----b8
D+4
0000H
Automatically stored at the end of the string
Number of characters
in the fractional part
ASCII code of the (total
character count minus 1)th
character
ASCII code of the (total
character count minus 3)th
character
ASCII code of the (total
character count minus 5)th
character
ASCII code of the (total
character count minus 7)th
character
ASCII code of the sign
ASCII code of the (total
character count minus 2)th
character
ASCII code of the decimal
point (2EH)
ASCII code of the (total
character count minus 6)th
character (fractional part)
●
The total number of characters (max.: 24) is specied in [S2+1] based on the following rules:
Total number of characters ≥ 2 when the number of characters in the fractional part is equal to 0
Total number of characters ≥ Number of characters in the fractional part + 3 when the number of characters
in the fractional part is not 0
●
The number of characters in the fractional part specied in [S2+2] ranges from 0 to 7. Ensure that the
number of characters in the fractional part is not greater than the total number of characters minus 3.
3) Exponential form
Decimal form
S2
Total number of
characters
S2+1
Number of characters
in the fractional part
S2+2
Binary floating-point number (real number)
S1+1 S1
.
Sign (integer part)
D
D+1
D+2
b7-----b0
D+3
b15-----b8
D+6
0000H
Automatically stored at the end of the string
E
Sign (exponent)
D+4
D+5
45HE
ASCII code of the (total character
count minus 1)th character
ASCII code of the decimal point
(2EH)
ASCII code of the (total character
count minus 5)th character
(fractional part)
ASCII code of the sign (exponent)
ASCII code of the sign
ASCII code of the (total character
count minus 2)th character
ASCII code of the (total character
count minus 4)th character
(fractional part)
ASCII code of the (total character
count minus 6)th character
(fractional part)
ASCII code of the (total character
count minus 10)th character
(exponent)
ASCII code of the (total character
count minus 11)th character
(fractional part)
ASCII code of the (total character
count minus 7)th character
(fractional part)