Bingo! Thank you Bob, that's what I needed...the movlw operand! Thanks, Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams Bob Ammerman wrote: > > ; This should do what you need (assume FSR0H is kept = 0) > > movlw PWM0VAL ; get address of start of array > addwf CHANCNT,w ; point to desired entry > movwf FSR0L ; put in index register > movff PWMTEMP,INDF0 > > ; This will also work if FSR0H and FSR0L are both kept 0 > > movlw PWM0VAL > addwf CHANCNT,w > movff PWMTEMP,PLUSW0 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads