Sean Schouten wrote: > Hi guys, > > What seems to be no more than perhaps a simple logical operation seems to > defy my logic. > > Using the following code in a small loop, I don't seem to be getting the > desired-output when monitoring the W-Register: > Is that the complete code? Are you running it on a simulator or do you have output code and are running it on the real thing? How do you define TEMP_VAR? Also, you might want to make sure C is clear before RRF. But that shouldn't cause the result you mention (although, if set, the output would always be 0xFF) -- Hector Martin (hector@marcansoft.com) Public Key: http://www.marcansoft.com/hector.asc -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist