Browse Source

* moved the ES segment register initialization earlier in PutPixelX

git-svn-id: trunk@41040 -
nickysn 6 years ago
parent
commit
6cc00c887f
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

@@ -2631,6 +2631,7 @@ const CrtAddress: word = 0;
       jg     @@Done
       jg     @@Done
 
 
 @@ClipDone:
 @@ClipDone:
+      mov es, [SegA000]
       add di, [StartYViewPort]
       add di, [StartYViewPort]
       (* Multiply by 80 start *)
       (* Multiply by 80 start *)
       mov cl, 4
       mov cl, 4
@@ -2654,7 +2655,6 @@ const CrtAddress: word = 0;
       shl ah, cl                ; (* Get Plane Select Value           *)
       shl ah, cl                ; (* Get Plane Select Value           *)
       out dx, ax
       out dx, ax
       (* End selection of plane *)
       (* End selection of plane *)
-      mov es,[SegA000]
       mov ax,[Color]            ; { only lower byte is used. }
       mov ax,[Color]            ; { only lower byte is used. }
       mov es:[di], al
       mov es:[di], al
 @@Done:
 @@Done: