You are given an instance of a program in MARS MIPS simulator window. Register $29, named stack pointer, stores the address of an integer on TOP of the stack. Some values (pushed) stored on this stack are shown in DATA SEGMENT window. La an Setngs Josts speed at max no interaction Ede Eecute Hegoters Coprec1 Coproc Name Number text Segment ere Addresa Coe Basic Source 11 1 i the k wo014 O tttaasie i,4,0stttttttt PPS 1the .. st 2, Dep 11 12 Pb p, tep, 1 the 90410030 ONOiet 2,429, 1 14 36 Data Segment Adress Value Value (10 Va 14) Vale 1 Value to 21 22 28 ist 24 25 26 cnt Sap Hedecimal AdtressesHeatecimal Vales DASC 29 Mers Messages RunO 30 31 ereti reset eoepietes. Cear PLEASE SHOW YOUR WORK how did you get your answer! 2.1. As] What value is stored in stack pointer register Ssp? How this value is used in the program? 2 inints] What is the signed decimal value of an integer stored on top of the stack.? ( HINT: you have to find it in Data Sey Wisgawindow). 2.3.1 2.r.Ats] Compute the address of an integer stored on the stack at offset +12 from the stack pointer (Hint: Use the answer objained in question 2.1). 2.3.2[41 4.Í g What is the signed decimal value of the integer at this address? (Hint: Use the address obtained in question 2.3.1) 2.4.14.4. Lats] Compute the address of an integer stored on the stack at offiet +20 from the stack pointer. 2.4.2 4. 28] What is the signed decimal value of the integer at this address? 2.. nts] Can you determine the unsigned value of an integer stored in register $29?

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

MIPS Programming... 

Data segment! 

 

You are given an instance of a program in MARS MIPS simulator window.
Register $29, named stack pointer, stores the address of an integer on TOP of the stack. Some values (pushed) stored on this
stack are shown in DATA SEGMENT window.
Ee tat Bun Setirgs Toots e
Run speed at max (no interaction)
Ede Execute
Registers Coproc1 Coproc d
O Text Segment
Name
Numter
Value
Szere
Get
Bipt
Addrasa
Code
Basic
Source
1
7:
wd041000e Ow20010004 addi 41,40, KOt000014
sub sep, p, 4
1 1s the k..
sat
tal, Dip
9:
sab p,
+1 se the k...
10
l1 498, OKBO000101
12
ab iap, Gap, 12
the..
twd0es0030 On0alet22aub 425, 429, 41
14
15
16
17
FEO -
O Data Segment
Address
Value (
Value (4
Vaue (a)
Value (c)
Value (10)
Vaue 14
Value
Value (t
19
20
21
22
Owt000000
23
24
25
26
27
current Sap
Hexadecimal Addresses Hexadecimal Values ASCI
29
30
Mars Messages
Run O
Era
1
Oa0040003
keset reset conpleted.
Clear
PLEASE SHOW YOUR WORK how did you get your answer!
2.1.
ts] What value is stored in stack pointer register Ssp? How this value is used in the program?
inints] What is the signed decimal value of an integer stored on top of the stack.? ( HINT: you have to find it in Data
Sey Wiiywindow).
2.3.1 2r.Ats] Compute the address of an integer stored on the stack at offset +12 from the stack pointer (Hint: Use the
answer obtained in question 2.1).
2.3.2 [41 4.1Í 14 What is the signed decimal value of the integer at this address? (Hint: Use the address obtained in question
2.3.1)
2.4.14. 4.3 Lats] Compute the address of an integer stored on the stack at offset +20 from the stack pointer.
2.4.2 4. 2s] What is the signed decimal value of the integer at this address?
2.9-
sts] Can you determine the unsigned value of an integer stored in register $29?
Transcribed Image Text:You are given an instance of a program in MARS MIPS simulator window. Register $29, named stack pointer, stores the address of an integer on TOP of the stack. Some values (pushed) stored on this stack are shown in DATA SEGMENT window. Ee tat Bun Setirgs Toots e Run speed at max (no interaction) Ede Execute Registers Coproc1 Coproc d O Text Segment Name Numter Value Szere Get Bipt Addrasa Code Basic Source 1 7: wd041000e Ow20010004 addi 41,40, KOt000014 sub sep, p, 4 1 1s the k.. sat tal, Dip 9: sab p, +1 se the k... 10 l1 498, OKBO000101 12 ab iap, Gap, 12 the.. twd0es0030 On0alet22aub 425, 429, 41 14 15 16 17 FEO - O Data Segment Address Value ( Value (4 Vaue (a) Value (c) Value (10) Vaue 14 Value Value (t 19 20 21 22 Owt000000 23 24 25 26 27 current Sap Hexadecimal Addresses Hexadecimal Values ASCI 29 30 Mars Messages Run O Era 1 Oa0040003 keset reset conpleted. Clear PLEASE SHOW YOUR WORK how did you get your answer! 2.1. ts] What value is stored in stack pointer register Ssp? How this value is used in the program? inints] What is the signed decimal value of an integer stored on top of the stack.? ( HINT: you have to find it in Data Sey Wiiywindow). 2.3.1 2r.Ats] Compute the address of an integer stored on the stack at offset +12 from the stack pointer (Hint: Use the answer obtained in question 2.1). 2.3.2 [41 4.1Í 14 What is the signed decimal value of the integer at this address? (Hint: Use the address obtained in question 2.3.1) 2.4.14. 4.3 Lats] Compute the address of an integer stored on the stack at offset +20 from the stack pointer. 2.4.2 4. 2s] What is the signed decimal value of the integer at this address? 2.9- sts] Can you determine the unsigned value of an integer stored in register $29?
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY