On Thu, 19 Feb 1998 23:08:15 -0800 Andrew Warren writes: >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. > Although you should be able to point FSR at the port, then do a BSF or BCF on INDF, right? Harold _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]