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?
11 years ago
20
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

Bids(1)
other Questions(10)
- Introduction
- COM 200 Week 3 Assignment 2 Final Paper Outline
- CJS 240 Week 1 checkpoint Statistics Checkpoint
- CJS 210 Week 5 Check Point Personal Side of Policing Response
- CJS 200 Week 6 Assignment Sentencing Paper
- Bill Tutor As discussed
- MBA 5101 DB 6
- Tomax Corporation has 400 employees and wishes to develop a compensation policy to correspond to its dynamic business strategy
- .....Company/ Industry Research.....
- Patients Seeking Treatment
