Question: MIPS: I need to create an autocoder The project has several requirements, which must be followed. The requirements are divided into 1) Getting the input
MIPS: I need to create an autocoder
The project has several requirements, which must be followed. The requirements are divided into 1) Getting the input of five opcodes, 2) filling the missing instruction fields, 3) displaying the completed assembly instructions.
also if $t2 is used for add $t2, $t0, $t1 then you must use $t4, $t2, $t3 and so on if all of the t registers are used then reuse them
Here is the sample output:

Welcome to Auto Coder! The opcode (1-9: 1-add, 2-addi, 3-or, 4-ori, 5-lw, 6-su, 7-j, 8-beq, 9-bne) please enter the 1st opcode: 2 please enter the 2nd opcode: 1 please enter the 3rd opcode: 5 please enter the 4th opcode: 7 please enter the 5th opcode: 9 The completed code is 100 : addi $t1, $t0, 100 L101: add $t3, $t1, $t2 L102 : lw $t4, 101(St3) L103 : j L102 L104 : bne $t6, $t5, L103 The machine code is 0x21090064 0x012a5820 0x8d6c0065 0x08100002 0x15cdfffe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
