Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote