James Tilley wrote: > I am trying to set a specific bit on portb, and I wanted to do this > by using a variable and the bsf function. Problem is, the bsf > function evaluates the variable as the literal file register > address. Is there a way to do this aside from writing to the whole > of portb? Like some compiler directive to evaluate the contents of > the file register instead of its address? No; the BSF and BCF instructions take two literal operands. -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499