Hi Joe,

Subroutine nesting is normally restricted to 4 levels deep on 14-bit core, and
27 levels deep for 18Xxxx parts.

Look in the manual under GOSUB.