Search code examples
assemblymipscpu-architecturemachine-codeinstruction-encoding

mips type R, I and J, RS, RT and RD fields length


Is there any particular reason why RS, RT and RD fields have 5 bits?


Solution

  • MIPS has 32 integer registers and 32 floating point registers and hence 5 bits are needed to represent each set of 32 registers.

    The register letters d, t, and s are placeholders for (register) numbers or register names.

    Read more on Wikipedia and also here