输出显示的问题~
键盘输入同学名字 se当按下任意键时 显示“welcome se”
帮帮忙啊~~在这
谢谢了~~
.model small
.386
option casemap:none
data segment
hint db 0ah,0dh,'Please input name:','$'
wel db 0ah,0dh,'welcome se','$'
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov dx,offset hint
mov ah,09h
int 21h
xor al,al
mov ah,01h
int 21h
cmp al,'s'
jz next1
jmp exit
next1:
xor al,al
mov ah,01h
int 21h
cmp al,'e'
jz next2
jmp exit
next2:
xor al,al
mov ah,01h
int 21h
mov dx,offset wel
mov ah,09h
int 21h
exit:
mov ax,4c00h
int 21h
code ends
end start