Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please explain your answer. Thank you. Question 9 The MOVSW instruction copies a

ID: 3840838 • Letter: P

Question

Please explain your answer. Thank you.

Question 9 The MOVSW instruction copies a word from the location addressed by ESI to the location addressed by EDI. True False Question 10 The REPNE prefix repeats an instruction while theZero flag is set, and ECX is greater than zero. True False Question 11 The SCASB instruction is useful for looking for a single value in a string. True False Question 12 What prefix would you use with the STOSB instruction to fill all elements of a string with a single value? Question 13 The nstruction copies doublewords from the memory location pointed to by ESI to the memory location pointed to by EDI.

Explanation / Answer

ans 9) yes ,it is True that MOVSW instruction copies a word from the location address by ESI to the location address by EDI.

example - Assuming BUF1 as been defined somewhere . the following example moves 20 words (40 bytes) from BUF1 to BUF2:

ans 10) Yes , it is true that REPNE prefix repeat an instruction while the zero flag is set and ECX is greater than zero

ans 11) Yes, it is true that SCASB instruction is useful for looking for a single value in string. SCAS means scan string and SCASB means compares the byte in AL with the byte at [ES:DI] .

ans 12) REP prefix is use with STOSB because it repeats the operation up to CX times, as long as the condition holds true .