User:Anjuagrawal/Assignments III year/I Assignment

From WikiEducator
Jump to: navigation, search

Assessment I

Q1. What are the various addressing modes? Explain with examples

Q2. Give the addressing modes of the following instructions-

  • LHLD 16 bit address
  • INR r/m
  • CPI data

Q3. How many memory locations can be addressed by a microprocessor with 14 address lines?

Q4. Why is data bus bidirectional?

Q5. What is the content of the program counter after fetching 8 bit/16 bit data from a memory location 3065H? The instruction to fetch the data resides at 5123H.

Q6. The memory address of the last location of an 8 K byte memory chip is FFFFH Find the starting address and the number of pages?

Q7. If the memory chip size is 2048 X 8 bits, how many chips are required to make up 16K byte memory?

Q8. What is the function of ALE?

Q9. What is the difference between conditional JMP and unconditional JMP? (1)

Q10. Write single instructions programs to perform the following operation

  • Clear the accumulator
  • Clear the carry flag
  • Assume that rp HL has 0010H. Make it 0020H (3)

Q11. If the clock frequency is 5 MHz how much time is required to execute an instruction of 18T states? (1)

Q12. Specify the register contents and the flag status as the following instructions are executed

	                                            A       B     S      Z      CY
SUB A                                  X      X    X     X       X
MOV B, A
DCR B
INR B
SUI 01H
HLT

Q13. Explain the mathematical function performed

MVI A, O7H
RLC
MOV B,A
RLC
RLC
ADD B

Q14. Draw the timing diagram for instruction MOV C,M