1, Q: What kind of floating-point advantage in the result of the operation, he is not a small point and carry bit? Floating point and double precision floating point, what kind of difference?A: decimal floating point arithmetic with support, which is its advantage, floating-point operations per participation operations accounted for two-channel and double precision floating point accounted for four channels.
2, CP1H series, BCD is divided result with a decimal point, how to carry it to decimal. For example, / BL (435) # 1499664 # 1000 D70D70 values so obtained in 1500. How to carry it
A: You can use comparison remainder implementation. / BL division remainder was stored in D72, D73 channel, using the CMP compare instruction to discriminate, if necessary carry, plus the D70 channel # 1.
3, floating-point multiplication result obtained is BCD code it
A: The results of floating-point arithmetic instruction is a dedicated floating-point format, you can use the FIX instruction to be converted to hexadecimal floating point, and then use the BCD instruction converts BCD to hexadecimal form.
4, signed and unsigned binary operation binary operation What is the difference? Symbol refers to a negative number? Including the right of the decimal point?
A: binary operation signed in, the results calculated in the most significant bit 15 is the sign bit, if it is 1: The representative is negative, 0: The representative is positiveUnsigned binary data in the range of 0000-ffff (4-digit hexadecimal)0 to 65535 (decimal)Negative signed binary data range: 8000 ~ ffff (4-digit hexadecimal)0 ~ -32768 (10 decimal) positive range: 0000 ~ 7fff (4-digit hexadecimal)0 to 32768 (decimal)