Started moving out some ASM video code out of C files
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user