flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Main > mmx | 
  
| Author | 
  | 
              
| 
                  
                   thecf 24 Dec 2006, 14:17 
                  how do i check for mmx support? 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   LocoDelAssembly 24 Dec 2006, 14:29 
                  This one checks for CPUID presence first
 
                  
                Code: mmx_detect: ; Returns 1 if MMX present, 0 otherwise pushf pop eax pushf xor byte [esp+2], $20 popf pushf pop edx cmp eax, edx je .return mov eax, 1 cpuid test edx, 800000h .return: setnz al ret  | 
              |||
                  
  | 
              
| 
                  
                   thecf 29 Dec 2006, 13:20 
                  thanks guys it works fine 
                  
                 | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.