We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


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: CS501@vu.edu.pk

 

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

 


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 4486

Attachments:

Replies to This Discussion

Bhai plz full solution upload krden...

goood

2*7 kro gye tu 128 aye ga bhai jese 4 likha tha na r3,r1,4 some thng us trah neechy step me 7 kr do easy :) 

solution file is attached. Download and check it either correct or not .... give comments

Attachments:

is this answer correct..???

ye incomplete hai

►RANA G◄ 
Bhai ap hi solution file upload kr do
100% na kro
70% solution upload kr do . . . . . 

IS IT CORRECT ANSWER?

128 ko kese kren ge ??

idea sol:

DATA SEGMENT      FIRST DB 37      SECOND DB 25      RES1 DW ?      RES2  DB 10 DUP ('$')      MSG2 DB 10,13,"RESULT : $"  ENDS CODE SEGMENT      ASSUME DS:DATA CS:CODE START:       MOV AX,DATA       MOV DS,AX            MOV CX,8       MOV AL,FIRST       CBW       MOV BL,SECOND          NXT:        SHR BL,1       JNC SKIP       ADD RES1,AX       SKIP:       SHL AX,1       LOOP NXT             MOV AX,RES1                              LEA SI,RES2       CALL HEX2DEC           LEA DX,MSG2       MOV AH,9       INT 21H              LEA DX,RES2       MOV AH,9       INT 21H              MOV AH,4CH       INT 21H      CODE ENDS HEX2DEC PROC NEAR     MOV CX,0     MOV BX,10     LOOP1: MOV DX,0        DIV BX        ADD DL,30H        PUSH DX        INC CX        CMP AX,9        JG LOOP1              ADD AL,30H        MOV [SI],AL       LOOP2: POP AX        INC SI        MOV [SI],AL        LOOP LOOP2        RET HEX2DEC ENDP END START
DATA SEGMENT      FIRST DB 37      SECOND DB 25      RES1 DW ?      RES2  DB 10 DUP ('$')      MSG2 DB 10,13,"RESULT : $"  ENDS CODE SEGMENT      ASSUME DS:DATA CS:CODE START:       MOV AX,DATA       MOV DS,AX            MOV CX,8       MOV AL,FIRST       CBW       MOV BL,SECOND          NXT:        SHR BL,1       JNC SKIP       ADD RES1,AX       SKIP:       SHL AX,1       LOOP NXT             MOV AX,RES1                              LEA SI,RES2       CALL HEX2DEC           LEA DX,MSG2       MOV AH,9       INT 21H              LEA DX,RES2       MOV AH,9       INT 21H              MOV AH,4CH       INT 21H      CODE ENDS HEX2DEC PROC NEAR     MOV CX,0     MOV BX,10     LOOP1: MOV DX,0        DIV BX        ADD DL,30H        PUSH DX        INC CX        CMP AX,9        JG LOOP1              ADD AL,30H        MOV [SI],AL       LOOP2: POP AX        INC SI        MOV [SI],AL        LOOP LOOP2        RET HEX2DEC ENDP END START

Plzz koi theek or authenticated solution e upload kr day. Tariq bhai.... aap kahaan gum hain... hr jaga ap kaaam atay hain.. aaaj koi ataa pataa e ni apka

RSS

Latest Activity

Mifa Fadel liked +M.Tariq Malik's discussion SOC101 Introduction to Sociology Assignment 01 Fall 2020 Solution / Discussion
1 hour ago
shifa arshad added a discussion to the group CS605 Software Engineering-II
4 hours ago
shifa arshad joined +M.Tariq Malik's group
4 hours ago
Profile Iconиαвєєℓ αнмє∂ and Ali Fahad joined +M.Tariq Malik's group
5 hours ago
shifa arshad replied to +M.Tariq Malik's discussion MGT502 Organizational Behavior GDB No 01 Fall 2020 Solution / Discussion in the group MGT502 Organizational Behavior
6 hours ago
shifa arshad joined +M.Tariq Malik's group
6 hours ago
+ !! SARAH replied to Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
7 hours ago
+ ᴄᴏғғᴇᴇ updated their profile
7 hours ago
Rizwan Mushtaq joined +M.Tariq Malik's group
8 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** My Drawing ***
8 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
8 hours ago
Arooj Shahid liked Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
8 hours ago
Arooj Shahid liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
8 hours ago
Arooj Shahid liked Omar's discussion Dua
8 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
9 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
9 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT201 Financial Management GDB No 01 Fall 2020 Solution / Discussion in the group MGT201 Financial Management
9 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT201 Financial Management GDB No 01 Fall 2020 Solution / Discussion in the group MGT201 Financial Management
9 hours ago
Profile IconSaba Shahzadi, waqar, Hammad Syed and 12 more joined Virtual University of Pakistan
9 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion ENG001 Elementary English GDB No 01 Fall 2020 Solution / Discussion Last Date: 04-12-2020 in the group ENG001 Elementary English
9 hours ago

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.