;Program to add 8-bit numbers
CLR A
MOV R0, #40H ; Starting address
MOV R2, #05H ; Number of bytes to add
L2: ADD A, @R0
INC R0
JC L1
SJMP L3
L1: INC 71H
L3: DJNZ R2, L2
MOV 70H, A