WH Tan wrote: > 2) Is the following set of codes have the same effect on program flow? > > A1 MOVLW 0x00 > ADDWF PCL,f > > A2 GOTO A2 No, these are different. To make A1 do what A2 does, you'd need: A1 MOVLW -2 ADDWF PCL Or, more generally: A1 MOVLW (A1A-A1)-1 A1A ADDWF PCL > B1 MOVLW 0xFF > .... > ADDWF PCL,f > > B2 GOTO $-1 These are different, too. To make B2 do what B1 does, you'd need something like this: B2 MOVLW ((B2A-B2)-1)-1 .... B2A ADDWF PCL -Andy === Andrew Warren - aiw@cypress.com === === Principal Design Engineer === Cypress Semiconductor Corporation -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads