Write an assembly language program for 8086 microprocessor to read a string from keyboard and display each word in separate line. The length of input string can be up to 60 characters.
List out the instruction for arithmetic and logic operation in 8085 microprocessor and explain with example. Also mention the effect on flags by each instruction.
Short Questions
Attempt any eight questions: (8 × 5=40)
What is flag? Explain its importance with suitable example.
Discuss the bus system in 8085 microprocessor.
Draw the timing diagram of instruction MVI A, 36H and explain it.
Explain the function of following signals
a. ALE
b. INTR
c. TRAP
Write a program in 8085 microprocessor to subtract 16 bit number at 2000H from a 16 bit number at 2010H and store the result at 2020H.
Discuss the importance of interrupt in microprocessor based system. Explain how interrupt controller (8259) can be used to handle interrupts.
Observe the following program and write the content of Accumulator, register B and flags after execution of each instruction. (assume all flags are reset).
MVI A, 45H
MVI B, 66H
ADD B
ANI 63H
HLT
What are the various registers in 8086 microprocessor? Explain the function of each register.
Discuss ADD, MUL and DIV instruction of 8086 with suitable examples.
Explain in briefly on keyboard and display controller.