Write a program to transfer a string of data from code space starting at address
ID: 2989135 • Letter: W
Question
Write a program to transfer a string of data from code space starting at address 200H to RAM locations inside the CPU starting at 40H. The data representing your last name and first name is as shown below:
MYDATA: DB "Alex Young",0
Using the simulator, single-step through the program and examine the data transfer and registers.
Part 2:
Add the following subroutine to the program in Activity 1, single-step through the subroutine and examine the RAM locations.
After data has been transferred from ROM space into RAM, the subroutine should copy the data from RAM locations starting at 40H to RAM locations starting at 60H.
Note: Using MPLAB Simulator
Explanation / Answer
This method uses null char for end of string?
ORG 0000
MOV DPTR,#MYDATA
MOV R0,#40H ;No
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.