Browse Source

* on i8086-msdos, in the compact and large memory models, set the end of heap to
be the end of the current program's MCB, instead of 16 bytes earlier

git-svn-id: trunk@28442 -

nickysn 11 years ago
parent
commit
7958466ef9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rtl/msdos/prt0comn.asm

+ 2 - 1
rtl/msdos/prt0comn.asm

@@ -239,7 +239,8 @@ skip_mem_realloc:
         mov es, cx
         mov bx, word [es:3]
         add bx, cx
-        ; __nearheap_end := end_of_dos_memory_block - 16 bytes
+        inc bx
+        ; __nearheap_end := end_of_dos_memory_block
         mov word [__nearheap_end], 0
         mov word [__nearheap_end + 2], bx
 %endif