Back to Browse

Using FSAVE in inline assembly

114 views
Apr 8, 2021
8:58

Learn the basics of the fsave/fnsave instruction. A simple c++ program with inline assembly is shown to understand the operation of fsave. More details on fsave can be found in vol1 chapter 8 and vol2 of the Intel programmers reference manual. The figures used in the presentation are from the above mentioned Intel PRM. Note: FNSAVE is not explicitly discussed here but the operation of fnsave is the same as fsave. fsave is the waiting version and fnsave is the non-waiting version. The waiting version waits for all pending floating point exceptions before execution. The non-waiting version executes without waiting for the pending floating point exceptions (the pending floating point exceptions are from the execution of older fp instructions). Inline assembly code available here: https://github.com/vishmohan/inline_assembly_examples/tree/master/fsave

Download

0 formats

No download links available.

Using FSAVE in inline assembly | NatokHD