1: / error = sbrk(incr); 2: 3: .globl _sbrk, _brk 4: .globl _end, cerror 5: 6: _sbrk: 7: mov r5,-(sp) 8: mov sp,r5 9: mov 4(r5),0f 10: beq 1f 11: add nd,0f 12: sys 0; 9f 13: bec 1f 14: jmp cerror 15: 1: 16: mov nd,r0 17: add 4(r5),nd 18: mov (sp)+,r5 19: rts pc 20: 21: / error = brk(addr) 22: 23: _brk: 24: mov r5,-(sp) 25: mov sp,r5 26: mov 4(r5),0f 27: sys 0; 9f 28: bec 1f 29: jmp cerror 30: 1: 31: mov 4(r5),nd 32: clr r0 33: mov (sp)+,r5 34: rts pc 35: 36: .data 37: 9: 38: sys break; 0:.. 39: nd: _end