Browse Source

* use 'cwd' instead of 'xor dx, dx' in the asm version GetPixel320

git-svn-id: trunk@40969 -
nickysn 6 years ago
parent
commit
300e584936
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/graph/src/msdos/graph.pp

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

@@ -2303,7 +2303,8 @@ End;
     seges  lodsb
     xor    ah, ah
 {$ifdef FPC_GRAPH_SUPPORTS_TRUECOLOR}
-    xor    dx, dx
+    { 1 byte shorter than 'xor dx, dx'; will always set dx to 0, because sign(ah)=0 }
+    cwd
 {$endif FPC_GRAPH_SUPPORTS_TRUECOLOR}
   end;
 {$endif asmgraph}