What do you mean by "not reading"? The XORWF instruction takes 1 cicles to execute (4Q) Q1 Decode Q2 Read register f (in this case PORTD) Q3 Process data Q4 Write to destination (in this case also PORTD) So, PORTD IS readed... Best regards Mauricio D. Jancic Janso Desarrollos - Microchip Consultant www.janso.com.ar info@janso.com.ar (54) - 11 - 4542 - 3519 Lugones 3238 "B" - C1430ECN Capital Federal Republica Argentina (54) - 11 - 4542 - 3519 MSN: jansodesarrollos@hotmail.com -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.197 / Virus Database: 261.2.0 - Release Date: 18/11/2003 -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body