Browse Source

* fixed "nil pointer assignment" error in huge memory model

git-svn-id: trunk@31502 -
nickysn 10 years ago
parent
commit
1264eaf8c6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      rtl/msdos/prt0comn.asm

+ 5 - 0
rtl/msdos/prt0comn.asm

@@ -491,8 +491,13 @@ int_number:
 %ifndef __TINY__
 %ifndef __TINY__
         global FPC_CHECK_NULLAREA
         global FPC_CHECK_NULLAREA
 FPC_CHECK_NULLAREA:
 FPC_CHECK_NULLAREA:
+%ifdef __HUGE__
+        mov ax, DGROUP
+        mov es, ax
+%else
         push ds
         push ds
         pop es
         pop es
+%endif
         xor di, di
         xor di, di
         mov cx, 32
         mov cx, 32
         mov al, 1
         mov al, 1