From a55ee3b6876587bb0cd8317581266f183a303698 Mon Sep 17 00:00:00 2001 From: nickysn Date: Thu, 24 Jan 2019 15:27:05 +0000 Subject: [PATCH] * moved the loading of X and Y coordinates to the beginning of the asm block in PutPixelX git-svn-id: trunk@41037 - --- packages/graph/src/msdos/graph.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/graph/src/msdos/graph.pp b/packages/graph/src/msdos/graph.pp index 9d6d4d05bb..47489b6f1d 100644 --- a/packages/graph/src/msdos/graph.pp +++ b/packages/graph/src/msdos/graph.pp @@ -2627,8 +2627,9 @@ const CrtAddress: word = 0; push dx push es push di - mov di,[Y] ; (* DI = Y coordinate *) - add di,[StartYViewPort] + mov ax, [X] + mov di, [Y] ; (* DI = Y coordinate *) + add di, [StartYViewPort] (* Multiply by 80 start *) mov cl, 4 shl di, cl @@ -2637,7 +2638,6 @@ const CrtAddress: word = 0; shl di, 1 add di, bx ; (* Multiply Value by 80 *) (* End multiply by 80 *) - mov ax, [X] add ax, [StartXViewPort] mov cx, ax {DI = Y * LINESIZE, BX = X, coordinates admissible}