CpuMMXstate
Result = CpuMMXstate()
 
Parameters: NONE
Returns:

    Result = The MMX state of this computers CPU
 

      The CpuMMXstate function checks if your computers CPU has the MMX instruction set or not.



FACTS:


      * Generally the only machines that would not have MMX today are really old Pentiums and anything bellow (486 etc). If a computer does not have the MMX instruction set available, then PlayBASIC will default to using the none MMX versions of it's graphics routines.




Mini Tutorial:


  
  
; Check if this machine has the MMX instructions or not
  If cpummxstate()=true
   ; if it does then set the true message
     M$="The CPU in this Computer Has the MMX instruction set"
  Else
   ; if it doesn't, then set the false message
     M$="The CPU does NOT support MMX"
  EndIf
  
; Display the MMX state message
  Print m$
  
; Display the Screen and wait for a key press
  Sync
  WaitKey
  




On my machine, this example would output.

  
  The CPU in this Computer Has the MMX instruction set
  

 
Related Info: GetGfxMMX | GfxMMX :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com