Course Solutions Uncategorized (Answered) : Show Contents Eax Immediately Finishing Execution F2 F1 Pushl Rbp Movl Rsp Rbp Subl 4 Rsp Q28150520

(Answered) : Show Contents Eax Immediately Finishing Execution F2 F1 Pushl Rbp Movl Rsp Rbp Subl 4 Rsp Q28150520

Show the contents of %eax immediately after finishingthe execution of “.f2”.
===
.f1:
pushl %rbp
movl %rsp, %rbp
subl $4, %rsp
movl $0, -4(%rbp)

.L2:
movl -4(%rbp), %rax
cmpl 8(%rbp), %rax
jl .L5
jmp .L3

.L5:
decl 8(%rbp)
movl 12(%rbp), %rdx
leal -4(%rbp), %rax
addl %rdx, (%rax)
jmp .L2

.L3:
movl 8(%rbp), %rax
leave
ret

.f2:
pushl %rbp
movl %rsp, %rbp
pushl $3
pushl $19
call .f1
addl $8, %rsp
leave
ret

===
Sol:
%eax =

_________
please help me to solve this and get the result of (eax)
please show me how to do it with steps
to understand how you solve it

(IN COMPUTER SYSTEM LANGUAGE)
ASSEMBLY in 64 system

Expert Answer 


A solution will be send to your mail shortly . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Suppose X1 X2 Xn D Observations Poisson Distribution Probability Mass Function Pmf 5 Po Q28563730(Answered) : Suppose X1 X2 Xn D Observations Poisson Distribution Probability Mass Function Pmf 5 Po Q28563730

<p>Suppose X1, X2, . . . , Xn are i.i.d. observations from aPoisson distribution with probability mass function (PMF)</p><p><img alt="r0,1. 2 r!" src="https://d2vlcm61l7u1fs.cloudfront.net/media%2Fe1b%2Fe1b085fd-3acf-49d3-8859-2ad5b03017b8%2Fphp2J6A4D.png" style="height:42px;width:300px;" aria-describedby="j1t"/></p><p>(a) (5 points) Find the MLE