_wait X
1: / pid = wait(status); 2: / int *status; 3: 4: .globl _wait 5: .globl cerror 6: 7: _wait: 8: mov r5,-(sp) 9: mov sp,r5 10: sys wait 11: bec 1f 12: jmp cerror 13: 1: 14: tst 4(r5) 15: beq 1f 16: mov r1,*4(r5) 17: 1: 18: mov (sp)+,r5 19: rts pc