Renamed MMX support variable

This commit is contained in:
pagefault
2001-09-20 18:08:10 +00:00
parent 708e453b3d
commit 85b8810b5f
24 changed files with 96 additions and 173 deletions

View File

@@ -17,7 +17,7 @@
%include "macros.mac"
EXTSYM vesa2selec,vidbuffer,GUIOn,FPUCopy,resolutn,En2xSaI,antienab,scanlines
EXTSYM vesa2selec,vidbuffer,GUIOn,MMXSupport,resolutn,En2xSaI,antienab,scanlines
EXTSYM hirestiledat,res512switch,curblank,spritetablea
EXTSYM lineleft,_2xSaILineW,_2xSaISuperEagleLineW, _2xSaISuper2xSaILineW
EXTSYM newengen,cfield,HalfTrans
@@ -60,7 +60,7 @@ NEWSYM copy640x480x16bwin
cmp byte[GUIOn2],1
je .nointerp
.yi
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
jne .nommx
cmp byte[En2xSaI],0
jne near Process2xSaIwin
@@ -91,7 +91,7 @@ NEWSYM copy640x480x16bwin
cmp byte[ebx],1
ja near .yeshiresng
.ignorehr
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je near .mmx
.a
mov ax,[esi]
@@ -122,7 +122,7 @@ NEWSYM copy640x480x16bwin
jnz near .loopa
pop es
xor byte[res512switch],1
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je .mmx2
ret
.mmx2
@@ -236,7 +236,7 @@ NEWSYM copy640x480x16bwin
call HighResProc
jmp .returnb
.ignorehrb
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je near .mmxsl
.ab
mov ax,[esi]
@@ -262,7 +262,7 @@ NEWSYM copy640x480x16bwin
jnz .loopab
pop es
xor byte[res512switch],1
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je near .mmx2
ret
.yeshiresb
@@ -315,7 +315,7 @@ NEWSYM copy640x480x16bwin
call HighResProc
jmp .returnbh
.ignorehrbh
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je near .mmxslh
mov ecx,256
.abh
@@ -348,7 +348,7 @@ NEWSYM copy640x480x16bwin
dec dl
jnz near .loopabh
pop es
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je near .mmx2
ret
.mmxslh
@@ -411,7 +411,7 @@ NEWSYM copy640x480x16bwin
call HighResProc
jmp .returnbh2
.ignorehrbh2
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je near .mmxslh2
mov ecx,256
.abh2
@@ -448,7 +448,7 @@ NEWSYM copy640x480x16bwin
dec byte[lineleft]
jnz near .loopabh2
pop es
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je near .mmx2
ret
.mmxslh2
@@ -530,7 +530,7 @@ HighResProc:
.nofielde
ret
.hiresmode7
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je .yeshiresngmmxmode7
.a2
mov ax,[esi]
@@ -589,7 +589,7 @@ HighResProc:
sub esi,75036*4
ret
.hires
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je near .yeshiresngmmx
.bng
mov eax,[esi+75036*4-2]
@@ -1249,7 +1249,7 @@ MMXInterpolwin:
ret
NEWSYM interpolate640x480x16bwin
cmp byte[FPUCopy],2
cmp byte[MMXSupport],1
je near MMXInterpolwin
mov ebx,hirestiledat+1

View File

@@ -32,7 +32,6 @@ EXTSYM allocptr
extsym putchar
EXTSYM getch
EXTSYM exit
EXTSYM FPUCopy
EXTSYM ZOpenFile,ZOpenMode,CurrentHandle,ZFileSeek,ZOpenFileName,ZFileSeekMode
EXTSYM ZFileSeekPos,ZFileSeekHandle
EXTSYM ZFileWriteHandle,ZFileWriteSize,ZFileWriteBlock,ZFileWrite

View File

@@ -1842,7 +1842,7 @@ void CheckTimers(void)
}
}
extern "C" BYTE FPUCopy;
extern unsigned char MMXSupport;
void UpdateVFrame(void)
{
@@ -1892,7 +1892,7 @@ void UpdateVFrame(void)
int buffer_ptr = (int)&Buffer[0];
if (T36HZEnabled == 1)
if (FPUCopy == 2)
if (MMXSupport == 1)
_asm
{
mov edi,buffer_ptr
@@ -1920,7 +1920,7 @@ _blank_top:
jne _blank_top
}
else
if (FPUCopy == 2)
if (MMXSupport == 1)
_asm
{
mov esi,DSPBuffer1
@@ -1979,7 +1979,7 @@ extern DWORD AddEndBytes;
extern DWORD NumBytesPerLine;
extern unsigned char * WinVidMemStart;
extern void copy640x480x16bwin(void);
extern unsigned char FPUCopy;
extern unsigned char MMXSupport;
extern unsigned char NGNoTransp;
extern unsigned char newengen;
@@ -2080,7 +2080,7 @@ void drawscreenwin(void)
switch (BitDepth)
{
case 16:
if (FPUCopy == 2) {
if (MMXSupport == 1) {
_asm {
push es
mov ax,ds
@@ -2208,7 +2208,7 @@ void drawscreenwin(void)
switch (BitDepth)
{
case 16:
if (FPUCopy == 2) {
if (MMXSupport == 1) {
_asm {
push es
mov ax,ds

View File

@@ -32,7 +32,7 @@ extern void displayparams(void);
extern void makeextension(void);
extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
FPUCopy, Force8b, ForcePal, GUIClick, MouseDis,
MMXSupport, Force8b, ForcePal, GUIClick, MouseDis,
MusicRelVol, ScreenScale, SoundCompD, SoundQuality,
StereoSound, V8Mode, antienab, cvidmode, debugdisble,
debugger, enterpress, finterleave, frameskip,
@@ -483,12 +483,12 @@ int pccmdline(void)
{
if(nn == 'm')
{
FPUCopy=2;
MMXSupport=1;
pp++;
}
else
{
FPUCopy=0;
MMXSupport=0;
}
break;
}