On Mon, Oct 31, 2011 at 11:50, KPL wrote: > hmmmm > > checking thru 16f88 library, noticed this stuff > > var volatile byte =A0 STATUS =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at { = 0x3,0x83,0x103,0x183 } > var volatile bit =A0 =A0STATUS_IRP =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at STAT= US : 7 > var volatile bit*2 =A0STATUS_RP =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 at STATUS= : 5 > var volatile bit =A0 =A0STATUS_NTO =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at STAT= US : 4 > var volatile bit =A0 =A0STATUS_NPD =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at STAT= US : 3 > var volatile bit =A0 =A0STATUS_Z =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at ST= ATUS : 2 > var volatile bit =A0 =A0STATUS_DC =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 at STAT= US : 1 > var volatile bit =A0 =A0STATUS_C =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0at ST= ATUS : 0 > > so probably this could work : > portb : BitNum =3D 1 > (where BitNum is loop variable) > > Will try this tonight at home. Unfortunately this does not work. This must be allowed just for declaring variables, not accessing them. --=20 KPL --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .