fixed
This commit is contained in:
parent
87e020db8a
commit
105c7e6009
|
@ -48,7 +48,14 @@ begtext:
|
||||||
shr bx,cl
|
shr bx,cl
|
||||||
shl bx,cl
|
shl bx,cl
|
||||||
call grow
|
call grow
|
||||||
|
xor cx,cx
|
||||||
|
push cx
|
||||||
|
call _sbrk
|
||||||
|
mov (.limhp),ax
|
||||||
|
mov (.reghp),ax ! on Xenix, heap begins above stack!
|
||||||
|
pop ax
|
||||||
call _m_a_i_n
|
call _m_a_i_n
|
||||||
|
push ax
|
||||||
call __exit
|
call __exit
|
||||||
.sect .data
|
.sect .data
|
||||||
begdata:
|
begdata:
|
||||||
|
|
|
@ -6,6 +6,6 @@ wait(p)
|
||||||
long l = _wait();
|
long l = _wait();
|
||||||
|
|
||||||
if (l == -1) return -1;
|
if (l == -1) return -1;
|
||||||
if (*p) *p = (l >> 16);
|
if (p) *p = (l >> 16);
|
||||||
return (int) l;
|
return (int) l;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue