Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!