Opcode |
Instruction |
Description |
---|---|---|
0F 77 |
EMMS |
Set the x87 FPU tag word to empty. |
Sets the values of all the tags in the x87 FPU tag word to empty (all
1s). This operation marks the x87 FPU data registers (which are aliased
to the MMX
The EMMS instruction must be used to clear the MMX state at the end of all MMX routines and before calling other procedures or subroutines that may execute x87 floating-point instructions. If a floating-point instruction loads one of the registers in the x87 FPU data register stack before the x87 FPU tag word has been reset by the EMMS instruction, an x87 floating-point stack overflow can occur that will result in an x87 floating-point exception or incorrect result.
x87FPUTagWord FFFFH;
void_mm_empty()
None.
#UD - If EM in CR0 is set.
#NM - If TS in CR0 is set.
#MF - If there is a pending FPU exception.
Same as for protected mode exceptions.
Same as for protected mode exceptions.
For details, see Volume 2A and Volume 2B of the Intel(R) 64 and IA-32 Intel Architecture Software Developer's Manual. For the latest updates on the instruction set information, go to the web site.