Harry H. Arends wrote: > Full_Step: ; Used with RS 191-8299 > movf STEP, w > andlw 0x03 > addwf PCL, f > retlw b'00001001' ; Step-1 > retlw b'00001100' ; Step-2 > retlw b'00000110' ; Step-3 > retlw b'00000011' ; Step-4 This is a bug waiting to happen, or maybe it did already. Either guarantee the ADDWF and the table don't straddle a 256 word boundary, or better yet, do the full PCLATH math. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist