Browse Source

* use the si register instead of di in the asm version of GetPixel320

git-svn-id: trunk@40967 -
nickysn 6 years ago
parent
commit
1b4fcabc1d
1 changed files with 5 additions and 5 deletions
  1. 5 5
      packages/graph/src/msdos/graph.pp

+ 5 - 5
packages/graph/src/msdos/graph.pp

@@ -2293,14 +2293,14 @@ End;
 {$endif FPC_MM_HUGE}
 {$endif FPC_MM_HUGE}
     mov    ax, [Y]
     mov    ax, [Y]
     add    ax, [StartYViewPort]
     add    ax, [StartYViewPort]
-    mov    di, [X]
-    add    di, [StartXViewPort]
+    mov    si, [X]
+    add    si, [StartXViewPort]
     xchg   ah, al            { The value of Y must be in AH }
     xchg   ah, al            { The value of Y must be in AH }
-    add    di, ax
+    add    si, ax
     shr    ax, 1
     shr    ax, 1
     shr    ax, 1
     shr    ax, 1
-    add    di, ax
-    mov    al, es:[di]
+    add    si, ax
+    mov    al, es:[si]
     xor    ah, ah
     xor    ah, ah
 {$ifdef FPC_GRAPH_SUPPORTS_TRUECOLOR}
 {$ifdef FPC_GRAPH_SUPPORTS_TRUECOLOR}
     xor    dx, dx
     xor    dx, dx