I am studying for the MIPS instruction code conversion to binary. I noticed while doing some conversions that instructions are formatted differently depending on the mnemonics(since DIFFERENT OPERATIONS) even they are the same I-type.
sw $t7, 36($s7) #MIPS instruction
|func|($s7)|($t7)|36| #Basic Instruction format
beq $t5, $s0, Loop #MIPS instruction
|func|($t5)|($s0)|Loop| #Basic Instruction format
I would like to receive tips on how I will be able to convert instruction to binary quickly. If there is no trick on doing this easy, please let me know other formats like above.
Answers will be greatly appreciated.