Saturday, 8 October 2016

Check if 5AH is located is located in any one of the locations.If yes load acc. by 5AH.

START: MOV R0,#5FH
 MOV R7,#10H
 COMPIT: CJNE @R0,#5AH,NEXT
 MOV A,#5AH
 SJMP FOUND
NEXT: DEC R0
DJNZ R7,COMPIT
NOMATCH : MOV A,#00H
FOUND : SJMP FOUND

No comments:

Post a Comment