Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Microprocessor and Microcontroller

(Assignment)

1) Let the content of the memory location 2050H is F2H.


LXI H, 2050H
MOV A, M
CMA
ADI 01H
STA 3050H
HLT
After execution of above set of instructions, what is the content of memory location
3050H?
2) Specify the register contents and flag status as the following instructions are executed
MVI D, 88H
MVI C, 6FH
INR C
MOV A, C
ADI A2H
ADD D
CMA
HLT
3) Specify the register contents and flag status as the following instructions are executed
SUB A
MOV B, A
DCR B
INR B
SUI 01H
HLT
4) Specify the register contents and flag status as the following instructions are executed
XRA A
MVI B, 4AH
SUI 4FH
ANA B
ORA A
HLT
5) Let the content of the memory location 2070H is F2H
LXI H, 2070H
MVI M, 64H
MVI A, 8FH
CMP M
HLT
After execution of above set of instructions, what is the content of memory location
2070H? also specify the flag status.
6) Specify the register contents and flag status as the following instructions are executed
MVI A, C5H
ORI A7H
RLC
RRC
HLT
7) Let the content of the memory locations 2050H and 2051H are F2H and A2H
respectively
LDA 2050H
MOV B, A
LXI H, 2051H
MOV A, M
ADD B
HLT
Specify the register contents and flag status as the above set of instructions are
executed
8) Let the content of the memory location 2000H is F2H
LXI SP, 2500H
LXI H, 2000H
MOV A, M
ADI A2H
PUSH PSW
After execution of above set of instructions, what are the contents of stack memory
locations? and what is new stack address?
9) Write a program to ADD two 8 bit BCD number.
10) Draw the timing diagram for instruction LDA 2000H.

You might also like