You are on page 1of 2

Instructions:

After completing coding, every group prepares your lab program in the following format and submits
in your AUMS (15cse285)

I. Questions
II. Coding with necessary commands to be given for every instruction
III. Screen shot of the output

1. Write a 8051 Assembly Language Program (ALP) to store data 10H into RAM memory
locations 50H to 58H using direct addressing mode
2. Write a 8051 Assembly Language Program (ALP) to exchange of 7 data between register
bank 0 to register bank 2 (use R0 to R6 register)
3. Write an 8051 Assembly Language Program (ALP) to demonstrate all addressing mode.
4. Write an 8051 Assembly Language Program (ALP) to read 8 data from register bank 0 and
perform the following operations.
a. Add its neighbour and store the results in register bank3 (Example: ro+r1)
b. Subtract its neighbour and store the results in register bank2 (Example: ro-r1)
5. Write a 8051 Assembly Language Program (ALP) to perform addition of two number and do
the following task (Display your results in PSW ):
a. Select Input, It should not produce any carry
b. Select Input, It should produce carry
c. Select Input, It should produce auxiliary carry
d. Select Input , It should not produce auxiliary carry
6. Write a 8051 Assembly Language Program (ALP) to subtract a two 16 bit number.
7. Write a 8051 Assembly Language Program (ALP) to add a two 16 bit number.
8. Write a 8051 Assembly Language Program (ALP) to find the square of a given number (store
input data in R0 and output in R7)
9. Write a 8051 Assembly Language Program (ALP) to find the cube of a given number (store
input data in R0 and output in R7)
10. Write an 8051 Assembly Language Program (ALP) to find average of five 8 bit numbers.
11. Write a 8051 Assembly Language Program (ALP) to demonstrate increment of given data
(R0=#5H)
12. Write a 8051 Assembly Language Program (ALP) to demonstrate decrement of given data
(R1=#5H)
13. Write a 8051 Assembly Language Program (ALP) to demonstrate assembler directives
ORG,END,EQU
14. Write a 8051 Assembly Language Program (ALP) to demonstrate Multiplication of two 8 bit
numbers
15. Write a 8051 Assembly Language Program (ALP) to demonstrates division of two 8 bit
numbers
16. Write a 8051 Assembly Language Program (ALP) to demonstrate Multiplication of two 16 bit
numbers
17. Write a 8051 Assembly Language Program (ALP) to demonstrates division of two 16 bit
numbers
18. Write an 8051 Assembly Language Program (ALP) to find, if given number is even number or
not?
19. Write an 8051 Assembly Language Program (ALP) to find, if given number is odd or not?
20. Write a 8051 Assembly Language Program (ALP) to demonstrates Decimal Adjust (DA).

You might also like