12

Take MIPS instruction format described here, there are some abbreviations eg rd,rs and rt. What does rt stands for? I know rt is the second source register in R-type instruction, and is the destination register in I-type instruction. It is easy to guess rd stands for register destination; rs stands for register source. What about rt? I guess it might be "register temporary"? Is there an authoritative source about this?

Michael Z
  • 4,534
  • 4
  • 21
  • 27

3 Answers3

23

t is just the next letter after s, so rs is the first source register, rt is the second source register. (If there could be a third source register it would most likely be ru.)

Paul R
  • 208,748
  • 37
  • 389
  • 560
  • 2
    what about I-Type commands, which only have RS and RT, and the result is written into RT? https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Mips/format.html – Yoav Feuerstein Sep 04 '15 at 15:13
  • @yoav85: "I" in this context is just short-hand for "immediate". There are two registers and an immediate value. – Paul R Sep 04 '15 at 15:15
3

rt stands for "register target". Just like been said above, in I-Type commands, the result is written into rt

Daniel
  • 198
  • 2
  • 14
0

"register temporary", I think so.