0% found this document useful (0 votes)
83 views7 pages

cs2-CHAPTER 2 Question Bank

Uploaded by

Udit Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views7 pages

cs2-CHAPTER 2 Question Bank

Uploaded by

Udit Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CHAPTER 2 – INSTRUCTION SET AND PROGRAMMING OF 8085

(43 marks)

MCQ (1 Mark Questions )

Q. No Question Marking Scheme

1. The flag bit is reset, when flag register content is 1Mark


95 H.
i. P
ii. Z
iii. Ac
iv. CY

2. instruction belongs to data transfer group. 1Mark


i. LHLD address
ii. CMA
iii. JMP address
iv. ANI data

3. The instruction will affect the zero flag without 1Mark


changing the contents of the accumulator.
i. MVI A,00
ii. SUB A
iii. XRA A
iv. CMP A

4. instruction rotates contents of accumulator right 1Mark


through carry by 1 bit.
i. RAC
ii. RAL
iii. RAR
iv. RRC

5. Instruction XCHG belongs to addressing mode. 1Mark


i. Register
ii. Register indirect
iii. Direct
iv. Immediate

6. Addressing mode of ADD M is . 1Mark


i. Direct
ii. Register Indirect
iii. Implied
iv. Immediate

7. instruction is three byte instruction of 8085. 1Mark


i. CMA
ii. ADI
iii. XCHG
iv. LDA
8. instruction is used for 16 bit addition. 1Mark
i. ADD
ii. ADI
iii. ADC
iv. DAD

9. The instruction MVI r, Data 8 is byte instruction. 1Mark


i. Two
ii. One
iii. Three
iv. Four

10. During PUSH instruction of 8085 the stack pointer is 1Mark


.
i. Incremented by 2
ii. Decremented by 2
iii. Incremented by 1
iv. Decremented by 1

11. The contents of HL pair are CFFF H. After execution of 1Mark


instruction INX H, the contents will be .
i. DFFF
ii. CF00
iii. CFF0
iv. D000

12. When instruction is executed, no operation is 1Mark


performed; only this instruction is fetched and decoded.
i. HLT
ii. RST 1
iii. NOP
iv. RIM

13. flag is affected by instruction RRC of 8085. 1Mark


i. Carry
ii. Zero
iii. Parity
iv. all

14. The contents of HL pair are 2A00 H. After execution of 1Mark


instruction DCX H, the contents will be .
i. 2900
ii. 29FF
iii. 1A00
iv. 1AFF

15. Invalid register pair for 8085 microprocessor is . 1Mark


i. SP
ii. BC
iii. HL
iv. DE
3 Mark Questions

Q. No Question Marking Scheme


2. The accumulator of 8085 microprocessor contains data F2H. 1 Mark for each subpoint
What will be contents of accumulator after execution of each a) C9H
of the following instruction independently? b) E5H
a) XRI 3BH b) RLC c) SUI AEH c) 44H

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

9 Explain the following instructions with one example.

i) CMA ii) STC ii) RRC

4 Mark Questions

Q. No Question Marking Scheme

1. Explain the following instructions with suitable example. 2 Marks each


1. DAA
2. XTHL
2. Explain following Rotate group of instructions
1 Marks each
a) RLC b) RRC c) RAL d) RAR

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

Q. No Question Marking Scheme

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.

2. Write an assembly language program to count number of Correct Program 4 marks


even data bytes occurring in a block starting from the and Comments 1 mark
memory location 7501H to 75FFH. Store result at memory
location 7600H.

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.

9. A hex number is stored at location 3000H. Write an Correct Program 4 marks


assembly language program to interchange its digits. The and Comments 1 mark
new number is to be stored at 3001. Add original number
with new number and store the result at location 3010H.

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.

22 Correct Program 4 marks


Write assembly language program to take the and Comments 1 mark
2’s complement of an 8 bit number stored at
3301H.Store the result at the memory location
3302H.
.

23) Study the following program and answer the question given below.

Label Instruction Comments


LXIH,COOOH
MOV C,M
BACK INX H
MOV A, M
XRA A
MOV M, A
DCR C
JNZ BACK
HLT

1) Write the purpose of the program


2) Write comments for the instruction used in the program.
3) If the input data at memory location C000H is 05 H, then write the result along with corresponding memory
location.
24)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

1) Write the purpose of the program


2) Write comments for the instruction used in the program.
3) If the input data at memory location 6000H is FF H, then write the result along with
corresponding memory location.

You might also like