1990-01-19 16:22:03 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
|
|
|
.sect .text
|
|
|
|
break = 17
|
|
|
|
.define __sbrk
|
|
|
|
.define __brk
|
|
|
|
|
|
|
|
__sbrk:
|
|
|
|
.data2 0x0000
|
1990-01-22 13:58:54 +00:00
|
|
|
movl .limhp,r0
|
1990-01-19 16:22:03 +00:00
|
|
|
tstl 4(ap)
|
|
|
|
jeql 3f
|
|
|
|
addl3 r0,4(ap),-(sp)
|
|
|
|
bcs 1f
|
|
|
|
pushl $1
|
|
|
|
movl ap,r3
|
|
|
|
movl sp,ap
|
|
|
|
chmk $break
|
|
|
|
bcc 2f
|
|
|
|
1:
|
|
|
|
jmp cerror
|
|
|
|
2:
|
1990-01-22 13:58:54 +00:00
|
|
|
movl .limhp,r0
|
|
|
|
addl2 4(r3),.limhp
|
1990-01-19 16:22:03 +00:00
|
|
|
3:
|
|
|
|
ret
|
|
|
|
|
|
|
|
__brk:
|
|
|
|
.data2 0x0000
|
|
|
|
chmk $break
|
|
|
|
bcc 1f
|
|
|
|
jmp cerror
|
|
|
|
1:
|
1990-01-22 13:58:54 +00:00
|
|
|
movl 4(ap),.limhp
|
1990-01-19 16:22:03 +00:00
|
|
|
clrl r0
|
|
|
|
ret
|