
汇编语言中mov ah,0ah int 21h为什么没有效果
Msg2db"pleaseinputthenameofstudent:"Msg3db"pleaseinputthescoreofstudent:"rep1:leadx,M...
Msg2 db "please input the name of student:"
Msg3 db "please input the score of student:"
rep1:lea dx,Msg2 mov ah,09h int 21h lea dx,stu+[bx] ;学生数组每项地址赋给dx mov ah,0ah int 21h
lea dx,enmsg ;回车 mov ah,09h int 21h lea dx,msg3 mov ah,09h int 21h
运行结果:
如图,在显示出input the name of student后直接输出msg3了,没有输入学生姓名,求解 展开
Msg3 db "please input the score of student:"
rep1:lea dx,Msg2 mov ah,09h int 21h lea dx,stu+[bx] ;学生数组每项地址赋给dx mov ah,0ah int 21h
lea dx,enmsg ;回车 mov ah,09h int 21h lea dx,msg3 mov ah,09h int 21h
运行结果:
如图,在显示出input the name of student后直接输出msg3了,没有输入学生姓名,求解 展开
2个回答
展开全部
10号中断调用,预先要设置好存储空间。
更多追问追答
追问
新手一枚,求具体代码修改
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询