Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(EC-1 Regular) Course No. Course Title Nature of Exam Weightage Duration Date of Exam Note:
1. 2. 3. 4.
: IS ZC351 : COMPUTER ORGANIZATION & ARCHITECTURES : Closed Book : 40% No. of Pages =1 : 2 Hours No. of Questions = 7 : 04/02/2007 (FN)
Please follow all the Instructions to Candidates given on the cover page of the answer book. All parts of a question should be answered consecutively. Each answer should start from a fresh page. Mobile phones and computers of any kind should not be brought inside the examination hall. Use of any unfair means will result in severe disciplinary action.
Q.1.
Given the following memory values and a one-address machine with an accumulator: Word 20 contains 40 Word 30 contains 50
(5)
Write a program to evaluate the arithmetic expression, for a 3-address machine with threeaddress operation instructions.
Z=
Q.3.
A * [ B + C * ( D + E )] F * (G + H )
(5)
For the addition of these two signed numbers represented in 2s complement form what will be the value of the following flags: Carry, Sign, Overflow (i) 1110 0000 + 0011 0100 (ii) 1000 0000 + 1000 0000 (6) Given A= -6 and B= -8 in twos complement notation, compute the product of A and B by using Booths algorithm. Show all the steps involved. (6) Explain the difference between LEA BX, DATA and MOV BX, OFFSET DATA instructions. (5) Name atleast 3 types of displacement based addressing modes. (3)
Q.4.
Q.5.
Q.6. Q.7.
Write an 8086 assembly program that converts a number stored as an word variable DECI, where 0 <= DECI <= 15 to an ASCII character in the byte variable HEXD which is its hexadecimal value. For instance, if DECI = 3 then HEXD = 3 and if DECI = 14 then HEXD = E. (10)
**********