rlf reg, f incf reg, f Ignoring any possible overflow of course... nick@veys.com | www.veys.com/nick -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Dmitriy A. Kiryashov Sent: Sunday, June 02, 2002 3:39 PM To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: Tine challendge shortest X -> 2X + 1 Hi guys. Here is tiny challendge to warm up. ;) We have X variable. What is shortest possible code to obtain 2X + 1 result back into X cell ? WBR Dmitry. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.