mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 20:39:16 +02:00
* moved the loading of X and Y coordinates to the beginning of the asm block in PutPixelX
git-svn-id: trunk@41037 -
This commit is contained in:
parent
d04f801ee2
commit
a55ee3b687
@ -2627,8 +2627,9 @@ const CrtAddress: word = 0;
|
|||||||
push dx
|
push dx
|
||||||
push es
|
push es
|
||||||
push di
|
push di
|
||||||
mov di,[Y] ; (* DI = Y coordinate *)
|
mov ax, [X]
|
||||||
add di,[StartYViewPort]
|
mov di, [Y] ; (* DI = Y coordinate *)
|
||||||
|
add di, [StartYViewPort]
|
||||||
(* Multiply by 80 start *)
|
(* Multiply by 80 start *)
|
||||||
mov cl, 4
|
mov cl, 4
|
||||||
shl di, cl
|
shl di, cl
|
||||||
@ -2637,7 +2638,6 @@ const CrtAddress: word = 0;
|
|||||||
shl di, 1
|
shl di, 1
|
||||||
add di, bx ; (* Multiply Value by 80 *)
|
add di, bx ; (* Multiply Value by 80 *)
|
||||||
(* End multiply by 80 *)
|
(* End multiply by 80 *)
|
||||||
mov ax, [X]
|
|
||||||
add ax, [StartXViewPort]
|
add ax, [StartXViewPort]
|
||||||
mov cx, ax
|
mov cx, ax
|
||||||
{DI = Y * LINESIZE, BX = X, coordinates admissible}
|
{DI = Y * LINESIZE, BX = X, coordinates admissible}
|
||||||
|
Loading…
Reference in New Issue
Block a user