An R-type instruction has the format: opcode rs rt rd shamt func.
For example, I have an R-type instruction sll $s0,$so,2, what is stored in shamt (shift amount) field of the above format?
Shamt stands for shift amount which will contain the number by which you want you shift, in this case 2, so the shamt will be 2 in binary: 00010
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With