Advance Computer Architecture (CS501)
Total marks = 20
Deadline Date = 16-May-2016
Please carefully read the following instructions before attempting the assignment.
It should be clear that your assignment would not get any credit if:
1) You should consult recommended books to clarify your concepts as handouts are not sufficient.
2) You are supposed to submit your assignment in .doc or docx format. Any other formats like scan images, PDF, Zip, rar, bmp etc will not be accepted.
3) You are advised to upload your assignment at least two days before due date.
Assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of the deadline, and try to upload Solutions at least 02 days before the deadline to avoid inconvenience later on.
For any query please contact: CS501@vu.edu.pk
The objective of this assignment is to assess understanding of,
Write an SRC assembly language program to evaluate the following expression:
a = 128(b+c) + 16(d-33)
Note: Keep in mind that your code should not change the source operands and SRC does not have a multiply instruction.
You are required to develop a memory map for the above program (part 1) by using the following scenario:
.ORG 400 ; start the next line at address 400
b: .DW 1 ; reserve one word for the label b in the memory
c: .DW 1 ; reserve a word for c, this will be at address 404
d: .DW 1 ; reserve a word for d, will be at address 408
a: .DW 1 ; reserve one word for the result
.ORG 500 ; start the code at address 500
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
Please Discuss here about this assignment.Thanks
Our main purpose here discussion not just Solution
We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.
Share your best ideas to have it finished.... it is the honor to feed others from your best knowledge and efforts. Thanks
Just to give u idea of question no.1
a = 128(b+c) + 16(d-33)
ld R1, d
sub R2, R1, 33 ; R2 contains (d-33)
shl R3, R2,4 ;R3 contains 16(d-33) LHS
ld R4, b
add R6, R4, R5 ; R6 contains (b +c)
shl R7, R6, 11.32 ;R7 contains 127(b+c)
add R8, R3, R7
Bhai krna kiYaa hai is assignment kaa kuxh smj nai lag rHi....
discuss kro ,,,ya last date ka wait kr rhay sb ??
koi to sol. de dooo
give any solution
128 ko bitwise shift kr k muultiply ni ho rha bs ...es ka socho sb