Added detection code for MMX2
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user