.title writes ; ; subroutine to put a block to a VMS file ; ; call sequence call writes(rab, buffer, n) ; ; where rab is the integer descriptor from an openf call ; buffer is the buffer containing the record to be put ; n is the number of bytes to put ; rab=4 buf=8 num=12 .psect st_pure_code rel,con,lcl,exe,nowrt,rd,pic,shr,usr,novec,long .entry writes ^m movl @rab(ap),r2 ; rab address in r2 movl buf(ap),rab$l_rbf(r2) ; buffer address in rab movw @num(ap),rab$w_rsz(r2) ; # of bytes to put $write rab=r2 ret .end