> > But why doesn't this operation work? > bsf lastState_out1,cnt2 > cnt2 always have the value 0-7. lastState_out1 always gets 0x01. I also > tried to swap the bits but it's still the same. > Sorry for spamming the PIC-list but I'll answer this question myself.. :) Atlest I think the answer is that it uses the address of cnt2 instead of the value. Anyone know why and how to use the value instead? It's good that you can write programs in more than one way :) ... so I solved this problem with rrf instead... /Andreas -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body