Thanks Howard, I'm still not used to thinking in binary or hex. Thanks for pointing it out. At least I can accommodate that change. And I was so nervous about asking the question I forgot the tag ... sorry. Regards, Roger From: "Howard Winter" > Roger, (tag added) > > 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