8051-programs

8051 Program to arrange numbers in Descending Order

8051 Program to arrange numbers in Descending Order: 8051 Program to arrange numbers in Descending Order is as follows: MOV R4,#0AH AGAIN: MOV R3,#0AH MOV R0,#20H CLR C UP:MOV A,@R0 MOV R1,A INC R0 MOV A,@R0 SUBB A,R1 JC SKIP MOV A,@R0 DEC R0 MOV...
8051-programs

8051 Program to count number of 1’s in a byte

8051 Program to count number of 1's in a byte: 8051 Program to count number of 1's in a byte is as follows: CLR C MOV R1,#08 MOV R2,#00H MOV R0,#30H MOV A,@R0 UP:RRC A JNC SKIP INC R2 SKIP: DJNZ...
8051-programs

8051 Program to arrange numbers in Ascending order

8051 Program to arrange numbers in Ascending order: 8051 Program to arrange numbers in Ascending order is as follows: MOV R4,#0AH AGAIN: MOV R3,#0AH MOV R0,#20H CLR C UP:MOV A,@R0 MOV R1,A INC R0 MOV A,@R0 SUBB A,R1 JNC SKIP MOV A,@R0 DEC R0 MOV...
8051-programs

8051 Program to find smallest number in block

8051 Program to find smallest number in block: In this article we will be designing 8051 Program to find smallest number in block. MOV DPTR,#5000H CLR C MOV R2,#09H MOVX A,@DPTR MOV 30H,A UP: INC DPTR MOVX A,@DPTR CJNE A,30H,DN SJMP NEXT DN:...
8051-programs

8051 Program to find largest number in a block

8051 Program to find largest number in a block of numbers: 8051 Program to find largest number; A program to find largest number among given block of numbers using 8051 microcontroller MOV DPTR,#5000H CLR C MOV...