piclist 2008\07\08\075035a >
Thread: Code packing
www.piclist.com/techref/microchip/devices.htm?key=pic
face picon face BY : email (remove spam text)(Olin Lathrop)



Jan-Erik Soderholm wrote:
> Olins mathod is OK for one-time initial setup, but for
> code that is executed in the main code, BCF/BSF is often
> better/easier/clearer, say for clearing/setting some xxIF
> or xxIE flags.

I agree, and I use BSF/BCF for that.  I was specifically trying to show how
I set up a register that contains various separate fields.  BSF/BCF is best
when you need to manipulate a single bit and there are other unrelated bits
in the same register.


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.
<01bd01c8e0f1$1a9cc140$0300a8c0@main> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Code packing

month overview.

new search...