Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- iAPx86 - <b>emms empty mmx state</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
EMMS            Empty MMX State

EMMS                                                 CPU: MMX

        Logic    TAG word <- 0FFFFh

    The EMMS instruction sets the values of the floating-point tag word
    to empty (all ones). EMMS marks the registers as available, so they
    can subsequently be used by FPU instructions.

    If an FP instruction loads into one of the registers before it has
    been reset by EMMS, an FP stack overflow can occur, which results in
    an FP exception or incorrect result. 

    All other MMX instructions validate the entire FP tag word (all
    zeros).


    Note
    This instruction must be used to clear the MMX state at the end of
    all MMX routines/code blocks, and before calling other routines that
    may execute floating-point instructions.


    Opcode      Format
    0F 77       EMMS

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson