标签:style code ext color strong res
DATA SEGMENT
ARR DB 0,0,34H,56H,89H,0
CNT EQU $-ARR
RES DB 0
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
BEGIN: MOV AX,DATA
MOV DS,AX
XOR AX,AX
MOV CX,CNT
MOV BX,0
NEXT: CMP ARR[BX],0
JNZ NEXT1
INC BX
LOOP NEXT
JNZ EXIT ;如果ZF不等于0即相比都不相等
NEXT1: MOV RES,BL
EXIT: ADD BL,31H
MOV DL,BL
MOV AH,2
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END BEGIN
标签:style code ext color strong res
原文地址:http://www.cnblogs.com/apple-apple-apple/p/3786297.html