ASM Code for 16 Bit Addition - 8051 - AT89C51
Flowchart:-
Program:-
ORG 0000H
MOV DPTR, #2401H
MOV R0,#40H
MOVX A,@DPTR
MOV R2,A
INC DPTR
MOVX A,@DPTR.
ADD A, R2
MOV @R0, A
INC R0
INC DPTR
MOVX A,@DPTR
MOV R2, A
INC DPTR
MOVX A,@DPTR.
ADDC A,R2
MOV @R0,A
SJMP $
END
Output:-
For more ASM programs - click here