Solution:
      op(6 bits) |
   rs(5 bits) |
   rt(5 bits) |
    rd(5 bits) |
  shamt (5 bits) |
funct(6 bits) |
                                                     Â
( R)
     op(6 bits) |
       rs(5 bits) |
rt(5 bits) |
       address/immediate(16
bits) |
                                                     Â
(I)
            Â
op(6 bits) |
                    Â
target address(26 bits) |
                                                    Â
(J)
The fields in the frame are listed below:
=>op: opcode field
=>rs: source operand register (first)
=>rt: source operand register (second)
=>rd: destination operand register
=>shamt: the amount by which needs to be shifted
=>funct: function code
=>address: offset for load/store instructions
=>immediate: immediate instructions constants.