Sabachka, Instead of this: #define CLK PORTA, 1 #define DQ PORTA, 0 I would use: #define PORTDS PORTA #define CLK PORTA, 1 #define DQ PORTA, 0 ... bsf PORTDS, DQ This is easy to read and understand but when you assemble the file it translates to: bsf PORTA, 0 I hope that this helps. Andrew ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag ---- On , Sabachka (sabachka-piclist@ODDMAGIC.NET) wrote: > On Wed, Aug 13, 2003 at 10:40:10PM -0400, Andrew Kieran wrote: > > I think that the following shortcut, though comman, can be > > dangerous. > > > > > > Also you will have an easier time with code maintenance if > > > > you do the following: > > > > #define CLK PORTA, 1 > > > > #define DQ PORTA, 0 > > > > I prefer to replace each argument (in this case, PORTx and BITx) > > with separate equivalents. This is valid, but I find that > > using one word (e.g. CLK) to represent two items can make > > debugging more difficult because ones eye doesn't learn the > > rythym of the syntax. (If that makes any sense). > > > > When I'm debugging, this helps me to check each part of the > > instruction for accuracy. (Not that anyone asked, but ... > > hey). > > I don't suppose you oculd provide me with a short example of how you do > the seperate equivalences. I am quite new to all of this, and until I > know a little more, I find deciphering the manual, if I can even FIND > the right location to look in it, to be a rather daunting task. > > Sabachka > > -- > sabachka-piclist@oddmagic.net > > Last week I forgot how to ride a bicycle. -- Steven Wright > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu