EEE230 Online
Floating point instructions practice
To practice, write the code for the following.
1. Read in a floating point number, increment it by one and print the result.
2. Find the average of 3 contiguous integers in memory. Assume that the numbers are at the
beginning of the data segment.
3. Read two floating point numbers, sort them into ascending order, store them into memory
and then print them out. Assume that the numbers are at the beginning of the data segment.
For the answers, see fp1.asm, fp2.asm and fp3.asm.