> I think you meant btfss instead of btfsc. Yeah, I did. > If so, won't that just get 0x000 > - 0x3ff? You can't change the 3 to a 4 or you'll wipe out the SFRs between > 0xf80 - 0xfff (including POSTINC0 which will cause an infinite loop). Yeah, you're right of course. > hint, suppose you use LFSR 0,0xf7f? Now that you say so... pretty obvious.... lfsr 0,0xf7f loop: clrf POSTDEC0 ; 1 for slow, 8 of em for fast clrf POSTDEC0 clrf POSTDEC0 clrf POSTDEC0 clrf POSTDEC0 clrf POSTDEC0 clrf POSTDEC0 clrf POSTDEC0 btfss FSR0H,7 bra loop Duh... Bob -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu