本文介绍了在屏幕上显示单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何输入一个完整的字符串而不是按字母输入char然后在接收器屏幕上打印,通过comport串行发送..

请帮我这样做



编辑 - 从评论中复制

how to enter a complete string rather than entering char by char and then print on the receiver screen ,sending it serially through comport..
please help me to do it

Edit - copied from comment

.model small
.stack 100h
.data
str1 db 'Enter String ','$'
str2 db 50 dup('$')
str3 db 0dh, 0ah, '$' /// what meaning this?????
.code

main proc
mov ax,@data
mov ds,ax

mov ah,09h ; for displaying Enter String
lea dx,str1
int 21h

mov ah,0ah ; for taking i/p from keyboard
lea dx,str2
int 21h

mov ah,09h ; for displaying in new line
lea dx,str3
int 21h

mov ah,09h ; for displaying what you have entered
lea dx,str2+2 // I DONT UNDERSTAND THIS!!!!!!
int 21h

int 21h
mov ah,4ch
int 21h
main endp

end main



是这个正确的解决方案????


is this right solution????

推荐答案





这是正确的解决方案????


is this right solution????


这篇关于在屏幕上显示单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-07 12:50