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

Defined functions

_write declared in line 8; defined in line 11; used 1 times
  • in line 8
Last modified: 1982-10-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 598
Valid CSS Valid XHTML 1.0 Strict