/
/ PDP-11 C.
/ Standard Library.
/
/ Put string.
/
 
	.globl	puts
	.globl	fputs
 
/
/ puts(s);
/ fputs(s, ioptr);
/ char *s;
/ FILE *ioptr;
/

puts:
	jsr	r0,_save
	mov	stdout,r4
	br	0f
 
fputs:
	jsr	r0,_save
	mov	14(r5),r4
	call	_ckiov
0:
	mov	12(r5),r3
0:
	movb	(r3)+,r0
	beq	0f
	call	_putc
	br	0b
0:
	mov	$12,r0
	call	_putc
	jmp	_ret
