Floating-Point Processing Questions and Answers

How do you read floating point numbers from the keyboard, and then send them to the floating point unit? Section 17.2.7 shows how to call ReadFloat and WriteFloat from the Irvine32 library. But if you want to see how these procedures are implemented, look at the file named C:\Irvine\examples\Lib32\Irvine32_Library\floatio.asm. It was created by W.A. Barrett and James Brink, and included with this book with their permission.

 
How do you pass floating point data from the CPU to the FPU? Use the FST instruction to store the top of stack ST(0) into a variable.