I have a question did I write a good table for next code

add r3,r2,47
sw r2,0(r1)
lw r1,0(r2)
lw r2,100(r1)
sw r1,200(r2)
sub r3,r5,r6

is this ok? I am not so sure for lw I have mem r2+0 and store to r1, but is that need to be in separate cycle or not? For add,sub we do not use memory acces so I write '-'

enter image description here

  • $\begingroup$ We discourage "please check whether my answer is correct" questions, as only "yes/no" answers are possible, which won't help you or future visitors. See here and here. Can you edit your post to ask about a specific conceptual issue you're uncertain about? As a rule of thumb, a good conceptual question should be useful even to someone who isn't looking at the problem you happen to be working on. If you just need someone to check your work, you might seek out a friend, classmate, or teacher. $\endgroup$ – dkaeae Feb 18 '19 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.