cs2-CHAPTER 2 Question Bank
cs2-CHAPTER 2 Question Bank
(43 marks)
3. The accumulator of 8085 microprocessor contains data 3CH. 1 Mark for each subpoint
What will be the effect on its content if following a) 04H
instructions are executed independently? b) 1EH
a) ANI 05H b) RRC c) MOV B, A c) 3CH
4. Explain the register and direct addressing modes of 8085 1 mark explanation and ½
microprocessor with example of each. mark example for each
mode
5. Explain the following instructions with suitable example Correct explanation with
a)DAA b) LDAX rp c) SHLD address example 1 mark for each
instruction
6. Explain the following instructions with suitable example. Correct explanation with
a)RAR b) ADC r c) CPI data example 1 mark for each
instruction
7. Explain the following instructions of 8085 microprocessor Correct explanation with
with suitable example example 1 mark for each
a)SPHL b) CMA c) PUSH PSW instruction
8. Write appropriate instructions for each of the following 1 Mark for each subpoint
tasks:
a) Store the contents of accumulator to memory location a) STAX B
pointed by BC pair.-
b ) Decrement contents of HL pair by 1. – b) DCX H
c) Set carry flag to 1. - c) STC
4 Mark Questions
3. Explain stack pointer in brief with PUSH & POP instructions 2 Marks each
4. What are the groups in which instructions in 8085 are Correct explanation with
classified? Give one example of each group. example. Any 4 groups
1 mark for each group
5. What do you understand by register indirect and implicit Correct explanation with
addressing modes? Explain with suitable example. List down example.
instructions which make accumulator content clear. 1 ½ mark for each mode
1 mark for any two correct
instructions.
6 What are branching instructions? Explain the jumping Correct explanation with
instructions with jump conditions. example. Any 4 instructions
1 mark for each instruction
7 The accumulator of 8085 microprocessor contains data AAH 1 Mark for each subpoint
and register C contents 55H. What will be the contents of a) AAH
accumulator if following instructions are executed b) 00H
independently? c) FFH
a) CMP C b) ANA C c) ORA C d) SUB C d) 55H
5 Mark Questions
1. Write an assembly language program to divide two 8-bit hex Correct Program 4 marks
numbers where dividend is stored in memory location and Comments 1 mark
D000H and divisor is stored in memory location D001. Store
the quotient and the reminder in consecutive memory
locations.
3. Write an assembly language program to count the number of Correct Program 4 marks
times the data AD H is found in a block starting from C000 and Comments 1 mark
to C00FH. Store the result at memory location D000H.
4. Write an assembly language program to find out 2’s Correct Program 4 marks
compliment of five numbers stored from memory location and Comments 1 mark
F000H onwards. Store the result from memory address
D000H.
5. Write an assembly language program to transfer the block of Correct Program 4 marks
data stored from memory location D100H to D1FFH in and Comments 1 mark
reverse order in new memory location starting at D200H.
6. Write an assembly language program to divide all the Correct Program 4 marks
numbers of a block by 2. Block is stored from 4000 to and Comments 1 mark
4009H. Store result at the same place.
7. Write an assembly language program to find largest number Correct Program 4 marks
from a block of data having starting address D001 H. and Comments 1 mark
Length of block is stored in location D000H. Store the result
at D060H.
8. Block of data is stored from memory location C050 H to Correct Program 4 marks
C05FH. Write an assembly language program to copy entire and Comments 1 mark
block of data to a new location starting from C070H.
10. Write a sub routine to fill the memory locations 2000H to Correct Program 4 marks
2009H with data BBH and 44H alternatively. and Comments 1 mark
11. Write an assembly language program to separate the nibbles Correct Program 4 marks
of a number stored at memory location 2000H. Multiply the and Comments 1 mark
separated nibbles and store the result at memory location
3000H.
12. Write assembly language program to store data BCH in 20 Correct Program 4 marks
contiguous memory locations starting from 8081H. and Comments 1 mark
13. Write assembly language program to get decimal sum of Correct Program 4 marks
series of numbers starts from C001H onwards. Block length and Comments 1 mark
is stored in C000H. Store result in C050 and carry in C051H.
14. Write assembly language program to subtract the number Correct Program 4 marks
stored in memory location 3601H from the number stored in and Comments 1 mark
3600H. Store the positive result at location 3602H.
15. Write assembly language program to add two 8 bit BCD Correct Program 4 marks
numbers stored at memory locations 5000H and 5001H. and Comments 1 mark
Store the result at memory location 5002H onwards starting
with LSB.
16. Write assembly language program to find the sum of series Correct Program 4 marks
.Length of series is stored in memory location 1500H and series and Comments 1 mark
begins from memory location 1501H. Store the 16 bit sum
from memory location 1600 H beginning with lower order
byte.
17. Write assembly language program to transfer a block memory Correct Program 4 marks
starting from 1050 to 1059 to a new location starting from and Comments 1 mark
1070 to 1079
18. Write a Assembly Language Program to copy a block of Correct Program 4 marks
data of data having starting address 4500 H to new and Comments 1 mark
location starting from 4600 H. The length of block is
stored at memory location 44FF H
19. Write a Assembly Language Program to fill in the Correct Program 4 marks
memory location starting from 6900 H and onward with and Comments 1 mark
the decimal numbers 0 to 99.
20. Write an assembly language program to add two 8 bits BCD Correct Program 4 marks
numbers stored in memory location 4500H and 4501H.Store and Comments 1 mark
the result the two byte BCD result from memory location
4502H onwards
21 Correct Program 4 marks
Write assembly language program to count the total number and Comments 1 mark
of even data bytes occurring in a block ofdata stored from
9201H to 902AH.Store the result (count) at the memory
location 9500H.
23) Study the following program and answer the question given below.
Label Instruction
MVI C,08 H
LXI H, 6000 H
MOV A,M
BACK RRC
DCRC
JNZ BACK
INX H
MOV M,A
HLT