Question: If this code runs from its start until the endpoint, the value in register ecx will be: 0x40106e : mov $0x1,%edx 0x401073 : mov $0x8,%ecx

If this code runs from its start until the endpoint, the value in register ecx 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 options:

1)

0

2)

1

3)

8

4)

10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!