write a program using the LOOP instruction with indirectaddressing that copies a
ID: 3615943 • Letter: W
Question
write a program using the LOOP instruction with indirectaddressing that copies a string from source to target , reversingthe character order in the process . Using the followingvariables: source BYTE "THIS is the sourcestring",0 target BYTE SIZEOF source DUP ( ' # ' ) Insert the following statements immediately after the loop todisplay the hexadecimal contents of the target string : mov esi , OFFSETtarget ; offset of variable mov ebx ,1 ;byte format mov ecx ,SIZEOF ; counter call DumpMem if your program works correctly , it will display thefollowing sequence of hexadecimal bytes: 67 6E 69 72 74 73 20 65 63 72 75 6F 73 20 65 68 74 20 73 69 20 73 69 68 54 write a program using the LOOP instruction with indirectaddressing that copies a string from source to target , reversingthe character order in the process . Using the followingvariables: source BYTE "THIS is the sourcestring",0 target BYTE SIZEOF source DUP ( ' # ' ) Insert the following statements immediately after the loop todisplay the hexadecimal contents of the target string : mov esi , OFFSETtarget ; offset of variable mov ebx ,1 ;byte format mov ecx ,SIZEOF ; counter call DumpMem if your program works correctly , it will display thefollowing sequence of hexadecimal bytes: 67 6E 69 72 74 73 20 65 63 72 75 6F 73 20 65 68 74 20 73 69 20 73 69 68 54Explanation / Answer
Dear Orange, Which assembly language are you using? The assemblylanguage depends on the machine, are you programming an LC3 or a286? Very Respectfully, CRRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.