ASM Program Code for Array Addition - 8051 - Keil - AT89C51 - Assembly Language


Flowchart:-



Program:-

ORG 0000H
MOV R0,50H
MOV R1,#60H
MOV A,#00H
MOV R2,#00H
LOOP1 : ADD A,@R1
JNC LOOP2
INC R2
LOOP2 : INC R1
DJNZ R0,LOOP1
MOV 70H,R2
MOV 71H,A
END

Output:-




For more ASM programs - click here

Popular posts from this blog