Hello, I'm porting a software that is running ok on a PIC16F877 to a PIC18F452 and now I'm having problems with the computed goto's. On the PIC16: MOVLW 0x01 MOVWF PCLATH MOVF state,W_ ADDWF PCL,F_ GOTO case0 GOTO case1 GOTO case2 etc On the PIC18 strange things happen: MOVLW 0x01 MOVWF PCLATH RLCF dkstate, W_ ADDWF PCL GOTO case0 GOTO case1 GOTO case2 etc Someone have an example code about computed goto's on a PIC18? I've seen the "Unlimited computed goto (or table lookup)" page by Bob Ammerman on PICLIST, but it seens overkill. I need very fast code. Thank you very much, Brusque ----------------------------------------------------------------- Edson Brusque C.I.Tronics Lighting Designers Ltda Research and Development Blumenau - SC - Brazil Say NO to HTML mail www.citronics.com.br ----------------------------------------------------------------- -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body