|
@@ -147,15 +147,14 @@ cpu_detect_done:
|
|
; allocate max heap
|
|
; allocate max heap
|
|
; TODO: also support user specified heap size
|
|
; TODO: also support user specified heap size
|
|
; try to resize our main DOS memory block until the end of the data segment
|
|
; try to resize our main DOS memory block until the end of the data segment
|
|
|
|
+ mov cx, word [dos_psp]
|
|
%ifdef __TINY__
|
|
%ifdef __TINY__
|
|
- mov cx, cs
|
|
|
|
- mov dx, 1000h ; 64kb in paragraphs
|
|
|
|
|
|
+ mov dx, cs
|
|
%else
|
|
%else
|
|
- mov cx, word [dos_psp]
|
|
|
|
mov dx, dgroup
|
|
mov dx, dgroup
|
|
|
|
+%endif
|
|
sub dx, cx ; dx = (ds - psp) in paragraphs
|
|
sub dx, cx ; dx = (ds - psp) in paragraphs
|
|
add dx, 1000h ; 64kb in paragraphs
|
|
add dx, 1000h ; 64kb in paragraphs
|
|
-%endif
|
|
|
|
|
|
|
|
; get our MCB size in paragraphs
|
|
; get our MCB size in paragraphs
|
|
dec cx
|
|
dec cx
|