Subroutine using a lookup table

Status
Not open for further replies.

29rachman

New Member
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.
 
Hi,
You have posted 3 homework questions, we would like to see what solutions you have worked out, please post them.?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…