Browse Source

* huge model fixes in asm GetPixelX

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

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

@@ -2492,6 +2492,13 @@ const CrtAddress: word = 0;
     X := X + StartXViewPort;
     X := X + StartXViewPort;
     Y := Y + StartYViewPort;
     Y := Y + StartYViewPort;
     asm
     asm
+{$ifdef FPC_MM_HUGE}
+      mov ax, SEG SegA000
+      mov es, ax
+      mov es, es:[SegA000]
+{$else FPC_MM_HUGE}
+      mov es, [SegA000]
+{$endif FPC_MM_HUGE}
       mov di,[Y]                   ; (* DI = Y coordinate                 *)
       mov di,[Y]                   ; (* DI = Y coordinate                 *)
       (* Multiply by 80 start *)
       (* Multiply by 80 start *)
       mov bx, di
       mov bx, di
@@ -2513,7 +2520,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 al, ES:[DI]
       mov al, ES:[DI]
       xor ah, ah
       xor ah, ah
       mov @Result, ax
       mov @Result, ax