Use the following data for the remaining questions in this section: word1 WORD 1000h, 2000h, 3000h, 4000h, 5000h dword1 DWORD 10000h, 20000h, 30000h, 40000h Suppose we want EAX to contain the sum of the dword1 array when the following (incomplete) code finishes executing: mov edi, OFFSET dwordl mov ecx, LENGTHOF dwordl 1: 2: 3: ? 4: 5: 6: loop L1 Which of the following choices would best fill in lines 3, 4, and 5? mov DWORD PTR [edi],0 L1: add eax, [edi] 3: 4: 5: add edi, TYPE dwordl 3: O2. еаx, 0 Ll: add mov eax, (edi] add edi, 2 4: 5: 3: 4: 5: 3. еаx, 0 Ll: add mov еaх, (edi] add edi, TYPE dwordl eax, [edi] add 3: mov 4: L1: eax, dwordl 5: add edi, 2

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Use the following data for the remaining questions in this section:
word1 WORD 1000h, 2000h, 3000h, 4000h, 5000h
dword1 DWORD 10000h, 20000h, 30000h, 40000h
Suppose we want EAX to contain the sum of the dword1 array when the following (incomplete) code finishes executing:
edi, OFFSET dwordl
ecx, LENGTHOF dwordl
1:
mov
2:
mov
3:
?
4:
?
5:
?
6:
loop L1
Which of the following choices would best fill in lines 3, 4, and 5?
3:
DWORD PTR [edi],0
eax, (edi]
add edi, TYPE dwordl
mov
4:
L1:
add
5:
eax, 0
add
2.
3:
mov
L1:
4:
еax, [edi]
add edi, 2
еax, 0
add
5:
3:
mov
еax, (edi]
edi, TYPE dwordl
4:
L1:
5:
add
еax, (edi]
add
add
4.
3:
Mov
4:
L1:
eax, dwordl
5:
edi, 2
3.
Transcribed Image Text:Use the following data for the remaining questions in this section: word1 WORD 1000h, 2000h, 3000h, 4000h, 5000h dword1 DWORD 10000h, 20000h, 30000h, 40000h Suppose we want EAX to contain the sum of the dword1 array when the following (incomplete) code finishes executing: edi, OFFSET dwordl ecx, LENGTHOF dwordl 1: mov 2: mov 3: ? 4: ? 5: ? 6: loop L1 Which of the following choices would best fill in lines 3, 4, and 5? 3: DWORD PTR [edi],0 eax, (edi] add edi, TYPE dwordl mov 4: L1: add 5: eax, 0 add 2. 3: mov L1: 4: еax, [edi] add edi, 2 еax, 0 add 5: 3: mov еax, (edi] edi, TYPE dwordl 4: L1: 5: add еax, (edi] add add 4. 3: Mov 4: L1: eax, dwordl 5: edi, 2 3.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY