Browse Source

* use different registers to avoid a mov instruction in PutPixel320

git-svn-id: trunk@41111 -
nickysn 6 years ago
parent
commit
e26a7f7753
1 changed files with 3 additions and 4 deletions
  1. 3 4
      packages/graph/src/go32v2/graph.pp

+ 3 - 4
packages/graph/src/go32v2/graph.pp

@@ -2292,7 +2292,6 @@ End;
       push edi
       movsx  edi, ax
       movsx  ebx, dx
-      mov    al, cl
       cmp    clippixels, 0
       je     @putpix320noclip
       test   edi, edi
@@ -2304,13 +2303,13 @@ End;
       cmp    bx, ViewHeight
       jg     @putpix320done
 @putpix320noclip:
-      movsx  ecx, StartYViewPort
+      movsx  eax, StartYViewPort
       movsx  edx, StartXViewPort
-      add    ebx, ecx
+      add    ebx, eax
       add    edi, edx
       shl    ebx, 6
       add    edi, ebx
-      mov    fs:[edi+ebx*4+$a0000], al
+      mov    fs:[edi+ebx*4+$a0000], cl
 @putpix320done:
       pop edi
       pop ebx