MMX options save fix

This commit is contained in:
pagefault
2001-08-01 00:16:11 +00:00
parent a1d51348fc
commit b6c674abd8
2 changed files with 5 additions and 3 deletions

View File

@@ -1797,7 +1797,7 @@ NEWSYM getcfg
cmp byte[.stringb],'1' cmp byte[.stringb],'1'
jne .nofpu jne .nofpu
mov byte[FPUCopy],0 mov byte[FPUCopy],0
mov byte[cfgcopymethod],1 mov byte[cfgcopymethod],0
jmp .nocopymethod jmp .nocopymethod
.nofpu .nofpu
cmp byte[.stringb],'2' cmp byte[.stringb],'2'

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 EXTSYM cfgloadgdir,cfgloadsdir,cfgcopymethod
EXTSYM init18_2hz EXTSYM init18_2hz
EXTSYM OSExit EXTSYM OSExit
%ifdef __LINUX__ %ifdef __LINUX__
@@ -1569,7 +1569,7 @@ 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[FPUCopy],3 cmp byte[FPUCopy],3
jne .nommx2 jne near .nommx2
mov edx,cpuidfname mov edx,cpuidfname
call Open_File call Open_File
jc .skipcheck jc .skipcheck
@@ -1589,6 +1589,7 @@ NEWSYM MMXCheck
; MMX support ; MMX support
mov byte[FPUCopy],0 mov byte[FPUCopy],0
mov byte[cfgcopymethod],0
mov eax,1 mov eax,1
CPUID CPUID
@@ -1600,6 +1601,7 @@ NEWSYM MMXCheck
test edx,1 << 23 test edx,1 << 23
jz .nommx jz .nommx
mov byte[FPUCopy],2 mov byte[FPUCopy],2
mov byte[cfgcopymethod],2
mov edx,YesMMX mov edx,YesMMX
call PrintStr call PrintStr
.nommx .nommx