程序流程:1清屏 2显示what's your name? 3等待用户输入一个字符串 4显示用户输入的字符串 好像是第4部的问题,输出不了第3步输入的字符串。 title proc43 page 60,132 .model small .stack 64 .data org 220h buffer db "What's your name?",'$' buffer2 db 20,?,20 dup(?) .code main proc far mov ax,@data mov ds,ax
mov cx,0 mov bh,7 mov dx,184fh mov ax,0600h int 10h
mov ah,9 mov dx,offset buffer int 21h
mov ah,0ah mov dx,offset buffer2 int 21h mov ah,9 mov dx,offset buffer2 int 21h mov ah,4ch int 21h main endp end main