Question: Write and execute an LC-3 assembly program which concatenates two strings. The first string begins at memory address x4000, and the second string begins
Write and execute an LC-3 assembly program which concatenates two strings. The first string begins at memory address x4000, and the second string begins at memory address x5000. Strings always terminate with a 0. Example: Before your program executes: M[x4000] = 5 M[x4001] = 2 M[x4002] = 8 M[x4003] = 4 M[x4004] = 0 M[x5000] = 6 M[x5001] = 1 M[x5002] = 8 M[x5003] = 0 After your program executes: M[x4000] = 5 M[x4001] = 2 M[x4002] = 8 M[x4003] = 4 M[x4004] = 6 M[x4005] = 1 M[x4006] = 8 M[x4007] = 0 M[x5000] = 6 M[x5001] = 1 M[x5002] = 8 M[x5003] = 0
Step by Step Solution
3.34 Rating (160 Votes )
There are 3 Steps involved in it
FILL x4000 FILL x5000 FILL x4000 strcat retaddr strercsecond strsrc fir... View full answer
Get step-by-step solutions from verified subject matter experts
