From 81bd17cb9603116399d08f65ff75428d3bc9b09a Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Thu, 20 Sep 2001 02:27:33 +0000 Subject: [PATCH] Added pipelining code --- zsnes/src/win/winlink.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 231a7f62..e2f1b253 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -1998,9 +1998,6 @@ void clearwin() { case 16: _asm { - push es - mov ax,ds - mov es,ax xor eax,eax mov edi,SurfBufD xor ebx,ebx @@ -2008,20 +2005,17 @@ void clearwin() xor eax,eax mov ecx,SurfaceX rep stosw + mov SurfaceX,edx add edi,Temp1 - sub edi,SurfaceX - sub edi,SurfaceX + shl edx,1 add ebx,1 + sub edx,edi cmp ebx,SurfaceY jne Blank2 - pop es // BUGFIX } break; case 32: _asm { - push es - mov ax,ds - mov es,ax xor eax,eax mov edi,SurfBufD xor ebx,ebx @@ -2037,7 +2031,6 @@ void clearwin() add ebx,1 cmp ebx,SurfaceY jne Blank3 - pop es // BUGFIX } break; }