On Mon, 31 Mar 2003 17:04:46 -0800, Andrew Warren wrote: Igor Pokorny wrote: > >> much better would be when a bit symbol represents a bit in certain >> byte as is usual in some C compilers ... writing .... >> BSF RP0 ..... should be clear for anybody > > I missed the start of this thread, so perhaps this has already > been covered... But I assume that everyone who's using MPASM > already does: > > #define RP0 STATUS,5 // or whatever > > Once defined, RP0 can then be set just as you suggested, with: > > BSF RP0 > I do something similar. To keep compatability with Microchip's mnemonics, though, I define my own _RP0 etc to include the register and bit number. In my code, "RP0" is always just the bit number while "_RP0" has both the register and the bit number. Regards, Bob -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body