Code:
tmp=%01011111

For I=0 to 7

sr_data=tmp.0[I] ' It should work with I here,
sr_clock=1
sr_clock=0

next I
manual $ 7.6.5 ...