PROWAREtech
x86 Assembly: How to Check for SSSE3 Support
An example of how to check if a processor supports the SSSE3 instruction set.
This assembly code was compiled with MS Visual C++ Express Edition 2005 using the MACRO ASSEMBLER for MS Visual C++ Express Edition 2005.
This example is from the SSE/SSE2 tutorial.
TITLE 'extern "C" int __cdecl isSSSE3();'
.686P
.model FLAT
PUBLIC _isSSSE3
_TEXT SEGMENT
_isSSSE3 PROC NEAR
push ebx
mov eax, 1
cpuid
shr ecx, 9 ; bit 9 of the ecx register
and ecx, 1
mov eax, ecx
pop ebx
ret 0
_isSSSE3 ENDP
_TEXT ENDS
END
Comment