/ routine to copy the contents of one string
/ on return, r1 points to the new string and should
/ be saved. r0 is preserved.
1: mov a(r1),w(r1) /rewind w pointer
sys seek;0:.. ;0 /set input pointer
mov $512.,r3 /# output this time
sub r3,r2 /# left to output
/ fix up read ptr of new string