Computers and Technology

As you know, the popq instruction modifies the stack pointer (%rsp).

.pos 0
irmovq stack,%rsp # initialize stack pointer
irmovq n, %rax
mrmovq (%rax), %rax
pushq %rax # put known value on stack
popq %rsp # either get 0x5, or 0x100
halt
.align 8
n: .quad 5
.pos 0x100
stack:

since you are writing a simulator for the y86 processor, it is important for you to know the final value of %rsp when the instruction "popq %rsp" is executed the value from memory or the incremented %rsp. in the code above, what is the value of %rsp when the halt is reached? give your answer in decimal or hex but omit the leading 0x.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:31, Remba
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
image
Computers and Technology, 24.06.2019 00:20, danielmartinez024m
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
image
Computers and Technology, 24.06.2019 02:50, rurbanok12
Be sure to answer all parts. synthesize the following compound from benzene. a. b. c. d. e. f. reaction [1] conditions: a b c d e f reaction [1] product: draw structure reaction [2] conditions: a b c d e f reaction [2] product: draw structure reaction [3] conditions: a b c d e f reaction [3] product:
Answers: 3
image
Computers and Technology, 24.06.2019 12:50, neptunesx
Write a new lc-3 trap subroutine (i. e. a subroutine that will be invoked via the trap instruction) that will receive a numeric digit entered at the keyboard (i. e. an ascii character), echo it to the screen, and return in r0 the corresponding numeric value: so if the user types the digit '7', the character '7' will appear on the screen, but the value returned in r0 will be b0000 0000 0000 0111 (#7) you may not use any trap calls in your code - you must implement the "polling" code that interrogates the keyboard status and data registers. ; getnum_tsr ; a subroutine for obtaining a numeric value ; given ascii numeric digit input to keyboard. ; the numeric digit is echoed to the console (e. g. '7' = b0000 0000 0011 0111), ; but the value returned in r0 is the actual numeric value ; corresponding to the digit (e. g. b0000 0000 0000 0111 =
Answers: 3
Do you know the correct answer?
As you know, the popq instruction modifies the stack pointer (%rsp).

.pos 0
irmovq...

Questions in other subjects:

Konu
Mathematics, 18.03.2021 01:50