Problem
Write a subroutine to count the number of characters and words contained in a string. The string is stored in the program memory, and its starting address is passed in TBLPTR. The subroutine will return the character count and word count in PRODL and PRODH, respectively. Use the MPLAB IDE to enter, compile, and simulate the program.