Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What does the following assembly code do, and what 6 numbers would be produced by it? Dump of assembler code for function phase_2: => 0x0000555555555194

What does the following assembly code do, and what 6 numbers would be produced by it?

Dump of assembler code for function phase_2: => 0x0000555555555194 <+0>: push %rbp 0x0000555555555195 <+1>: push %rbx 0x0000555555555196 <+2>: sub $0x28,%rsp 0x000055555555519a <+6>: mov %rsp,%rsi 0x000055555555519d <+9>: callq 0x5555555558fe 0x00005555555551a2 <+14>: cmpl $0x1,(%rsp) 0x00005555555551a6 <+18>: jne 0x5555555551b1 0x00005555555551a8 <+20>: mov %rsp,%rbx 0x00005555555551ab <+23>: lea 0x14(%rbx),%rbp 0x00005555555551af <+27>: jmp 0x5555555551c1 0x00005555555551b1 <+29>: callq 0x5555555558b7 0x00005555555551b6 <+34>: jmp 0x5555555551a8 0x00005555555551b8 <+36>: add $0x4,%rbx 0x00005555555551bc <+40>: cmp %rbp,%rbx 0x00005555555551bf <+43>: je 0x5555555551d1 0x00005555555551c1 <+45>: mov (%rbx),%eax 0x00005555555551c3 <+47>: add %eax,%eax 0x00005555555551c5 <+49>: cmp %eax,0x4(%rbx) 0x00005555555551c8 <+52>: je 0x5555555551b8 0x00005555555551ca <+54>: callq 0x5555555558b7 0x00005555555551cf <+59>: jmp 0x5555555551b8 0x00005555555551d1 <+61>: add $0x28,%rsp 0x00005555555551d5 <+65>: pop %rbx 0x00005555555551d6 <+66>: pop %rbp 0x00005555555551d7 <+67>: retq End of assembler dump.

here is some more helpful information: (gdb) i r rax 0x555555758b38 93824994347832 rbx 0x5555555566c0 93824992241344 rcx 0x9 9 rdx 0x2 2 rsi 0x555555758b38 93824994347832 rdi 0x555555758b38 93824994347832 rbp 0x0 0x0 rsp 0x7fffffffdee8 0x7fffffffdee8 r8 0x555555758b38 93824994347832 r9 0x0 0 r10 0x7ffff7f60ac0 140737353484992 r11 0x246 582 r12 0x555555554f10 93824992235280 r13 0x7fffffffdfe0 140737488347104 r14 0x0 0 r15 0x0 0 rip 0x555555555194 0x555555555194 eflags 0x206 [ PF IF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0

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 Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

=+professionalism and competency in handling global HR issues?

Answered: 1 week ago