Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assembly Code Question: This is At&t assembly I'm pretty sure. If this code runs from its start until the endpoint, the value in register edx

Assembly Code Question:

This is At&t assembly I'm pretty sure. If this code runs from its start until the endpoint, the value in register edx will be:

0x40106e : mov $0x1,%edx 0x401073 : mov $0x8,%ecx 0x401078 : test %ecx,%ecx 0x40107a : jg 0x40107e  0x40107c : jmp 0x40108a  0x40107e : lea (%ecx,%ecx,1),%eax 0x401081 : lea (%eax,%edx,1),%eax 0x401084 : lea 0xffffffff(%eax),%edx 0x401087 : dec %ecx 0x401088 : jmp 0x401078  0x40108a : // endpoint 

Question 7 options:

1)

45

2)

55

3)

65

4)

75

I'm having a hard time figure out the answer to this question. I mainly don't understand the line that says "lea 0xffffffff(%eax),%edx" what exactly is this doing?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago