Using the coprocessor

In this section:

Coprocessor stack operands are referred to using the following notation:

    ST(0) ;Stack top
    ST(1) ;Next to stack top
    etc.

Stack reference instructions use the short real form of the mnemonic (for example, FADD) but the actual calculations are performed to the full precision of the coprocessor. The coprocessor stack must be returned empty and with the control word unchanged. Coprocessor instructions do not contain an implied WAIT. WAIT instructions are only necessary after results are returned to the 32-bit Intel chip (FSTP, or FSTSWAX for example), and even then only if the result will be used before another coprocessor instruction is started.

If you are writing code that might be used in an another environment, you should ensure that any coprocessor mnemonics you use are appropriate to that environment.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited