0x40106e movl $0x2b,0xffffffdc(%ebp) 0x401075 movl $0x31,0xffffffe4(%ebp) 0x4010
ID: 3639520 • Letter: 0
Question
0x40106e movl $0x2b,0xffffffdc(%ebp)
0x401075 movl $0x31,0xffffffe4(%ebp)
0x40107c movl $0x74,0xffffffec(%ebp)
0x401083 movl $0x19,0xffffffe8(%ebp)
0x40108a movl $0x7,0xffffffd8(%ebp)
0x401091 movl $0x14,0xffffffe0(%ebp)
0x401098 mov $0xdead,%edi
0x40109d mov $0x2,%ecx
0x4010a2 mov %ecx,%esi
0x4010a4 mov $0x3,%ecx
0x4010a9 mov $0x2,%ebx
0x4010ae sub %esi,%ebx
0x4010b0 imul $0xc,%ebx,%ebx
0x4010b3 mov $0x3,%edx
0x4010b8 sub %ecx,%edx
0x4010ba lea 0xffffffd8(%ebp),%eax
0x4010bd lea (%ebx,%edx,4),%ebx
0x4010c0 add %ebx,%eax
0x4010c2 mov (%eax),%edi
0x4010c4 loop 0x4010a9
0x4010c6 mov %esi,%ecx
0x4010c8 loop 0x4010a2
0x4010ca mov $0xbeef,%edi
This code loads the value 0xDEAD into register edi. Then it loads a sequence of values into edi. Finally it loads 0xBEEF into edi. The sequence of values, expressed as decimal numbers, that are loaded between 0xDEAD and 0xBEEF is:
1) 43, 49, 116, 25, 7, 20
2) 7, 43, 20, 49, 25, 116
3) 20, 7, 25, 116, 49, 43
4) 49, 7, 43, 20, 116, 25
Explanation / Answer
2) 7, 43, 20, 49, 25, 116
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.