unsigned mysteryl(unsigned n) { if(_________) return 1; else return 1+ mystery1(_______________); -} Mystery1: push1 %eb

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
correctanswer
Posts: 43759
Joined: Sat Aug 07, 2021 7:38 am

unsigned mysteryl(unsigned n) { if(_________) return 1; else return 1+ mystery1(_______________); -} Mystery1: push1 %eb

Post by correctanswer »

Unsigned Mysteryl Unsigned N If Return 1 Else Return 1 Mystery1 Mystery1 Push1 Eb 1
Unsigned Mysteryl Unsigned N If Return 1 Else Return 1 Mystery1 Mystery1 Push1 Eb 1 (29.75 KiB) Viewed 62 times
unsigned mysteryl(unsigned n) { if(_________) return 1; else return 1+ mystery1(_______________); -} Mystery1: push1 %ebp movl %esp, %ebp subl $8, %esp cmpl $0, 8(%ebp) jne .L2 movl $1, -4(%ebp) jmp L3 movl 8(%ebp), %eax shrl %eax movl %eax, (%esp) call mystery1 addl $1, %eax movl %eax, -4(%ebp) movl -4 (%ebp), %eax leave ret .L2: .L3: ret
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.
Post Reply