260
By the exponential notation:
D4
Lower
8 bits
D4
Upper
8 bits
D5
Lower
8 bits
D5
Upper
8 bits
20H( )
20H( )
31H( 1) 2EH(•) 32H(2) 33H(3) 35H( 5) 45H(E) 2BH(+) 30H(0) 32H(2)
00H
D
123.4567 1
2
3
5
E
0
S1
=(D21, D20)
The expanded number during the conversion
S2
S2
S2
D10
D11
D12
1
11
3
S2
To assign the process is by the exponential notation
2
Indicate
the
Exponential
Positive
or
negative
sign for
exponent
This instruction is a 32-bit instruction. Therefore, be sure to input DESTR or DESTRP in the program.
3 digits after the
decimal point
2 digits exponent
D0
Lower
8 bits
D0
Upper
8 bits
D1
Lower
8 bits
D1
Upper
8 bits
D2
Lower
8 bits
D2
Upper
8 bits
D3
Lower
8 bits
D3
Upper
8 bits
Positive or
negative
sign
Space
Decimal
point
End of
string
One's
place
The positive or negative sign is using the 20H to represent positive; the 2DH represents negative.
It has one digit at the one's place only.
Also, the byte next to the positive or negative sign is a blank space, that will ll in the code 20H.
If ( +2)=0, that indicates an integer will be shown at the mantissa, so there is no decimal point in the
string; if ( +2)>0, that indicates the number has a fractional part, so the decimal point will be added to
the string. At the example above, ( +2)=3, thus the decimal point will be added automatically.
The expanded number 1.235 is caused by to round off the content of next digit 5, hence that increases the
last used digit from 4 to 5.
For the part of the exponent:
The instruction adds a character "E" in the front of the exponent part automatically.
In this part, its positive or negative sign is using the 2BH to represent positive; the 2DH represents negative.
The length of the exponent number is xed to 2 digits.
When the expanded number converts to the ASCII codes, the instruction adds the end of string at the tail
automatically. If the set length of the string is an odd number, the end of string is 00H; in addition, the string
with even number set length will add the end of string 0000H. Thus, the D4 at the converted string with the
value 0000H that is the end of string.