The "Start Here" robot Part II....code error?

While browsing the web pages associated with the "How to build your first robot", I went to the "Part 2" page, and copy and pasted the Clean_Navigation.bas file into PICAxe Programming Editor (version 5.2.0), and when I click the "Simulate" menu item, I get the following error.

Compile Error: GOSUB AFTERTURN Error: Only 16 GOSUB commands allowed !

This error occurs at Line 163....

Can someone tell me what I'm doing wrong?

And a warm "Hello" to all......as this is my first post.

Jim

 

Wait, so the code wouldn’t

Wait, so the code wouldn’t work in a small-capacity chip even though you’d have enough bytes available!?

…you’re kidding me?