Browse Source

* use xchg ax,cx instead of mov in GetPixel16

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

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

@@ -1702,7 +1702,7 @@ end;
     add   si, di           { SI=correct offset into video segment }
     add   si, di           { SI=correct offset into video segment }
     add   si, [VideoOfs]   { Point to correct page offset... }
     add   si, [VideoOfs]   { Point to correct page offset... }
 
 
-    mov   cx, ax
+    xchg  ax, cx           { 1 byte shorter than 'mov cx, ax' }
     and   cl,7
     and   cl,7
 
 
     mov   bh, 080h
     mov   bh, 080h