The top of stack is after the line 7 is executed in code file. variable y variable z address of line 8 of code value of %rbp register

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
The top of stack is
after the line 7 is executed in code file.
variable y
variable z
address of line 8 of code
value of %rbp register
Transcribed Image Text:The top of stack is after the line 7 is executed in code file. variable y variable z address of line 8 of code value of %rbp register
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 Srbp
movq rsp, rbp.
subq $8, rsp
mova 16 (%rbp),
rbx
movg 24 (rbp), rcx
mova Srbx, -8 (Srbp)
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:
movq8 (rbp), 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 Srbp movq rsp, rbp. subq $8, rsp mova 16 (%rbp), rbx movg 24 (rbp), rcx mova Srbx, -8 (Srbp) 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: movq8 (rbp), rax movq rbp, rsp popq &rbp ret
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Stack
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