-1

In which of the above instructions is done writing in a register?

a) lw
b) bne
c) beq
d) sll
e) sw
f) add

I'm sure for d) and f) but I also think that a) and e) are correct. What do you think?

Viktor
  • 5
  • 3
  • SO is not a homework service. Please see [ask]. Concerning your problem, you miss a obvious one. And what is a register? Is PC a register? Maybe this will add extra yes answers? – Alain Merigot Jun 25 '19 at 20:10
  • In general register, not specified which type...Just that writes in register. – Viktor Jun 26 '19 at 02:57

1 Answers1

0

So Think about the general 5 stage pipeline used in MIPS F,D,E,M,W. (fetch, decode, execute, memory, write)

lw -> you are LOADING something from memory into variable (ends in write) sw -> you are taking a variable and writing into memory (ends in write)

Mango
  • 1
  • 2