0
3.6kviews
Write a program to sort positive and negative numbers using JNB/JB instructions.
1 Answer
written 6.2 years ago by | • modified 6.2 years ago |
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