You are on page 1of 2

Assignment No.

01

Due Date:
Your assignment must be uploaded/submitted before or on 07th November 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 = 20
Q1.
Part a: 15 marks
Write an SRC assembly language program to evaluate the following expression:
f = 4(k+32) + 16(g-h)
Note that your code should not change the source operands and also keep in mind
that the SRC does not have a multiply instruction
Part b: 5 marks
Draw memory map table for the above program using the following scenario and assume
that SRC uses 16-bit memory in this case.
.ORG
k:
g:
h:
f:
;

300
.DW
.DW
.DW
.DW

; start the next line at address 300


1
;
1
;
1
;
1
;

.ORG 400
; start the code at address 400
The code starts at address 400 and each instruction takes 16-bits in the memory.

You might also like