8051 program to add two 8 bit numbers and store the result at external memory location 2050H.

By


Write a program to add two 8 bit number and store the result at external memory  location 2050H.


                 ORG 0000H
                 MOV A, #05H
                 MOV R, #09H
                ADD A, R1
                MOV DPTR, #2050H
                MOV @ DPTR, A
AGAIN: SJMP AGAIN

INPUT:
A=05H
R1=09H
OUTPUT:
2050 = 0EH..


6 comments:

If you have any questions or droughts feel free to ask here.