What is the function of function-A calculate power of y calculate power of z Omultiply y and z add z to itself up to y times

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter6: Creating, Sorting, And Querying A Table
Section: Chapter Questions
Problem 10EYK
icon
Related questions
Question
100%
HAHAAAAAAHN
HNM1000 OHNM
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
27
28
30
31
32
section
. data
.section .text
.globl _start
start:
pushq $4
pushq $3
call function-A
addq $16, $rsp
movg %rax, %rbx
movq $1, rax
int $0x80
.type function-A, @function
function-A:
pushq rbp
movq rsp, rbp.
subq $8, rsp
mova 16 (%rbp),
rbx
movg 24 (rbp), rcx
movg %rbx, -8(%rbp)
label-A:
#variable y
#variable z
cmpq $1, $rcx
je label-B
movq -8 (&rbp), rax
imulg %rbx, srax
movq rax, -8 (%rbp)
decq rcx
jmp label-A
label-B:
movq -8 (Srbp), rax
movq rbp, rsp
popq &rbp
ret
Transcribed Image Text:HAHAAAAAAHN HNM1000 OHNM 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 30 31 32 section . data .section .text .globl _start start: pushq $4 pushq $3 call function-A addq $16, $rsp movg %rax, %rbx movq $1, rax int $0x80 .type function-A, @function function-A: pushq rbp movq rsp, rbp. subq $8, rsp mova 16 (%rbp), rbx movg 24 (rbp), rcx movg %rbx, -8(%rbp) label-A: #variable y #variable z cmpq $1, $rcx je label-B movq -8 (&rbp), rax imulg %rbx, srax movq rax, -8 (%rbp) decq rcx jmp label-A label-B: movq -8 (Srbp), rax movq rbp, rsp popq &rbp ret
What is the function of function-A
calculate power of y
calculate power of z
multiply y and z
add z to itself up to y times
Transcribed Image Text:What is the function of function-A calculate power of y calculate power of z multiply y and z add z to itself up to y times
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Modular arithmetic
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L