Hi again Howard, Does adding '0' to the program counter cause any problems? Regards, Roger From: "Howard Winter" > On Tue, 22 Sep 2009 09:20:58 +0930, Roger Weichert wrote: >> Because I wasn't really sure how it was going to work, I added the >> 'andlw' >> command to clear eveything but the four least significant bits. >> >> I figured that should then give me a 'clean' number between 1 - 16. > Actually it will give a number between 0 and 15 (0000 to 1111) so adding > it to the program counter may not do quite what you wanted! > > Cheers, > > > Howard Winter > St.Albans, England -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist