

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Your assignment must be uploaded/submitted before or on 17 th^ April 2012
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.
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.
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.
Total Marks = (15 + 5)
Q1.
Part a. Write an SRC assembly language program to evaluate the following expression:
a = 32(b-c) +8(d+32)
Note that your code should not change the source operands and also keep in mind that the SRC does not have a multiply instruction
ld R1,d
addi R3,R1,
shl R7,R3,
ld R4,b
ld R5,c
sub R6,R4,R
shl R8,R6,
add R9, R8,R
st R9,a