MIPS Machine Code

R-Type

  • Arithmetic and logic operations
    • op: operation code
    • rs: first operand register
    • rt: second operand register
    • rd: result register
    • shamt: shift amount
    • funct: function, options for one operation

I-Type

  • Immediate versions of arithmetic and logic operations
  • Data transfer instructions and conditional branching
  • Immediate value is a 16-bit number in two’s complement

J-Type

  • Used for unconditional jump
  • Target is a 26-bit number that will be interpreted as a word address