;在10字节字符串中,搜索一个特定的字符" "(空格符),若有则在 ;CRT上显示"Yes",否则显示"No". data segment h1 db 'AbCdefghij' h2 db 'Yes$' h3 db 'No$' data ends stack segment stack db 100 dup(?) stack ends code segment assume cs:code,ds:data,ss:stack start: mov ax,data mov ds,ax mov es,ax lea di,h1 mov al,' ' mov cx,10 repnz scasb jne x1 mov dx,offset h2 mov ah,9 int 21h jmp x2 x1: mov dx,offset h3 mov ah,9 int 21h x2: mov ah,4ch int 21h code ends end start