> MOVLW 0x07 > MOVWF TEMP1 > LOOP > MOVLW 0x30 > MOVWF FSR > > BSF INDF,TEMP1 You can't do that. The BSF instruction sets a particular bit which is hard coded into the instruction. The bit can not be selected at run time. To do that, you need to OR the target with a mask containing the selected bit. > DECFSZ TEMP1,F > GOTO NEXT_LBL2 ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads