Soweit ich weiß, akzeptiert er die Pin-# auch durch variable

for ix = 0 to 7
portb.ix = 1
next