Vulms Assignment Solution Cs401

Question no. 1:

(a)  Assemble the following instructions and show the changes in given Accumulator register and flags after each instruction execution.                                                                                           (Marks 5)

MOV AL, 8Bh                       ; CF = ?, SF = ?, PF = ?, ZF = ?

ADD AL, 22h                         ; CF = ?, SF = ?, PF = ?, ZF = ?        

AND Al, 1000101b                ; CF = ?, SF = ?, PF = ?, ZF = ?

OR Al, 9Ah                            ; CF = ?, SF = ?, PF = ?, ZF = ?

XOR AL, 10101011b             ; CF = ?, SF = ?, PF = ?, ZF = ?

TEST AL, 2                            ; CF = ?, SF = ?, PF = ?, ZF = ?

CMP AL, 58                           ; CF = ?, SF = ?, PF = ?, ZF = ?

ADC AL, 11110000b             ; CF = ?, SF = ?, PF = ?, ZF = ?

SHR AL,2                               ; CF = ?, SF = ?, PF = ?, ZF = ?

Question no. 1 (b):                                                                                                                     (Marks 5)

Write a subroutine that can calculate the sum of an array and also save the result into DX.

( Array’s length is 20)

Question no. 2

Write an assembly language code to calculate the factorial of “7” using a subroutine and also attach the final snapshot of your AFD window.                       

                                                                                                                                                  ( Marks:10)

  • CS401 Final term stuff

    Download attach file   

    By Cute S@mra

    Jan 6, 2017

    10


  • 5th Sem

    cs401 GDB solution

    International Accounting Standard Board (IASB) felt need to increase the continuity of financial reports for the Public Listed Companies from annual to quarterly reports.” You are required to give somSolution…

    By Muhammad Hasan

    Jan 31

    0


  • 2nd Sem

    GDB CS401 Starting date 25 January 2018 and ending date 26 Janaury 2018

    Graded Discussion Board TopicSemantic Structure reasoning at each step is required while writing a program of any language at any level. But high level languages claim to have and provide simpler or more appropriate structures, but often fall short of this part when changes are required or one is…

    By + منشاء +

    Jan 25

    4


  • 2nd Sem

    Assignment No. 2 of Computer Architecture and Assembly Language Programming– CS401 Edning date 18 Jan 2018

    File is attach, plz

    By + منشاء +

    Jan 13

    7

  • CS401 -Mid Term Paper & Solved Paper From 9 Dec to 20 Dec 2017

    Share Your Paper 

    By Cute S@mra

    Dec 11, 2017

    4

  • CS401 Computer Architecture and Assembly Language Programming Assignment No' 1 - Due Date: Tuesday Nov. 14

    Question: 1 [15 Marks]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…

    By Cute S@mra

    Nov 7, 2017

    3

  • CS401 -Lecture No. 01 - Problems, Discussions and Solutions - Fall 2017

    Post your problems and questions about this lecture in reply to this discussion so we can give you answers and solve problems. Also, share important points of the lecture so others students can also get help.

    By Cute S@mra

    Oct 26, 2017

    3

  • CS401 - Computer Architecture and Assembly Language Programming - Virtual Visiting Hours

    Dear Students,Virtual University of Pakistan is scheduling “Virtual Visiting Hours” for three working days in a week for CS401. During these visiting hours, students can talk to the respective course Instructors over Adobe Connect to discuss about different issues they are facing in the course.This…

    By Cute S@mra

    Oct 25, 2017

    0


  • 1st Semester

    CS 401

    Aslam o Alaikum Kia kisi k pas 32bit mumbers ki multiplication wala program he????

    By Pakiza Noor

    Oct 22, 2017

    0


  • 1st Semester

    CS 401

    Aslam o Alaikum Kia kisi k pas 32bit mumbers ki multiplication wala program he????

    By Pakiza Noor

    Oct 22, 2017

    0

  • 0 thoughts on “Vulms Assignment Solution Cs401

    Leave a Reply

    Your email address will not be published. Required fields are marked *