____________________________
_________________________________________
Q0. I am having difficulty opening MARS. I have all of mars and java installed and restarted my computer but Mars is still not opening for me. If you can let me know what I could've missed in the downloading process that would be greatly appreciated.
A0. Follow the installation instructions closely and compare notes with your classmates.
_______________________________________________
_______________________________________________
_______________________________________________
Common Q&A (FYI: Common Q&A are questions asked by the previous classes)
Q1
I went to perform EX01, but the Execute page in MARS came up with two extra steps that did not show up in your lecture video. Is this normal/expected?
A1.
What happened is in this version of MARS, it decided to interpret our instruction "addi" into 3 "Basic" instructions: lui, ori, add. They are doing the same thing.
FYI: EX02 shows you how "lui" instruction works, EX06 shows how "ori" instruction works. Once you learn these instructions and come back to review, it will make sense.
_________________________________________________________
________________________________________
Common Q&A
__________________________________________
Late:9/6 12:01 am –9/7 11:59 pm
Game Over: after 9/7 11:59 pm: 0 points
____________________________________
Common Q&A
Q0. how would we write the decimal / hexadecimal form in MIPS?
A0. Example
addi $s2,$zero,15 # decimal 15
addi $s2,$zero,0x0f # hexadecimal : 0x0f = decimal 15
Q1.
I just noticed that google doc autocorrect the "andi" and "ori" functions to "and" & "or" when I exited and reopened the document, even though I initially typed them as "andi" and "ori". Is there any way I can get the points I missed for the improper functions back?
A1.
No. Not after I post the solutions. You need to double check the results before you submit the report. I can only grade the submitted report.
____________________________________
Q2.
What is the difference between "and" and "andi"?
A2.
Example:
and $s3, $s1, $s2 # $s2 is a register
andi $s1, $s1, 0x0f0f # 0x0f0f is a number
So, when the second operand is a register, you use and.
When the second operand is a number, you use andi
____________________________________
Q3.
Attached is my preliminary report, please give me feedback so that I can improve my scores.
A3.
I treat each assignment like a test. As an instructor, I won't tell you if your answer is correct or guide you to a correct answer during the test.
So compare notes among your team, give it your best shot & submit the assignment individually.
I will post solutions & provide feedback after the due date.