Use the F690 template file.
Use the MP-Lab simulator to debug and execute the program.
Turn in the program source code. Comments are necessary to describe the operation. Turn in a screen shot of the File Register memory after the program has run.
1. write a subroutine that uses a lookup table to store the letters of your name in 7-bit ASCII, indexed by the letter position number. The subroutine should use the w register to receive the input parameter index number, and return the letter ASCII code in the w register.
2. Write a main program that uses indirect mode addressing in a loop to loop up each letter of the name using the subroutine and put it into the GPR starting at address 0x120.
Use the MP-Lab simulator to debug and execute the program.
Turn in the program source code. Comments are necessary to describe the operation. Turn in a screen shot of the File Register memory after the program has run.
1. write a subroutine that uses a lookup table to store the letters of your name in 7-bit ASCII, indexed by the letter position number. The subroutine should use the w register to receive the input parameter index number, and return the letter ASCII code in the w register.
2. Write a main program that uses indirect mode addressing in a loop to loop up each letter of the name using the subroutine and put it into the GPR starting at address 0x120.