
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.