Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

Students also viewed these Databases questions