On Mon, 19 Aug 2002, Bob Ammerman wrote: > Short: > > clrf FSR0L > clrf FSR0H > > (or LFSR 0,0) > > loop: > clrf POSTINC0 > btfsc FSR0H,3 > bra loop I think you meant btfss instead of btfsc. 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). hint, suppose you use LFSR 0,0xf7f? Scott -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu