Question: Consider the following code (Next 2 Questions) 1. .data 2. Source BYTE 50 DUP(?) 3. Target BYTE 100 DUP(?) 4. .code 5. Mov cx, 50
Consider the following code (Next 2 Questions) 1. .data 2. Source BYTE 50 DUP(?) 3. Target BYTE 100 DUP(?) 4. .code 5. Mov cx, 50 6. Mov esi, OFFSET source 7. Mov edi, OFFSET target 8. Rep movsb 9 6. Which of the following is true? a. Line 6 can be replaced with LEA esi, source b. Line 7 can be replaced with LEA edi, target c. After line 7, both ESI and EDI contain the same value d. Both a and b 7. In line 9 (ie. At the end of the execution of the above instructions), CX contains a. 50 b. 100 c. 0 d. 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
