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