Docsity

Memory Map, SRC Assembly Language Program-Computer Architecture and Assembly Language-Assignment Solution, Exercises of Computer Architecture and Organization

Toggle sidebar
bg1
Assignment No. 01
Solution File
Due Date:
Your assignment must be uploaded/submitted before or on 17th April 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.
docsity.com
pf3

Partial preview of the text

Download Memory Map, SRC Assembly Language Program-Computer Architecture and Assembly Language-Assignment Solution and more Exercises Computer Architecture and Organization in PDF only on Docsity!

Assignment No. 01

Solution File

Due Date:

Your assignment must be uploaded/submitted before or on 17 th^ April 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.

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