On Wed, Aug 07, 2002 at 11:57:52AM -0500, Adam Smith wrote: > Quick question... > > movlw 0x00 > addwf PCL > > Does that code put you into an infinite loop Nope. > or does PCL still increment instead of just staying where it is? Yup. > (Note: in my code it's not as > overt as above, so the assembler can't detect and correct it. My > problem is that I'm doing some branching but in one case I want to > branch to the instruction right after the 'addwf', but instead of doing: > > movlw 0x01 > movwf jump_register > > I would rather just do: > > clrf jump_register > > (I'm in a really time-sensitive application.)) > > Thoughts? Do the clrf. It'll work fine. BAJ -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.