Jan-Erik Soderholm wrote: > > David Duffy wrote: > >> Does everyone else write "bsf eecon1,rd" where I'd write "bsf rd"? > > If I'd do *anything* about that, I'd probably do : > > macro enable_ee_read > bsf eecon1, rd > endm > > and then : > > enable_ee_read > > in the actual code. But then you potentially have a bank selection problem. You could define your macro as: macro enable_ee_read banksel eecon1 bsf eecon1, rd endm But then you'd need be aware that, whenever you use 'enable_ee_read', you're potentially changing the bank selection. That's not necessarily a bad thing, but you'd have to keep it in mind. David Meiklejohn www.gooligum.com.au -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist