Professional Documents
Culture Documents
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.
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
.ORG 400
; start the code at address 400
The code starts at address 400 and each instruction takes 16-bits in the memory.