From d04f801ee287a1120554cc646ce948212f5248da Mon Sep 17 00:00:00 2001 From: nickysn Date: Thu, 24 Jan 2019 15:25:34 +0000 Subject: [PATCH] * swapped ax and cx in PutPixelX git-svn-id: trunk@41036 - --- 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 7af37ebc1f..9d6d4d05bb 100644 --- a/packages/graph/src/msdos/graph.pp +++ b/packages/graph/src/msdos/graph.pp @@ -2637,9 +2637,9 @@ const CrtAddress: word = 0; shl di, 1 add di, bx ; (* Multiply Value by 80 *) (* End multiply by 80 *) - mov cx, [X] - add cx, [StartXViewPort] - mov ax, cx + mov ax, [X] + add ax, [StartXViewPort] + mov cx, ax {DI = Y * LINESIZE, BX = X, coordinates admissible} shr ax, 1 shr ax, 1