mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 17:47:56 +02:00
* optimizations in PutPixel16 that remove the slow 'mul' instruction
git-svn-id: trunk@40998 -
This commit is contained in:
parent
36c349696e
commit
83766c7462
@ -1629,11 +1629,14 @@ end;
|
|||||||
mov cl, 3
|
mov cl, 3
|
||||||
shr si, cl
|
shr si, cl
|
||||||
{ determine the address }
|
{ determine the address }
|
||||||
mov ax,80
|
|
||||||
mov bx,[Y]
|
mov bx,[Y]
|
||||||
mul bx
|
inc cx { CL=4 }
|
||||||
add ax,si
|
shl bx, cl
|
||||||
mov di,ax
|
mov di, bx
|
||||||
|
shl di, 1
|
||||||
|
shl di, 1
|
||||||
|
add di, bx
|
||||||
|
add di, si
|
||||||
add di, [VideoOfs]
|
add di, [VideoOfs]
|
||||||
{ send the data through the display memory through set/reset }
|
{ send the data through the display memory through set/reset }
|
||||||
mov bl,es:[di]
|
mov bl,es:[di]
|
||||||
|
Loading…
Reference in New Issue
Block a user