You are on page 1of 3

CPC COMPARCH

-Nishant,Marmik,Karthikeyan
Time:40 mins Marks: 30
1)What do you mean by 8 bit Processor or Controller?(1)
2)A digital computer has a memory unit with 32 bits word.The instruction
set consists of 280 different instructions .Each instruction consists of an
opcode part and the rest for address part(1 operand).Each instruction is
stored in two words of memory(3)
i)What is the maximum allowable size of memory
ii)How many bits are needed for the opcode field?
iii)How many bits for address field?
3)Prashanth is unaware about the endianness of his system and goes
around asking people to help him out with a C code
i)Please develop a C code that will help him find his system's
endianness(2)
ii)He finally finds that he is using a 'little-endian' system and wants to
convert it into 'big-endian'.What thought could have made him decide so?
Suggest an easier way of doing this using assembly language(Consider
8086)(2)
iii)A 32-bit value A9 FE B2 3D H,starting from the address 1000
H,needs to be converted from little-endian format to big-endian format for
a 16-bit system.So what is the value now?(+1/-1)
a)3D B2 FE A9 H
b)9A EF 2B D3 H
c)FE A9 3D B2 H
d)D3 2B EF 9A H
4)Address bus and Data bus are uni-directional or bi-directional? Give
reasons why?(2)
5)Is it possible for the 2 commands below to perform exactly the same
operation on a processor? If so, how?(1)
MOV BX,SP
MOV SP,BX
6)What is the advantage of the method that is used in calculating the
physical
address in case of 8086?Calculate the physical address
give CS=3480H and IP=4214H(2)
7) Which are the 2 main units in the internal structure of 8086?(1)
8)Explain a feature that is present in 8086 and not in 8085 that has
significantly increased the speed of execution(2-3 lines are enough)(2)

9)

How many addressing modes will each of the 3 systems have?


Explain(2)
10) Which is the correct order of bus cycles of 8086 (+1/-1)
a)Memory read->Opcode fetch->Memory write->I/O read->I/O write>Interrupt acknowledge
b)Opcode fetch->Memory read->Memory write->I/O read->I/O write>Interrupt acknowledge
c)Interrupt acknowledge->Memory read-> Opcode fetch->Memory write>I/O read->I/O write
d) Opcode fetch->Memory read->Memory write->Interrupt acknowledge>I/O read->I/O write
11) Write a 8086 assembly language equivalent of the following C code.
Try to maximise the speed of execution!!!(3)
i=3;
if(a!=4)
{ do{
y=y+5;
i--;
}while(i>5);}
else a=a/2
12)What are assembler directives?Give examples of some 8086
assembler directives(2)
13)What will the following assembly command do?(1)
ARRAY DB 10 DUP(0)
14)Registers AH,AL,BH,BL are loaded with values (F2) H,(FF) H,(B9) H
and
(EA)H respectively. Determine the register content after the
execution of the following sequence of operations sequentially. Mention
the state of flags after each operation.(4)

ADD AH,AL
SHL BL
ADD BH,BL
AND BH,BL
ADD AL,01H
SUB AH,BH

You might also like