Hi Sabachka, Yup, you got it right ('F' for 'file', 'W' for W register). Take care, Ken Pergola -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Sabachka Sent: Wednesday, August 13, 2003 10:24 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: a better "if .. then .. else" in assembly? F for 'file', the other option being W for the W register, yes? Another trick that I didn't know until now. I'm glad you pointed out the need to rotate the ReadCmd, as I wouldn't have noticed in all likelyhood and would have gone crazy trying to figure out why it wasn't working! Thanks again! Sabachka On Wed, Aug 13, 2003 at 09:53:38PM -0400, Ken Pergola wrote: > Forgot some things : > > For readability, use 'DECFSZ BitCount, F' instead of 'DECFSZ BitCount, > 1'. > > Also, you need to shift variable ReadCmd after each iteration otherwise you > will be sending out the same bit, ok? -- sabachka-piclist@oddmagic.net Disclaimer: Any errors in spelling, tact, or fact are transmission errors. -- 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#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body