Popular posts from this blog
8051 Assembly Program Code for Sorting in Ascending Order - Keil -AT89C51
The program is compiled in Keil for 8051 - AT89C51 in assembly language. Program to sort numbers in ascending order, Flowchart:- Program:- ORG 0000 MOV R1,#40H MOV R3,#04H DEC R3 MOV 06H,R3 LOOP1 : MOV 02H,03H MOV B,@R1 MOV 00H,01H INC R0 LOOP2: MOV A,R0 CJNE A,B,CHECK. SJMP CONTINUE CHECK: JNC CONTINUE MOV @R0,B MOV @R1,A MOV B,@R1 CONTINUE:INC R0 DJNZ R2,LOOP2 INC R1 DJNZ R3, LOOP1 MOV A,#3FH ADD A,R6 MOV R0,A MOV P1,@R0 SUMP $ END Output:- For more ASM programs - click here
8051 Assembly Program Code to find Square of a Number - AT89C51 - Keil
The program is compiled in Keil for 8051 - AT89C51 in assembly language. Program to find square of a number, Flowchart:- Program:- ORG 0000H MOV R0,#50H MOV A,@R0 MOV R2,A MOV RI,#01H CLR A LOOP: ADDC A,R1 INC R1 INC R1 DJNZ R2,LOOP INC R0 MOV @R0,A HERE: SJMP HERE END Output:- For more ASM programs - click here