Question

Consider the following MIPS assembly language instructions: addi $1, $2, 100 swr $1, 0($2): addi $rt, $rs, immediate # add im


0 0
Add a comment Improve this question Transcribed image text
Answer #1

addi $1, $2, 100 -- add 100 with $2 and store it in $1

RegDst - 1 => stores the result in register $1

ALUSrc - 0 => the source for 2nd alu input is not from ALU

MemToReg - 0 => it is not writing from memory to register

RegWrite - 1 => writing in register file ($1)

MemRead - 0 => not reading from memory

MemWrite - 0 => not writing to memory

Branch - 0 => not a branch instruction

ALUOp 1 - 1 => operand 1 is $2

ALUOp 2 - 1 => operand 2 is immediate

swr $1, 0($2)

RegDst - 1 => stores the result in register $1

ALUSrc - 1 => the source for 2nd alu input is from ALU (0+$2)

MemToReg - X => it is not writing from memory to register

RegWrite - 0 => not writing in register file

MemRead - 0 => not reading from memory

MemWrite - 1 => writing to memory

Branch - 0 => not a branch instruction

ALUOp 1 - 0 --- follows sw

ALUOp 2 - 0

Add a comment
Know the answer?
Add Answer to:
Consider the following MIPS assembly language instructions: addi $1, $2, 100 swr $1, 0($2): addi $rt,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT