Docsity

CS501 Assignment 01: SRC Assembly Language Program and Memory Map, Exercises of Advanced Computer Architecture

Toggle sidebar
bg1
Advance Computer Architecture (CS501)
Assignment#01 (GRADED)
Total marks = 20
Deadline Date = 16-May-2016
Please carefully read the following instructions before attempting the assignment.
Assignment Guidelines:
It should be clear that your assignment would not get any credit if:
■The assignment is submitted after due date.
■The submitted assignment does not open or file is corrupt.
■The assignment is copied. Note that strict action would be taken if the submitted assignment
is copied from any other student. Both students will be punished severely.
■.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.
Important Note:
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: [email protected]
The objective of this assignment is to assess understanding of,
•SRC assembly language program
•SRC machine language program
•Memory Map for the SRC program
pf2

Partial preview of the text

Download CS501 Assignment 01: SRC Assembly Language Program and Memory Map and more Exercises Advanced Computer Architecture in PDF only on Docsity!

Advance Computer Architecture (CS501)

Assignment#01 (GRADED)

Total marks = 20

Deadline Date = 16-May-

Please carefully read the following instructions before attempting the assignment.

Assignment Guidelines:

It should be clear that your assignment would not get any credit if:

■ The assignment is submitted after due date. ■ The submitted assignment does not open or file is corrupt. ■ The assignment is copied. Note that strict action would be taken if the submitted assignment is copied from any other student. Both students will be punished severely.

■.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.

Important Note:

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: [email protected]

The objective of this assignment is to assess understanding of,

  • SRC assembly language program
  • SRC machine language program
  • Memory Map for the SRC program

Question:

Part 1)

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.

Part 2)

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

Good Luck