Showing posts with label CS401. Show all posts
Showing posts with label CS401. Show all posts

CS401 GDB Solution Spring 2019


Hello VU students here is the solution of CS401- Computer Architecture and Assembly languages GDB No.1 Spring 2019. GDB total marks 5. GDB Solution file. You also like our Facebook Page, Join Facebook Group, follow on Google+ and Subscribe our YouTube Channel. Please Share it with your Friends. Thank you.
Solution for the GDB is presented for your convenience. Download it and make it according to your requirement and do not copy paste.

GDB Solution:
C language will be used as a high level language for the given scenario because of appropriate memory.
In early times assembly language was considered as better than high level language but now high level languages made progress in following properties.
1.  Structure

C language is easy to maintain and construct and as difficult as assembly language is complex and problematic to use and debug.
2.  Portability
C language is a high level language portable and used at any machine without editing while assembly language don’t have this property.
3.  Code Optimization
Code Optimization can be done by C language but assembly level language cannot do code optimization.

CS401 Assignment 2 Solution fall 2017

CS401 ASSIGNMENT 2 SOLUTION FALL 2017

Dear VU (Virtual Universityof Pakistan) Students, here you read and download CS401 (Computer Architectureand Assembly Language) Assignment No.2 Solution Fall–2017. Assignment Total Marks 25. You can download easily Assignment Solution click the download button and get Assignment Solution. Assignment Open Date 13th January 2018 and Assignment Closing Date 18th January 2018. You can also like for latest update our Facebook page, YouTube channel and follow on Google+. (VU KI DUNIYA) Previously shared CS401 (Computer Architecture and Assembly Language) AssignmentNo.1 Solution fall–2017.                

Question No.1:  
You are required to write a code that will first clear the screen and then display your VU id on Top Left corner as you will type it. Once you have finished typing your VU id you will press Enter key and you will exit from your program,
Note 1:You will use keyboard controller and interrupt chaining to display VU id as you will type it
Note 2:keep name of assembly file according to your VU id , i.e. if your VU id is BC123456789 , you will keep name of the assembly code file as 23456789.asm i.e. you will use last 8 digits of your id for the source code file name.
Note 3:If the VU id typed on screen, files names or the screen shots will not be according to your VU id you will get zero marks
Note 4:Scan codes are given at https://msdn.microsoft.com/en-us/library/aa299374(v=vs.60).aspx
Note 5:You will submit code and five screen shots in Microsoft Word file as shown below.
Example Run/Solution:
Let’s say you id is BC123456789,
First you will make your source code file as 2345678.asm, and then you will assemble the code. Your first screen shot should look like this
 
Then you will enter the name of file on the command prompt to run you program and 2nd screen shot should look like this
Then you will press Enter key and screen be cleared as your program will start
Once you are in your program you will start typing your VUID, and you will take the forth screen shot.
and once you have typed your VU ID you will press enter to end the program and take fifth screen shot
Your final screen shot will be like shown below

DOWNLOAD ASSIGNMENT SOLUTION 

Download CS401 Assignment Solution by Clicking the Download Button Below in just single Click.

Download

You can Also Download Midterm Solved Past Papers referenceby Moaaz and Waqar SidhuFinal term Solved Past Papers reference by Moaaz and WaqarSidhuGDB SolutionsAssignment Solutions, and Solved Quizzes filesPPTSlidesHandoutsFinal term Short Notes, Mid Term Short Notes and NTS Guidelines.

CS401 Assignment 2 Solution fall 2017:

CS401 Assignment 2 Solution fall 2017:

Dear Students, Here You can read and download Computer Architecture and Assembly Language (CS401) Assignment fall 2017 and discussion of fall 2017.  Assignment Due Date: 14 November, 2017. Assignment Total Marks: 15.




Assignment Important Instructions:  

Question No.1:

You will write a program to find the maximum number and the minimum number from array of fifteen numbers given below. You will store the maximum number in AX and Minimum number in BX register.

You will use the array given below,
  • First and the last number in the array will be from your VU id
  • (First two digits of your VU id after degree code), 50, 30, 24, 19, 2, 5, 6, 40, 8, 23, 16, 17, 28, (Last two digits of your VU id)
  • For example, if your VU id is bc123456789 you will use array as
  • 12, 50, 30, 24, 19, 2, 5, 6, 40, 8, 23, 16, 17, 28, 89
  • Explain each instruction of program in comments and also provide/paste snapshot of your assembled and debugged program result which will be run in AFD (A Full Screen Debugger) window showing the executed code and final result i.e. value in AX.
  • You will submit code and two screen shots in word file.
  • First screenshot will contain the command to compile the code.
  • Second screenshot will contain the final values in AX and BX.

Note 1:
You will use conditional jumps to solve the above problem. Marks will not be awarded for using any other approach.

Note 2:
keep name of assembly file according to your VU id, i.e. if your VU id is BC123456789, you will keep name of the assembly code file as 23456789.asm i.e. you will use last 8 digits of your id for the code file name.

Note 3:
If the numbers array, files names in the screen shots will not be according to your VU id you will get zero marks.

Note 4:
Marking distribution (Code: 5 marks & Snapshots: 10 marks)

Example Run:
Let say your id is BC123456789, you will use array as shown below, note the first and last number in array
12, 50, 30, 24, 19, 2, 5, 6, 40, 8, 23, 16, 17, 28, 89

Your first screen shot will look like this




Your final screen shot will be like shown below AX and BX conataing the maximun and miminimum values.


Download Complete CS401 Assignment Solution fall 2017:

Download CS401 Assignment Solution by Clicking the Download Button Below in just single Click.
Assignment
If Assignment Solution was helpful. Please Share it with your friends. You can also like our Facebook Page or Subscribe Us below for Updates. Thank You.