Started moving out some ASM video code out of C files

This commit is contained in:
pagefault
2003-02-23 03:27:58 +00:00
parent 84d38d7cd1
commit c8e54760f2
4 changed files with 53 additions and 66 deletions

View File

@@ -23,7 +23,7 @@ ALIGN 32
EXTSYM SurfaceX,SurfaceY
EXTSYM ScreenPtr,SurfBufD
EXTSYM pitch, MMXSupport
EXTSYM pitch,MMXSupport
SECTION .text
@@ -45,6 +45,28 @@ NEWSYM ClearWin16
popad
ret
NEWSYM ClearWin32
push es
mov ax,ds
mov es,ax
xor eax,eax
mov edi, [SurfBufD]
xor ebx,ebx
.Blank3:
xor eax,eax
mov ecx, [SurfaceX]
rep stosd
add edi, [pitch]
sub edi, [SurfaceX]
sub edi, [SurfaceX]
sub edi, [SurfaceX]
sub edi, [SurfaceX]
add ebx,1
cmp ebx, [SurfaceY]
jne .Blank3
pop es
ret
NEWSYM DrawWin256x224x16
pushad
mov esi, [ScreenPtr]