.model small .286 .data str1 db 'English',0 str2 db 'England',0 msg1 db 13,10,'equal$' msg2 db 13,10,'not equal$' .code start: mov ax,@data mov ds,ax lea si,str1;;;;令si-->str1 lea di,str2;;;;令di-->str2 cld next:lodsb ;;;;;;;;;;aL=[si],si=si+1 and aL,aL;;;;;;测试aL是否等于零 jz finish inc di cmp aL,[di-1] je next finish: mov dx,offset msg1 jz disp mov dx,offset msg2 disp: mov ah,9 int 21H mov ax,4c00H int 21H end start