Mail Archives: djgpp/1997/11/14/04:16:24
From: | "STEVEN S. FALLS" <ELN/broadview AT earthlink DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | does anyone have anyideas on how to optimize this code
|
Date: | Fri, 14 Nov 1997 09:19:30 -0800
|
Organization: | EarthLink Network, Inc.
|
Lines: | 37
|
Message-ID: | <346C8822.D3725C8E@earthlink.net>
|
Reply-To: | ELN/broadview AT earthlink DOT net
|
NNTP-Posting-Host: | 153.37.26.94
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi, my name is Ardy and I have a pixelplotting ruteen that needs to be
optmized. This is what I got, please help!
thanks,
-Ardy
This was writen in NASM:
BITS 32
GLOBAL _SetPix__Fiic
GLOBAL _SetPixRam__Fiic
GLOBAL _GetPix__Fii
GLOBAL _GetPixRam__Fii
GLOBAL _ClearPg__Fv
GLOBAL _ClearPgRam__Fv
GLOBAL _CopyPg__Fv
GLOBAL _Line__Fiiiic
EXTERN __go32_info_block
EXTERN _YTbl
EXTERN _RamPg
SECTION .text
_SetPix__Fiic:
push ebp
mov edx,[_YTbl]
mov ebx,[esp+12]
mov ebx,[edx+ebx*4]
add ebx,[esp+8]
mov al,[esp+16]
mov fs,[__go32_info_block+26]
add ebx,0A0000h
mov [fs:ebx],al
pop ebp
ret
_SetPixRam__Fiic:
- Raw text -