Why didn't MIPS designers use the 5 remaining bits in R-format instructions for some other useful things?
问题 In MIPS the R-format is encoded like this opcode (6) | rs (5) | rt (5) | rd (5) | shamt (5) | funct (6) The shamt field is used only in shift or rotate instructions . In other cases it's always 0. So why couldn't they use it for other more useful things? IMHO it'll be much better to use that field to store the register number that stores the carry/borrow in add or sub instructions . For example addu $Rdest, $Rcarry, $Rsrc1, $Rsrc2 $Rcarry will only be set to 0 or 1 depending on the carry bit.