瀏覽代碼

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

git-svn-id: trunk@40900 -

nickysn 6 年之前
父節點
當前提交
24f0625ee8
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      packages/graph/src/msdos/graph.pp

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

@@ -1942,7 +1942,13 @@ End;
     end;
 { note: still needs xor/or/and/notput support !!!!! (JM) }
     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}
       { enable the set / reset function and load the color }
       mov  dx, 3ceh
       mov  ax, 0f01h