ack/mach/xenix3/libsys/_brk.s

17 lines
217 B
ArmAsm
Raw Normal View History

1990-01-19 17:37:29 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.define __brk
.sect .text
__brk:
mov ax,17
1990-01-22 17:07:11 +00:00
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