Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part C: Carefully study the following data definitions, and assuming data segment starts at address 0 x 1 0 0 0 8 0 0 0

Part C: Carefully study the following data definitions, and assuming data segment starts at address 0x10008000, answer the next 4 questions. {6x1=6 pts }
.data
X: .byte -10
Y: .word 0x6c4f903e,0X22334455
arr: .half 0x9a2c,0xac89,0x9876,0xC000,-1
a: .double 80.75
b: .float -20.0
res: .float 0.0
1)
The number of bytes (in DEC)occupied by the data segment is 40 bytes.
2)
The address (in HEX)of the variable Y will be 0x10008004 and the address of the variable b (in HEX) will be 0x10008020
3)
What will be in (HEX) in registers $t1, $t2, and $t3 after executing the following code?
la $t0, X
lh $t2,10($t0) # $t2=0x00002233
lw $t3,4($t0) # $t3=0x6c4f903e
4)
At the time when the CPU is executing the instruction at memory address 0x00002F08, the pc register contains (in HEX)0x00002F08+4=0x00002F0C

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions

Question

What are oxidation and reduction reactions? Explain with examples

Answered: 1 week ago