ack/mach/xenix3/libsys/_brk.s
1990-01-22 17:07:11 +00:00

17 lines
217 B
ArmAsm

.sect .text; .sect .rom; .sect .data; .sect .bss
.define __brk
.sect .text
__brk:
mov ax,17
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