0
5.4kviews
Ten hex numbers are stored in RAM locations 50H onwards. Write a program to find the biggest number in the set. The biggest number should be saved in 60H.
1 Answer
0
731views
             MOV   R0,  #50H
             MOV   R1, #10H
             MOV   B,  #0
BACK:        MOV   A,   @R0
             CJNE  A, B, LOOP
LOOP:        JC    DOWN
             MOV   B,A
             INC   R0
             DJNZ  R1, BACK
             SJMP  NEXT
DOWN:        INC   R0
             DJNZ  R1, BACK
             MOV   A,B
             MOV   60H, A
Please log in to add an answer.