Vellore Institute of Technology
School of Electronics Engineering
BECE204P Microprocessors and Microcontrollers Lab
Assignment-1
1. Write a program to add 5 decimal numbers and store the result in register R2 and R3.
The numbers are stored in ROM space starting at 300H.
Sample Data: 40, 28, 35, 79, 99.
2. Write a program to add two multi-byte BCD numbers together and store the result in
RAM locations 100H onwards. The two multi-byte items are stored in the ROM space
starting at 200H and 250H. See the following example data.
Sample Data: Number A: 2446366598D
Number B: 9356463778D
3. Develop an assembly code for 8051 Microcontroller, to implement the given digital
circuit using KEIL development tool.
4. Write an Assembly Language Programming (ALP) to check if a string is a
palindrome or not. (Min String size is 5). If palindrome R0=1 else R0=0.
5. Develop an ALP of 8051 to find the sum of Even numbers stored from the data memory
locations starting at 50H. Store the result in R5 and R6 registers. (Perform addition of
even numbers only)
Sample Data: 50H, 27H, A0H, B3H, C5H, 34H, 80H, 97H, E0H, F1;
Prepared by
Dr. Henridass A
AP/SENSE/ VIT-Vellore.