CS401 Assignment No 1 Solution Spring 2018 | Virtual Study Solutions

Adsetra Ads

 

CS401 Assignment No 1 Spring 2018

Dear Students, Here you can read or Download CS401 - Computer Architecture and Assembly Language Programming Assignment No 1 Solution and Discussion of Semester Spring 2018. Assignment Due Date is 10 MAY, 2018. Total Marks are 15. We are here to facilitate your learning and we do not appreciate the idea of copying or replicating solutions. CS401 Assignment Solution File has been added. Previously we shared CS401 Mid Term Past Papers / Notes.

CS401 Assignment No 1 Solution and Discussion Spring 2018
CS401 Assignment No 1 Solution and Discussion Spring 2018 

CS401 Assignment Question No 1:

You will write a program to find the sum of even and odd digits of your VU id, You will store the sum of even digits in AX and sum of odd digits in BX register.

For example If your VU id is bc123456789 you will use two arrays as 2,4,6,8 1,3,5,7,9

Then save the sum of first array in AX and second array in BX in hexadecimal format.

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 arrays, files names in the screen shots will not be according to your VU id you will get zero marks.

Note 4: No need to include alphabet part of your id in array. i.e. if your id is BC123456789 you will use 123456789 to make the arrays , you will ignore the BC part.

Example Run :
Let say your id is BC123456789 , You will use two array as shown below,

Array 1 : 2,4,6,8 , Array 2 : 1,3,5,7,9

Your first screen shot will look like this:


CS401 Assignment No 1 Spring 2018 - Image 1
CS401 Assignment No 1 Spring 2018 - Image 1
Your final screen shot will be like shown below AX and BX conataing the sum of even and odd digits in your VU id in HEX format.

CS401 Assignment No 1 Spring 2018 - Image 2
CS401 Assignment No 1 Spring 2018 - Image 2

If you have 64bit version OS and you are using DOXBOX then your screen shots should look like this.

CS401 Assignment No 1 Spring 2018 - Image 3
CS401 Assignment No 1 Spring 2018 - Image 2
Your 2nd screen shot will be like shown below AX and BX conataing the sum of even and odd digits in your VU id in HEX format.

CS401 Assignment No 1 Spring 2018 - Image 4
CS401 Assignment No 1 Spring 2018 - Image 4

CS401 Assignment No 1 Solution Spring 2018

You can see the Sample Preview of CS401 Assignment No 1 Solution provided by (Virtual Study Solutions) below. Click on Download Button to Download Solution File in Your PC. Please Share it with your friends. You can also like our Facebook Page or Subscribe Us below for Updates.

Previous Semester Assignments Spring 2017

CS401 Assignment Solution Sample Preview

Solution idea File Sample Page Preview has been added below with Solution File.

CS401 Assignment Solution Sample Preview
CS401 Assignment Solution Sample Preview

CS401 Assignment Solution Download Link

Download  [ Solution idea File Upload Status : ✅ ]


Post a Comment

 

Top