Assignment #3 Answer Sheet Name: Tutorial Group:

advertisement
Assignment #3 Answer Sheet
CS2100 (AY2015/6 Semester 1)
Name:
Tutorial Group:
You are to do this assignment on your own. (Students found copying will be penalised.)
Please write your name, tutorial group and answers in the answer sheet.
Submit this assignment before 21 October 2015, Wednesday, 5pm on EduTech. Late
submission will not be accepted.
Please submit to the correct group and name your file that includes your matriculation
number (eg: A0091234X.doc or A0091234X.pdf).
1. [3 marks]
if (A[i] < 91)
A[i] = A[i] + 32
2. [3 marks] Total number of cycles = _________________
3. [2 marks] Immediate value = _________________
4. [4 marks] Encoding for "j loop" in hexadecimal = 0x_________________
5. [3 marks] (1) _________________ (2)_________________ (3)_________________
6. [2 marks] Total number of cycles = ________________
7. [3 marks]
addi $t9, $zero, 10
slt
$t8, $t0, $t9
beq
$t8, $zero, end
➔
REMINDERS:
1. Have you written/typed your name and tutorial group number?
2. Does your filename contain your matriculation number?
Marks may be deducted if the above are not done.
CS2100 (AY20015/6 Semester 1)
Assignment #3
Download