Tutorial on Computational Architecture and Organization, Exams of Computational and Statistical Data Analysis

CAO Tutorial on Computational Architecture and Organization

Typology: Exams

2016/2017

Uploaded on 09/05/2017

nipunn-miglani
nipunn-miglani 🇮🇳

3.1

(9)

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Tutorial 1 CSE2001- Computer Architecture and Organization
Dr. I. Mala Serene, SCOPE, VIT University Page 1
School of Computing Science and Engineering
Course: B.Tech Branch: Computer Science and Engineering Semester: III
Batch: 2017 Subject: Computer Architecture and Organization Code: CSE 2001
Tutorial Sheet -1 Last date: 27/07/17
1. Interpret the following expression for IAS computer flow of operations.
X=(A-B+C*(D-E))
Where data variables are available from location address 500 onwards and program can
be stored at memory location 200 onwards.
2. Write an Assembly language programming for the following expressions using IAS
computer Instruction set and interpret to the flow of IAS computer for ‘b’ and ‘e’. Make
necessary assumptions
a. A= (B-C)*D
b. A= (B-C)/D
c. A=B/(C+D)
d. A=-(B+C-D)
e. A= (B*2)/2
3. Write an assembly language programming for the following code fragment and Interpret
to IAS computer flow of operations.
if(x ≥ 0)
c=a*b;
else
c=a/b;
4. Write an assembly language program using IAS instruction set to compute the average of
two marks of a student. Interpret the same to the flow of IAS computer. Assume that, the
data are stored in an address 200 onwards and program is stored in a location 100
onwards and store the result in 300. Write an assembly language program using IAS
instruction set to compute the factorial of a given number. Make necessary assumptions.
5. Let A - A(1), A(2), . . . , A(10) and B - B(1), B(2), . . . , B(10) be two vectors (one-
dimensional arrays) comprising 10 numbers each that are to be added to form an array C
such that C(I) A(I) B(I) for I 1, 2, . . . , 10. Using the IAS instruction set, write a program
for this problem.

Partial preview of the text

Download Tutorial on Computational Architecture and Organization and more Exams Computational and Statistical Data Analysis in PDF only on Docsity!

Tutorial 1 CSE2001- Computer Architecture and Organization

Dr. I. Mala Serene, SCOPE, VIT University Page 1

School of Computing Science and Engineering

Course: B.Tech Branch: Computer Science and Engineering Semester: III

Batch: 2017 Subject: Computer Architecture and Organization Code: CSE 2001

Tutorial Sheet -1 Last date: 27/07/

  1. Interpret the following expression for IAS computer flow of operations. X=(A-B+C*(D-E)) Where data variables are available from location address 500 onwards and program can be stored at memory location 200 onwards.
  2. Write an Assembly language programming for the following expressions using IAS computer Instruction set and interpret to the flow of IAS computer for ‘b’ and ‘e’. Make necessary assumptions a. A= (B-C)*D

b. A= (B-C)/D

c. A=B/(C+D)

d. A=-(B+C-D)

e. A= (B*2)/

  1. Write an assembly language programming for the following code fragment and Interpret to IAS computer flow of operations. if(x ≥ 0) c=a*b; else c=a/b;
  2. Write an assembly language program using IAS instruction set to compute the average of two marks of a student. Interpret the same to the flow of IAS computer. Assume that, the data are stored in an address 200 onwards and program is stored in a location 100 onwards and store the result in 300. Write an assembly language program using IAS instruction set to compute the factorial of a given number. Make necessary assumptions.
  3. Let A - A(1), A(2),... , A(10) and B - B(1), B(2),... , B(10) be two vectors (one- dimensional arrays) comprising 10 numbers each that are to be added to form an array C such that C(I) A(I) B(I) for I 1, 2,... , 10. Using the IAS instruction set, write a program for this problem.