Hi,

What PIC are you using?

Also, every subroutine should end with a RETURN statement, so you can return to the point where your code was at when calling the GOSUB. At the end of your program you need a GOTO FetchDepth.