If you're using a 16F part, your code is relatively small, and all fits into code page 0 with PBP library code, it doesn't matter where you place your subroutines.
As your code grows beyond code page 0 it might matter where you place them. All PBP library code has to fit into code page 0 on 16F type parts. If your program extends into page 1, and your subroutines are on page 1, then it takes more code to switch back & forth between code pages.
If your subroutines all fit into page 0, and your main routine ends up in page 1, it will save code space because your subroutine calls to PBP library code are on the same code page 0.
I normally put a large number of subroutines in an include file so I don't have to scroll through them all to work on code in my main loop.
Code:
GOTO Main
INCLUDE "MySubs.INC"
Main:
Call subs from here.
GOTO Main
If all my subroutines won't fit into code page 0.. I'll try to get the ones used most often - or the ones with the most library calls squeezed in.
You can experiment with shifting code around to see the difference.
Bookmarks