8051 Arithmetic operations
8051 Arithmetic operations
AIM
To write an assembly language program to perform arithmetic operation of two 8
bit data using 8051 microcontroller.
SOFTWARE/HARDWARE REQUIRED
8051 Microcontroller kit
ALGORITHM
FLOWCHART
PROGRAM
Addition of two 8 bit data
Memory Opcode Label Mnemonics Comments
address
4100 MOV A, #data1 Move the 8 bit data to accumulator
4102 ADD A, #data2 Add the content of accumulator with the 8bit
data.
4104 MOV DPTR,#4500 Move the 16 bit address to data pointer.
Input: Output:
Memory
address Opcode Label Mnemonics Comments
Input Output
RESULT