瀏覽代碼

* 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 年之前
父節點
當前提交
7958466ef9
共有 1 個文件被更改,包括 2 次插入1 次删除
  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