On Wednesday, October 15, 2003, at 03:11 AM, Jinx wrote: > ============================== > > But this adds W to PCL and returns immediately to 00xx, not > to 01E8 > > 01E2 movwf devno Did you mean movf devno, w ??? Otherwise I don't see where you set W before calling bitnum > call bitnum > 01E8 movwf temp > 01EA bra cp_num > > 0204 bitnum > addwf pcl > retlw 0x01 > retlw 0x02 > etc Perhaps it isn't returning to a random address after a computed goto, but is computed gotoing to a random address? ;-) Hope that helps, Ben -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics