Question: masm, Copying a String The following code copies a string from source to target .data source BYTE This is the source string,0 target BYTE SIZEOF


masm,
Copying a String The following code copies a string from source to target .data source BYTE "This is the source string",0 target BYTE SIZEOF Source DUP (O) good use of SIZEOF .code mov esi,o mov ecx, SIZEOF source i index register : loop counter i get char from source i store it in the target i move to next character i repeat for entire string mov al,source [esi mov target[esi),a inc esi loop 14 (2) LAB due next week In the Chapter 4 slides. Refer to slide #73 and modify the LAB- Assign a value to a string, i.e."This is the Source String,-o and a SECOND STRING, i.e., the TARGET STRING INSTEAD of copying the String from the Source to the Ta rget, REVERSE the Source String and Store that in the TARGET STRING. Note: The Null Character should remain at the END of both the Source and Target Strings
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
