子程序形式出现 : YCIT
ORG 1000H
YCIT: CJNE 40H,50H,LOP
CJNZ 41H,51H,LOP1
JMP LOP3 ; 相等
LOP: MOV A,40H
SUBB A,50H
JC LOP3 ; NA
JMP NEXT
LOP1:MOV A,41H
SUBB A,51H
JC LOP3 ; NA
JMP NEXT
LOP3: MOV 41H,#0FFH
NEXT: RET
END