Question: Write a program in LEGv8 assembly to copy a null-terminated ASCII string from array y to array x; converting every 'a' character in the

Write a program in LEGv8 assembly to copy a null-terminated ASCII string from array y to array x; converting every 'a' character in the source string to 'b' in the destination string. In other words, for each character in array y: if (y[i] else == 'a') x[i]='b'; x[i] = y[i]; Assume that the base address of the arrays x and y are in registers XO and X1, respectively. The ASCII code for characters 'a' and 'b' is 113 and 114 respectively [25 pts]. * Null-terminated means that a zero character shows the end of the string.
Step by Step Solution
There are 3 Steps involved in it
data source asciz abcda dest space 6 text global main m... View full answer
Get step-by-step solutions from verified subject matter experts
