Um... Why not write status? Readability? I'd agree that its less readable but just want to see if you know something I don't about it. James Newton mailto:jamesnewton@geocities.com phone:1-619-652-0593 http://techref.homepage.com NOW OPEN (R/O) TO NON-MEMBERS! Members can add private/public comments/pages ($0 TANSTAAFL web hosting) PIC/PICList FAQ: http://www.piclist.com -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Dwayne Reid Sent: Sunday, December 05, 1999 3:43 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: PIC Table Read and Compare Questions >The Z bit indicates if the last result was zero. One cannot write (I'm >pretty sure) to the Z, D(igit)C(arry) or the C(arry) bits of Status. >Clearing Status will actually cause Z=1. You should not write STATUS, but you *CAN* change the individual bits using bcf / bsf instructions. You will often find code snippets that use 'clrc' or 'setz' (MPASM's built in macros) or 'bcf STATUS,C' or 'bsf STATUS,Z'. These are legal and work eintirely as expected. dwayne Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 15 years of Engineering Innovation (1984 - 1999) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Do NOT send unsolicited commercial email to this email address. My posting messages to Usenet neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email.