View more random threads:
- CS601 Data Communication Assignment No.4 Solution Fall...
- MTH401 Differential Equations Assignment No.1 Solution...
- CS402 Theory of Automata assignment no 1 spring fall...
- CS502 assignment no 3
- GDB Solution for cs 402
- CS304 Assignment 02
- CS614 Data Warehousing Assignment No 2 Solution Fall...
- Mth101
- CS614 Assignment No. 03 Spring 2011 idea solution
- CS508 Modern Programming Languages Assignment No.4 Fall...
CS501 Advance Computer Architecture Assignment No.2 Fall Semester December 2012
Assignment No. 02
Sponsored Links
Due Date:
Your assignment must be uploaded/submitted before or on 4th Dec 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.
Q.Total Marks = 15
In assignment # 1 you were asked to write an SRC assembly language program to evaluate the given expression i.e. f = 4(k+32) + 16(g-h)
The sequence of instructions is given and you need to find out the hexadecimal memory contents of all the instructions in the given table except which is not required, accordingly.
Label Address Value
k 300 Unknown
g 302 Unknown
h 304 Unknown
f 306 Unknown
Memory Address Memory
Contents Hexadecimal Memory Contents
400 ld R1,g
402 ld R2,h
Not Required
404 sub R3,R1,R2
406 shl R7,R3,4
408 ld R4,k
Not Required
410 addi R6,R4,32
Not Required
412 shl R8,R6,2
Not Required
414 add R9, R8,R7
416 st R9,f
There are currently 1 users browsing this thread. (0 members and 1 guests)