Juimiin Hong wrote: > goto State > Is it possible to access the contents of the variable State in this > command? And how? State contain the value of the program > counter I want the program to go to. That command will jump to a program code location whose address is the same as your variable "State" in register space. Not what you want at all. What you were looking for is: movf State,W movwf PCL This will jump to the program code location whose 8-bit address was in the register "State", in the code page presently defined in PCLATH which initializes as zero. -- Cheers, Paul B.