
PROGRAMMING NUMERIC APPLICATIONS
It should also be noted that the 8087 instructions FENI and FDISI perform no function in the 80287. If these opcodes are detected in an 80286/80287 instruction stream, the 80287 will perform no specific operation and no internal states will be affected. For programmers interested in porting numeric software from 8087 environments to the 80286, however, it should be noted that program sections containing these
FINITIFNINIT
FINIT/FNINIT (initialize processor) sets the 80287 NPX into a known state, unaffected by any previous activity. The
Note that if FNINIT is executed while a previous 80287
FSETPM
FSETPM (set Protected mode) sets the operating mode of the 80287 to Protected
When the 80287 operates in Protected mode, the NPX exception pointers are represented differently than they are in
cation programmers, the operating mode of the 80287 need not be a concern. | . |
FLDCW source
FLDCW (load control word) replaces the current processor control word with the .word defined by the source operand. This instruction is typically used to establish or change the·80287's mode of operation. Note that if an exception bit in the status word is set, loading a new control word that unmasks that exception and clears the interrupt enable mask will generate an immediate interrupt request before the ne~t instr!!o::ti0!! is ~x~~nt""L When changing modes, the recomme\1ded procedure is to first clear any exceptions and then load the new control word.
FSTCW/FNSTCW destination
FSTCW/FNSTCW (store control word) writes the current processor control word to the memory location defined by the destination. FSTCW checks for unmasked numeric exceptions, FNSTCW does not.