1: /* @(#)write.s 2.2 SCCS id keyword */ 2: / C library -- write 3: 4: / nwritten = write(file, buffer, count); 5: / 6: / nwritten == -1 means error 7: 8: .globl _write 9: .globl cerror 10: 11: _write: 12: mov r5,-(sp) 13: mov sp,r5 14: mov 4(r5),r0 15: mov 8(r5),-(sp) 16: mov 6(r5),-(sp) 17: sys write+200 18: bec 1f 19: cmp (sp)+, (sp)+ 20: jmp cerror 21: 1: 22: cmp (sp)+, (sp)+ 23: mov (sp)+,r5 24: rts pc