I am currently working on a program for a college class using SIM11, A 68HC11 simulator, as well as using the BUFFALO Monitor. The goal of the program is to create a subroutine that will count every non space character in a string and return it to accumulator A, exclude the EOT character, save the contents of all the registers used in the subroutine and restore them to their regular values before returning to the caller. The program also has to be written expecting the caller will load the x register with the address of the beginning of the string. The string will also be ended with the ASCII EOT character, though the count of characters cannot include it.
I am currently working on a program for a college class using SIM11, A 68HC11 simulator,...