Chapter 6 Applied Instructions S +1 S +2 S +3 S D +4 S +5 S D +1 Floating point numbers n=5 +6 S +7 S Floating point numbers +8 S +9 S Example The FSUM instruction adds up the values of the 3 single precision floating points in (D1, D0), (D3, D2), (D5, D4) and stores the result in (D11, D10). [(D1, D 0)+(D3, D 2)+(D5, D4)] (D11, D10) (D1, D0) 100.1 After the instruction is executed. 6_ (D3, D2) 113.2 (D11, D10) 338.6 (D5, D4) 125.3 Additional remarks 1. If the value in n is not between 1–256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 2.
If S +2* n -1exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3. If the value in S exceeds the range of the floating point numbers that can be shown, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013. 6-395