8051 Assembly Code for Matrix Addition - AT89C51 - Keil


The program is compiled in Keil for 8051 - AT89C51 in assembly language.

Program to perform matrix addition,

Flowchart:-


Program:-

ORG 0000H
MOV R3,#02H
MOV R0,#50H
MOV R1,#56H
REPEAT: MOV R2,#02H
LOOP : MOV A,@R0
INC R0
INC R0
INC R0
ADD A,@R0
MOV @R1,A
DEC R0
DEC R0
INC R1
DJNZ R2,LOOP
MOV R0,#60H
MOV R1,#66H
DJNZ R3,REPEAT
SJMP $
END

Output:-



For more ASM programs - click here

Popular posts from this blog

8051 Assembly Program Code for Sorting in Descending Order - Keil - AT89C51

Mini Militia Chat Codes - Shortforms