corrected

This commit is contained in:
ceriel 1990-01-22 17:07:11 +00:00
parent 0710269e32
commit 7cb9955f82
4 changed files with 18 additions and 21 deletions

View file

@ -3,4 +3,14 @@
.sect .text .sect .text
__brk: __brk:
mov ax,17 mov ax,17
jmp sysal push bp
mov bp,sp
mov bx,4(bp)
call syscal
mov dx,bx
pop bp
jb cerror
mov bx,sp
mov dx,2(bx)
mov (.limhp),dx
ret

View file

@ -13,6 +13,11 @@ __sbrk:
push ax push ax
call __brkctl call __brkctl
add sp,8 add sp,8
cmp ax,-1
je 1f
1:
mov dx,4(bp)
add (.limhp),dx
pop bp pop bp
ret ret

View file

@ -2,5 +2,4 @@
.define _brk .define _brk
.sect .text .sect .text
_brk: _brk:
mov ax,17 jmp __brk
jmp sysal

View file

@ -2,21 +2,4 @@
.define _sbrk .define _sbrk
.sect .text .sect .text
_sbrk: _sbrk:
push bp jmp __sbrk
mov bp,sp
push ds
mov ax,4(bp)
cwd
push dx
push ax
mov ax,1
push ax
call __brkctl
add sp,8
pop bp
ret
__brkctl:
mov ax,4904
jmp sysal