Problem
Write a subroutine to count the number of characters and words contained in a string terminated by a NULL character. The string is stored in the program memory, and the starting address (three bytes) of the string is passed to this subroutine in TBLPTR. This routine returns the character count and word count in PRODL and PRODH, respectively.