汇编程序,输入字符显示*


data segment
out db 'Input the password please:$'
pass db 6 dup(?)
data ends
code segment
assume ds:data,cs:code
start:mov ax,data
      mov ds,ax;
      mov cx,6
      lea dx,out
      mov ah,09h
      int 21h
      lea di,pass
again:mov ah,07h;输入不显示字符
      int 21h
      mov [di],al
      mov dl,'*'
      mov ah,02h
      int 21h
      loop again
      mov ax,4c00h
      int 21h
      code ends
      end start




posted @ 2013-04-27 20:53  剑不飞  阅读(239)  评论(0)    收藏  举报