Added detection code for MMX2

This commit is contained in:
pagefault
2005-03-01 20:04:16 +00:00
parent b94163faa2
commit 0a7c2f986a
2 changed files with 6 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ EXTSYM ConvertJoyMap,ConvertJoyMap1,ConvertJoyMap2,printhex
EXTSYM StartUp,PrintStr,WaitForKey,PrintChar,ZFileSystemInit EXTSYM StartUp,PrintStr,WaitForKey,PrintChar,ZFileSystemInit
EXTSYM SystemInit,allocmem EXTSYM SystemInit,allocmem
EXTSYM cfgsoundon EXTSYM cfgsoundon
EXTSYM xa EXTSYM xa,MMX2Support
EXTSYM ram7fa,wramdataa EXTSYM ram7fa,wramdataa
EXTSYM malloc,free EXTSYM malloc,free
EXTSYM MMXSupport,ScreenScale,SoundQuality EXTSYM MMXSupport,ScreenScale,SoundQuality
@@ -1097,16 +1097,16 @@ NEWSYM MMXCheck
; MMX support ; MMX support
mov byte[MMXSupport],0 mov byte[MMXSupport],0
mov byte[MMX2Support],0
mov eax,1 mov eax,1
CPUID CPUID
test edx,1 << 23 test edx,1 << 23
jz .nommx jz .nommx
mov byte[MMXSupport],1 mov byte[MMXSupport],1
cmp byte[GUIOn2],1 test edx,1 << 25
je .noprintstr jz .nommx
mov edx,YesMMX mov byte[MMX2Support],1
call PrintStr
.noprintstr .noprintstr
.nommx .nommx
ret ret

View File

@@ -139,6 +139,7 @@ unsigned char *spc7110romptr;
unsigned char MusicRelVol = 75; unsigned char MusicRelVol = 75;
unsigned char MusicVol = 0; unsigned char MusicVol = 0;
unsigned char MMX2Support = 0;
void outofmemory(); void outofmemory();
void init(); void init();