8051 Assembly Program Code to Find Transpose of a Matrix - AT89C51 - Keil


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

Program to find transpose of a matrix,

Flowchart:-


Program:-

ORG 0000H
MOV R0,#50H
MOV R1,#70H
MOV R3,#3H
MOV R4,#04H
LOOP: MOV R6,#4H
MOV A,@R0
MOV @R1,A.
LOOP1: INC R0
DJNZ R6,LOOP1
INC R1
DJNZ R3,LOOP
MOV R3,#3H
MOV A,R0
CLR C
SUBB A,#4H
CLR C
SUBB A,#07H
MOV R0,A
DJNZ R4,LOOP
HERE: SJMP HERE
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