12-01-2012, 10:00 PM
CS501 Advance Computer Architecture Assignment No.2 Fall Semester December 2012
Assignment No. 02
Due Date:
Your assignment must be uploaded/submitted before or on 4th Dec 2012
Uploading instructions:
Please view the Assignment Submission Process document provided to you by the Virtual University for uploading assignments.
• Assignment should be in .doc format.
• Save your assignment with your ID (e.g. bx020200786.doc).
• Assignment submission through email is highly discouraged.
Rules for Marking:
It should be clear that your assignment will not get any credit if:
• The assignment is submitted after due date.
• The submitted assignment file is corrupted.
• The assignment is copied.
Note:
Your answer must follow the below given specifications. You will be assigned zero marks if you do not follow these instructions.
• Font style: “Times New Roman”
• Font color: “Black”
• Font size: “12”
• Bold for heading only.
• Font in Italic is not allowed at all.
• No formatting or bullets are allowed to use.
Q.Total Marks = 15
In assignment # 1 you were asked to write an SRC assembly language program to evaluate the given expression i.e. f = 4(k+32) + 16(g-h)
The sequence of instructions is given and you need to find out the hexadecimal memory contents of all the instructions in the given table except which is not required, accordingly.
Label Address Value
k 300 Unknown
g 302 Unknown
h 304 Unknown
f 306 Unknown
Memory Address Memory
Contents Hexadecimal Memory Contents
400 ld R1,g
402 ld R2,h
Not Required
404 sub R3,R1,R2
406 shl R7,R3,4
408 ld R4,k
Not Required
410 addi R6,R4,32
Not Required
412 shl R8,R6,2
Not Required
414 add R9, R8,R7
416 st R9,f
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
