Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In a certain program, the data section is setup as follows: .data 0x10005008 val

ID: 3614166 • Letter: I

Question

In a certain program, the data section is setup as follows:

                       .data     0x10005008

value1:            .word    0x784EBCD0

value2:          .word    -3

Assuming that the MIPS operates in little endian mode, whatvalue would be placed

into $5 by each of the following instructions if $4 contains theaddress of value1 and $6 contains the address of value2:

a)        lw        $5,0($4)

b)        la         $5,0($4)

c)        li         $5,value2

d)        lb         $5,3($4)

e)        lbu       $5,2($6)

f)        lh         $5,2($4)

g)        lh         $5,2($6)

Explanation / Answer

please rate - thanks

In a certain program, the data section is setup as follows:

                       .data     0x10005008

value1:            .word    0x784EBCD0

value2:          .word    -3

Assuming that the MIPS operates in little endian mode, whatvalue would be placed

into $5 by each of the following instructions if $4 contains theaddress of value1 and $6 contains the address of value2:

a)        lw       $5,0($4)                784ebcd0

b)        la        $5,0($4)                10005008

c)        li        $5,value2                 gets error

d)        lb        $5,3($4)               78

e)        lbu      $5,2($6)               ff

f)        lh        $5,2($4)                784e

g)        lh        $5,2($6)               ffffffff