X87 FPU Programming
This chapter covers additional details about the architecture of the x87 FPU and its instruction set. The chapter includes an assortment of x86 assembly language functions that demonstrate the fundamentals of x87 FPU programming along with some advanced techniques. You’ll begin your exploration of the x87 FPU with an examination of some sample programs that illustrate how to perform basic arithmetic and compare operations using floating-point numbers. Next, you’ll learn how to perform calculations using floating-point arrays. The final set of sample programs in this chapter describes the x87 FPU’s transcendental instructions along with a few techniques that exemplify efficient x87 FPU register stack use. The content of this chapter assumes that you’re familiar with material presented in Chapters 1, 2, and 3.