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

D Question 1 4 pts n a byte-addressable memory. The byte address of memory word

ID: 3750001 • Letter: D

Question

D Question 1 4 pts n a byte-addressable memory. The byte address of memory word 1510 is 0x If the number OxFF223344 is stored at word 1510 in a big-endian machine then the byte addressed by Ox3D has the data value Ox D | Question 2 12 pts Convert the three instructions below into their hexadecimal sequence fie. hexadecimal version of their binary sequence representations in memory) 1. add $t0, $s0, $s1 in hexadecimal is Ox 2·lw St0, 0x20(St7) in hexadecimal is Ox 3. addi $50, SO,-10 in hexadecimal is Ox Question 3 4 pts Suppose that $s3 initially contains 0x23456789. The instruction sw 5s3. 4150) stores the data in register $33 into memory word number . This word has the byte address Ox After this sw instruction has stored in memory, the instruction Ib $s3, 450) londs dats into $:3. In a big endian machine the value imide $-3 wil be o and in a itterentian machine the value will be0

Explanation / Answer

ANSWER:

b)

Convert the three instructions below into their hexadecimal sequence (i.e. hexadecimal version of their binary sequence representations in memory)

1. add $t0, $s0, $s1 in hexadecimal is 0x02114020

Explanation:-

             R-type instruction format:-

                    Opcode(6-bit) Rs(5-bit)      Rt(5-bit)        Rd(5-bit)      shamt(5-bit)    func(6bit)

                    000000            $s0(10000)   $s1(10001) $t0(01000)    00000           100000

                    Convert into hex->0X02114020

2. lw $t0, 0x20($t7) in hexadecimal is 0x8de80020

Explanation:-

             I-type instruction format:-

                    Opcode(6-bit) Rs(5-bit)      Rt(5-bit)       address(16-bit)

                    100011            $t7(01111)   $t0(01000)    0000000000100000

                    Convert into hex->0X8de80020

3. addi $s0, $0, 10 in hexadecimal is 0x2010fff6

Explanation:-

             I-type instruction format:-

                    Opcode(6-bit) Rs(5-bit)      Rt(5-bit)       Immediate(-ve 2's complement10)

                    001000           $0(00000)   $s0(10000)    1111111111110101

                    Convert into hex->0X2010fff6

(C)

       Explanation:-

             I-type instruction format:-

                    Opcode(6-bit) Rs(5-bit)      Rt(5-bit)       address(16-bit)

                    101011            $t0(00000)   $s3(10011)    000000000000000100

                    Convert into hex->0Xac130004

---------------------------------------------------------------

             I-type instruction format:-

                    Opcode(6-bit) Rs(5-bit)      Rt(5-bit)       address(16-bit)

                    100100            $t0(00000)   $s3(10011)    000000000000000100

                    Convert into hex->0X80130004

as per chegg rules i have answer two parts out of three