Subject: Any tips?
Date: 18 Jul 1998 00:34:22 GMT
From: "Derek Lewis"
Organization: Uniserve
Newsgroups: comp.lang.pascal.borland
This is the putpixel routien I've been using for a while. I was just
wondering if anyone knew of any ways to speed it up at all (even just one
cycle):
I'm using this routien in Protected mode, and FS is preloaded with the
selector for my offscreen buffer, which is where putpixel puts it's pixels.
I've got it converted to inline code so there's no time wasted calling it
as a procedure.
It's called as follows: putpixel(x,y,color : byte)
pop ax
pop di
pop cx
mov bx, di
shl bx, 8
shl di, 6
add di, bx
add di, cx
mov fs:[di], al
               (
geocities.com/~franzglaser)