If this code runs from its start until the endpoint, the value in register edx will be:

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter2: Introduction To Systems Architecture
Section: Chapter Questions
Problem 2VE: A(n) __________ is a storage location implemented in the CPU.
icon
Related questions
Question
If this code runs from its start until the endpoint, the value in register edx will be:
S0x1, tedx
Sox8, tecx
Ox40106e
<main+30>:
mov
Ox401073
<main+35>:
mov
Ox401078
<main+40>:
test
Secx, tecx
Ox40107a
<main+42>:
Ox40107e <main+46>
Ox40107c
<main+44>:
jmp
Ox40108a <main+58>
Ox40107e
<main+46>:
lea
(secx, tecx, 1),teax
Ox401081
<main+49>:
lea
(šeax, sedx, 1), teax
Ox401084
<main+52>:
lea
Oxffffffff (šeax), sedx
Ox401087
<main+55>:
dec
šecx
Ox401088
<main+56>:
jmp
Ox401078 <main+40>
<main+58>:
// endpoint
Ox40108a
1) 45
2) 55
3) 65
4) 75
Transcribed Image Text:If this code runs from its start until the endpoint, the value in register edx will be: S0x1, tedx Sox8, tecx Ox40106e <main+30>: mov Ox401073 <main+35>: mov Ox401078 <main+40>: test Secx, tecx Ox40107a <main+42>: Ox40107e <main+46> Ox40107c <main+44>: jmp Ox40108a <main+58> Ox40107e <main+46>: lea (secx, tecx, 1),teax Ox401081 <main+49>: lea (šeax, sedx, 1), teax Ox401084 <main+52>: lea Oxffffffff (šeax), sedx Ox401087 <main+55>: dec šecx Ox401088 <main+56>: jmp Ox401078 <main+40> <main+58>: // endpoint Ox40108a 1) 45 2) 55 3) 65 4) 75
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning