Question: 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?

What does the following assembly code do? Dump of assembler code for

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

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!