Browse Source

* use huge memory model compatible initialization of es=SegA000 in the asm
version of DirectPutPixel16

git-svn-id: trunk@40900 -

nickysn 6 years ago
parent
commit
24f0625ee8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/graph/src/msdos/graph.pp

+ 6 - 0
packages/graph/src/msdos/graph.pp

@@ -1942,7 +1942,13 @@ End;
     end;
     end;
 { note: still needs xor/or/and/notput support !!!!! (JM) }
 { note: still needs xor/or/and/notput support !!!!! (JM) }
     asm
     asm
+{$ifdef FPC_MM_HUGE}
+      mov  ax, SEG SegA000
+      mov  es, ax
+      mov  es, es:[SegA000]
+{$else FPC_MM_HUGE}
       mov  es, [SegA000]
       mov  es, [SegA000]
+{$endif FPC_MM_HUGE}
       { enable the set / reset function and load the color }
       { enable the set / reset function and load the color }
       mov  dx, 3ceh
       mov  dx, 3ceh
       mov  ax, 0f01h
       mov  ax, 0f01h