ack/mach/xenix3/libsys/_sbrk.s

28 lines
295 B
ArmAsm
Raw Normal View History

1990-01-19 17:37:29 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.define __sbrk
.sect .text
__sbrk:
push bp
mov bp,sp
push ds
mov ax,4(bp)
cwd
push dx
push ax
mov ax,1
push ax
call __brkctl
add sp,8
1990-01-22 17:07:11 +00:00
cmp ax,-1
je 1f
1:
mov dx,4(bp)
add (.limhp),dx
1990-01-19 17:37:29 +00:00
pop bp
ret
__brkctl:
mov ax,4904
jmp sysal