;######################################## checkmmx ########################### ; ; Returns 0 if MMX instructions are usable, 1 if not. ; SECTION .text align 16 GLOBAL main main: push ebx push ecx push edx mov eax, 1 cpuid mov eax, edx shr eax, byte 23 ; check bit 23 and eax, byte 1 ; nonzero if MMX OK xor eax, byte 1 ; return 0 when OK pop edx pop ecx pop ebx ret