浏览代码

* yet another mov eliminated by using different registers in GetPixel16

git-svn-id: trunk@41000 -
nickysn 7 年之前
父节点
当前提交
16c6090f30
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      packages/graph/src/msdos/graph.pp

+ 2 - 3
packages/graph/src/msdos/graph.pp

@@ -1618,14 +1618,13 @@ end;
         { setup the bit mask register }
         mov  al, 8
         { load the bitmask register }
-        mov  bx, [X]
-        mov  cl, bl
+        mov  si, [X]
+        mov  cx, si
         and  cl, 07h
         mov  ah, 80h
         shr  ah, cl
         out  dx, ax
         { get the x index and divide by 8 for 16-color }
-        mov  si, bx
         mov  cl, 3
         shr  si, cl
         { determine the address }