Removed MMX save option; forced MMX always on if detected

This commit is contained in:
pagefault
2001-08-10 19:36:47 +00:00
parent 0a529dc502
commit 55a02bfcf2
4 changed files with 19 additions and 30 deletions

View File

@@ -146,11 +146,13 @@ EXTSYM pl1upk,pl1downk,pl1leftk,pl1rightk,pl1Lk,pl1Rk,pl1Ak,pl1Bk
EXTSYM deinitipx EXTSYM deinitipx
EXTSYM InitModem EXTSYM InitModem
EXTSYM outofmemfix,yesoutofmemory EXTSYM outofmemfix,yesoutofmemory
EXTSYM CReadHead,ReadHead,CFWriteHead,CFWriteStart EXTSYM CReadHead,ReadHead,CFWriteHead,CFWriteStart
EXTSYM JoyX,JoyY,JoyMinX,JoyMinY,JoyMaxX,JoyMaxY,JoyMinX209,JoyMaxX209 EXTSYM JoyX,JoyY,JoyMinX,JoyMinY,JoyMaxX,JoyMaxY,JoyMinX209,JoyMaxX209
EXTSYM JoyMinY209,JoyMaxY209,GetCoords,GetCoords3 EXTSYM JoyMinY209,JoyMaxY209,GetCoords,GetCoords3
EXTSYM MultiTap,SFXEnable EXTSYM MultiTap,SFXEnable
EXTSYM RestoreSystemVars EXTSYM RestoreSystemVars
EXTSYM TCPIPStartServer EXTSYM TCPIPStartServer
EXTSYM TCPIPInitConnectToServer EXTSYM TCPIPInitConnectToServer
EXTSYM TCPIPWaitForConnection EXTSYM TCPIPWaitForConnection
@@ -168,7 +170,6 @@ EXTSYM DeInitModemC
EXTSYM ipxgetchar,ipxsendchar,TCPIPStoreByte EXTSYM ipxgetchar,ipxsendchar,TCPIPStoreByte
EXTSYM TCPIPGetByte,GUIBIFIL EXTSYM TCPIPGetByte,GUIBIFIL
EXTSYM ModemSendChar EXTSYM ModemSendChar
EXTSYM MMXCheck
%ifdef __LINUX__ %ifdef __LINUX__
EXTSYM numlockptr EXTSYM numlockptr
%endif %endif
@@ -583,7 +584,6 @@ NEWSYM DisableScreenSaver, db 0
NEWSYM TrapMouseCursor, db 1 NEWSYM TrapMouseCursor, db 1
NEWSYM KeyQuickClock, dd 0 NEWSYM KeyQuickClock, dd 0
NEWSYM KeyQuickMinimize, dd 0 NEWSYM KeyQuickMinimize, dd 0
NEWSYM MMXSupport, db 1
GUIsave equ $-GUIRAdd GUIsave equ $-GUIRAdd

View File

@@ -832,8 +832,7 @@ GUIOptionKeys:
;.novsync ;.novsync
cmp dh,'M' cmp dh,'M'
jne .nommxcopy jne .nommxcopy
xor byte[MMXSupport],1 xor byte[FPUCopy],2
call MMXCheck
.nommxcopy .nommxcopy
cmp dh,'U' cmp dh,'U'
jne .nousepl34 jne .nousepl34

View File

@@ -1305,6 +1305,19 @@ GUIWinClicked:
%endif %endif
%endmacro %endmacro
%macro GUIClickCButtonMMX 3
cmp eax,%1+1
jl %%noclick
cmp edx,%2+3
jl %%noclick
cmp eax,%1+6
jg %%noclick
cmp edx,%2+8
jg %%noclick
xor %3,2
%%noclick
%endmacro
%macro GUIClickCButtonI 3 %macro GUIClickCButtonI 3
cmp eax,%1+1 cmp eax,%1+1
jl %%noclick jl %%noclick
@@ -1321,21 +1334,6 @@ GUIWinClicked:
%%noclick %%noclick
%endmacro %endmacro
%macro GUIClickCButtonMMX 4
cmp eax,%1+1
jl %%noclick
cmp edx,%2+3
jl %%noclick
cmp eax,%1+6
jg %%noclick
cmp edx,%2+8
jg %%noclick
xor %3,%4
call MMXCheck
ret
%%noclick
%endmacro
%macro GUISlidebarPostImpl 13 ; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize %macro GUISlidebarPostImpl 13 ; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize
cmp dword[%11],0 cmp dword[%11],0
je near %%nolower je near %%nolower
@@ -2154,7 +2152,7 @@ DisplayGUIOptionClick:
GUIClickCButton2 11,36,byte[newengen],byte[cfgnewgfx],1 GUIClickCButton2 11,36,byte[newengen],byte[cfgnewgfx],1
.invalidng .invalidng
; GUIClickCButton2 11,46,byte[vsyncon],byte[cfgvsync],1 ; GUIClickCButton2 11,46,byte[vsyncon],byte[cfgvsync],1
GUIClickCButtonMMX 11,56,byte[MMXSupport],1 GUIClickCButtonMMX 11,56,byte[FPUCopy]
GUIClickCButtonM 11,66,byte[pl12s34] GUIClickCButtonM 11,66,byte[pl12s34]
%ifdef __MSDOS__ %ifdef __MSDOS__
GUIClickCButton 11,76,byte[SidewinderFix] GUIClickCButton 11,76,byte[SidewinderFix]

View File

@@ -33,7 +33,7 @@ EXTSYM smallscreenon,spcon
EXTSYM statefileloc,LatestSave EXTSYM statefileloc,LatestSave
EXTSYM Create_File,Delete_File,Open_File,Get_File_Date,Close_File,Change_Dir,Get_Dir EXTSYM Create_File,Delete_File,Open_File,Get_File_Date,Close_File,Change_Dir,Get_Dir
EXTSYM romloadskip EXTSYM romloadskip
EXTSYM cfgloadgdir,cfgloadsdir,MMXSupport EXTSYM cfgloadgdir,cfgloadsdir
EXTSYM init18_2hz EXTSYM init18_2hz
EXTSYM OSExit EXTSYM OSExit
%ifdef __LINUX__ %ifdef __LINUX__
@@ -1568,8 +1568,6 @@ NEWSYM DosExit ; Terminate Program
NEWSYM MMXCheck NEWSYM MMXCheck
; Check for cpu that doesn't support CPUID ; Check for cpu that doesn't support CPUID
cmp byte[MMXSupport],0
je near .nommx3
mov edx,cpuidfname mov edx,cpuidfname
call Open_File call Open_File
jc .skipcheck jc .skipcheck
@@ -1589,7 +1587,6 @@ NEWSYM MMXCheck
; MMX support ; MMX support
mov byte[FPUCopy],0 mov byte[FPUCopy],0
mov byte[MMXSupport],0
mov eax,1 mov eax,1
CPUID CPUID
@@ -1601,7 +1598,6 @@ NEWSYM MMXCheck
test edx,1 << 23 test edx,1 << 23
jz .nommx jz .nommx
mov byte[FPUCopy],2 mov byte[FPUCopy],2
mov byte[MMXSupport],1
mov edx,YesMMX mov edx,YesMMX
call PrintStr call PrintStr
.nommx .nommx
@@ -1610,9 +1606,5 @@ NEWSYM MMXCheck
call Delete_File call Delete_File
.nommx2 .nommx2
ret ret
.nommx3
mov byte[FPUCopy],0
mov byte[MMXSupport],0
ret
NEWSYM UIAsmEnd NEWSYM UIAsmEnd