0
3.6kviews
Write a program to sort positive and negative numbers using JNB/JB instructions.
1 Answer
0
216views
         MOV R0,  50H;
         MOV R1,  #0AH;
         MOV R2,  #00H;
         MOV R3,  #00H;
UP:      MOV A,   @R0;
         JB       LOOP
         INC      R3;
LOOP:    INC      R2;
         INC      R0;
         DJNZ     R1,UP
Please log in to add an answer.