cat1
cat1
1. (a) Indicate the addressing modes for the following 8051 instructions
(i) MOV R0, #56H
(ii) MOVC A, @A+DPTR
(iii) MOV 38H, R0
(iv) MOV R0, 38H
(v) ADD A, @R1
(b) Identify if the following 8051 instruction have any error, if so give the correct
instructions
(i) MOV @R2, A
(ii) DEC DPTR
(iii) CPL R3
(iv) AND A, B
(v) MUL A,B
2. Analyze the following 8051 assembly program and show the stack and stack pointer
during the execution of the program. Assume the default stack area.
MOV R6, #25H
MOV R1, #12
MOV R4, #0F3H
PUSH 6
PUSH 1
PUSH 4
POP 7
POP 5
POP 3
END
3. Assume that 8051 internal RAM locations 40H – 44H have the following values, write
an assembly program to find the sum of the values. At the end of the program, register A
should contain the low byte and R7 the high byte of the sum.
40H = (7DH)
41H = (EBH)
42H = (C5H)
43H = (5BH)
44H = (30H)
5. For the given 8051 assembly program, find out the time required to execute it, if XTAL
frequency is 11.0592 MHz.