Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What does the following assembly code do? Dump of assembler code for function phase 2: 0x000000000040104e : 0x000000000040104f ; 0x0000000000401050 : 0x0000000000401054 0x0000000000401057 : 0x000000000040105c

What does the following assembly code do?

image text in transcribed

Dump of assembler code for function phase 2: 0x000000000040104e : 0x000000000040104f ; 0x0000000000401050 : 0x0000000000401054 0x0000000000401057 : 0x000000000040105c :cmpl 0x0000000000401060 : 0x0000000000401062 0x0000000000401067 : lea 0x000000000040106c : 0x0000000000401071 0x0000000000401073 0x0000000000401076 : cmp 0x0000000000401078 0x000000000040107a : 0x000000000040107f 0x0000000000401082 : add 0x0000000000401086 : cmp 0x0000000000401089 : 0x000000000040108b : add 0x000000000040108f : 0x0000000000401090 : push push sub mov callq %rbp %rbx $0x28,%rsp orsp,srsi 0x401405 $0x0, (%rsp) jns0x401067 callq 0x4013cf 0x4 ( % r sp ) ,%rbx $0x1,sebp %ebp, %eax -0x4 ( % rbx ) , %eax %eax,(%rbx) 0x40107f mov mov add callq 0x4013cf add $0x1,%ebp $0x4 , % rbx $0x6 , %ebp jne 0x401071 $0x28,%rsp erbx %rbp 0 pop Dump of assembler code for function phase 2: 0x000000000040104e : 0x000000000040104f ; 0x0000000000401050 : 0x0000000000401054 0x0000000000401057 : 0x000000000040105c :cmpl 0x0000000000401060 : 0x0000000000401062 0x0000000000401067 : lea 0x000000000040106c : 0x0000000000401071 0x0000000000401073 0x0000000000401076 : cmp 0x0000000000401078 0x000000000040107a : 0x000000000040107f 0x0000000000401082 : add 0x0000000000401086 : cmp 0x0000000000401089 : 0x000000000040108b : add 0x000000000040108f : 0x0000000000401090 : push push sub mov callq %rbp %rbx $0x28,%rsp orsp,srsi 0x401405 $0x0, (%rsp) jns0x401067 callq 0x4013cf 0x4 ( % r sp ) ,%rbx $0x1,sebp %ebp, %eax -0x4 ( % rbx ) , %eax %eax,(%rbx) 0x40107f mov mov add callq 0x4013cf add $0x1,%ebp $0x4 , % rbx $0x6 , %ebp jne 0x401071 $0x28,%rsp erbx %rbp 0 pop

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

Step: 3

blur-text-image

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

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

4. What actions should Bouleau & Huntley take now?

Answered: 1 week ago