Consider the following assembly code fragment push1 ebp movl

Consider the following assembly code fragment: push1 %ebp movl %esp, %ebp subl $0 times 40, %esp movll %ebx, 0 times 14(%esp) movl $1, %ebx Which one of the choices is able to undo the effects of the fragment above? movl 0 times 14(%esp), %ebx movl %ebp, %esp popl %ebp popl %ebp movl %ebp, %esp addl $0 times 40, %esp movl 0 times 14(%esp), %ebx movl -0 times 26(%ebp), %ebx addl $0 times 40, %esp movl %ebp, %esp popl %ebp movl 14(%esp), %ebx addl $40, %esp movl %ebp, %esp pop! %ebp

Solution

consider the following assembly code fragment.

push1 %ebp

mov1 %esp, %esp

sub1 $0x40, %esp

mov1 % ebx, 0x14(%esp)

mov1 $1, %ebx. which one of the choice is able t undo effects of the fragment above?

Answer :

pop1 %ebp

mov1 %ebp, %esp

add1 $0x40, %esp

mov1 0x14(%esp), %ebx

 Consider the following assembly code fragment: push1 %ebp movl %esp, %ebp subl $0 times 40, %esp movll %ebx, 0 times 14(%esp) movl $1, %ebx Which one of the ch

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site