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

1. What would be the encoding of this instruction: nor $t3, $s5, $t1? Write your

ID: 3563183 • Letter: 1

Question

1. What would be the encoding of this instruction: nor $t3, $s5, $t1? Write your answer as an 8-hexdigit integer, e.g.,
0x12345678, and for full credit explain how your answer was obtained.


2. What would be the encoding of this instruction: xori $t9, $s2, 12134? Write your answer as an 8-hexdigit integer,
e.g., 0x12345678, and for full credit explain how your answer was obtained.


3. Decode this instruction: 0x8EE1FE0C. If the assembly language instruction contains any numbers write them in
decimal and for full credit explain how your answer was obtained.


4. Decode this instruction: 0x000261C3. If the assembly language instruction contains any numbers write them in
decimal and for full credit explain how your answer was obtained.

Explanation / Answer

1) & 2)nor and xori which is not supporing instruction in mips

3)

(i)convert the givenhexa value to equallent 32 bit binary value

0x8EE1FE0C=(10001110111000011111111000001100)2

(ii)Formulate this 32 bit as below

Binary (I Type) (6,5,5,16 bits):(OPCODE,RS,RT,Addressing type/Immediate)

(100011 10111 00001 1111111000001100)

100011-indicates binary opcode;35-represent the decimal value of opcode- which represent the MIPS opcode is lw

10111-indicates binary RS-22-represent the decimal value of RS-which represent the MIPS RS value $

00001-indicates binary RT-01-represent the decimal value of RT-which represent the MIPS RT value 1

1111111000001100-ndicates binary Addressing type/Immediate ;-500-represent the decimal value of Addressing type/Immediate-which represent the MIPS Addressing type/Immediate value $23

so the decode instruction is

lw $1, -500($23)

4)0x000261C3= 00000000000000100110000111000011

000000-opcode-0-not valid value to find opcode

00000-RS-0-not valid value for RS

so it must be invalid code