Thanks for the reply. This, along with the previous reply, make more sense to me no. Should have seen that one ... ;) Oh, and you were correct about what I was _trying_ to do. Thanks again, ATM --- Olin Lathrop wrote: > I think you were trying to create the variable > DISPNUM, then later use its > value to access a specific bit. The BSF and BCF > instructions only work on > fixed bit numbers. The bit number is coded into the > instruction. There is > no single instruction like BSF to access a bit > selected at run time. You > have to do that by creating a mask for the bit and > using AND, OR, or XOR, > depending on what you want to do. > > > ******************************************************************** > Olin Lathrop, embedded systems consultant in > Littleton Massachusetts > (978) 742-9014, olin@embedinc.com, > http://www.embedinc.com > > -- > http://www.piclist.com#nomail Going offline? Don't > AutoReply us! > email listserv@mitvma.mit.edu with SET PICList > DIGEST in the body > > __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body