1-2 Page Proposal
February 27, 2021
Question for Paula Hogg
February 27, 2021

String Operations

Answer the following questions:

a. For each exercise below, assume that the data segment contains

Source BYTE “brown”

Dest BYTE “brine”

1. Suppose that the following instructions are executed:

lea esi, source

lea edi, dest

cld

mov ecx, 5

repne cmpsb

Assuming that 00417000 is the address loaded in ESI and 00417005 is loaded in EDI, what will be the values stored in ESI and EDI following the repne cmpsb instruction? What will be stored in ECX?

2. Suppose that the following instructions are executed:

mov al, ‘w’

lea edi, dest

cld

mov ecx, 5

repe scasb

Assuming that 00417005 is the address loaded in EDI, what will be the value stored in EDI following the repne scasb instruction? What will be stored in ECX?

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.