Thanks Tan,=20 that did the trick. What I don't understand is why the assembler didn't throw an error if=20 incf W,0 isn't allowed. Oh well.. -----Original Message----- From: Tan Chun Chiek [mailto:code@MXHUB.NET]=20 Sent: 01 February 2003 18:52 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: Problem with first 16F877 test program and you could use addlw B'1' in place of incf W, 0 regards, Tan CC -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads