data segment
mesg1 db 'what is your name?',0ah,0dh,'$'
mesg2 db 'which class are you in?',0ah,0dh,'$'
mesg3 db 'your name is:',0ah,0dh,'$'
mesg4 db 'and your is:',0ah,0dh,'$'
mesg5 db 'confirm(y/n)',0ah,0dh,'$'
buf1 db 30,?,30 dup(?)
buf2 db 30,?,30 dup(?)
data ends
stack1 segment para stack
dw 20h dup(0)
stack1 ends
code segment
assume cs:code,ds:data,ss:stack1
beg:mov ax,data
mov ds,ax
again:mov dx,offset mesg1
mov ah,09h
int 21h
mov ah,0ah
mov dx,offset buf1
int 21h
mov ah,09h
mov dx,offset mesg2
int 21h
mov ah,09h
mov dx,offset mesg3
int 21h
mov bl,buf1+1
mov bh,0
mov si,offset buf1+2
mov cl,'$'
mov [bx+si],cl
mov ah,09h
mov dx,offset buf1+2
int 21h
mov ah,02h
mov dl,','
int 21h
mov ah,09h
mov dx,offset mesg4
int 21h
mov bl,buf2+1
mov bh,0
mov si,offset buf2+2
int 21h
mov ah,2
mov dl,0ah
int 21h
mov ah,01h
int 21h
cmp al,'y'
jne again
mov ah,4ch
int 21h
code ends
end beg
weiji.zip_lily
版权申诉
5星 · 超过95%的资源 177 浏览量
2022-09-23
11:31:48
上传
评论
收藏 517B ZIP 举报
周楷雯
- 粉丝: 78
- 资源: 1万+
最新资源
- C语言基础-C语言编程基础之Leetcode编程题解之第39题组合总和.zip
- C语言基础-C语言编程基础之Leetcode编程题解之第38题外观数列.zip
- C语言基础-C语言编程基础之Leetcode编程题解之第37题解数独.zip
- C语言基础-C语言编程基础之Leetcode编程题解之第36题有效的数独.zip
- C语言基础-C语言编程基础之Leetcode编程题解之第35题搜索插入位置.zip
- index.wxml
- C语言基础-C语言编程基础之Leetcode编程题解之第33题搜索旋转排序数组.zip
- 基于Python实现的手写数字识别系统源码.zip
- 从网页提取禁止转载的文字
- C语言基础-C语言编程基础之Leetcode编程题解之第32题最长有效括号.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈