1: / C library -- read 2: 3: / nread = read(file, buffer, count); 4: / 5: / nread ==0 means eof; nread == -1 means error 6: 7: .globl _read, cerror 8: 9: _read: 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 read; 0:..; ..