使用串口在装配上聊天 [英] chat on assembly using serial port

查看:100
本文介绍了使用串口在装配上聊天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用程序集进行聊天,并且我有一个很大的疑问,我目前正在使用

I'm working on a chat using assembly and i got this huge doubt, I'm currently using

int 21, AH = 0Ah

int 21, AH= 0Ah

从键盘上获取一个字符串,我稍后将通过串行端口逐个字符地发送,但后来我想知道如何从另一台运行相同程序的计算机上接收到一条消息,如果该消息位于等待我输入字符串的中断.

to get a string from the keyboard wich I will later send, char by char, through the serial port, but then i was wondering how, will I receive a msg from the other computer running the same program if this one is in a interruption waiting for me to input a string.

我该如何解决这样的事实:输入字符串时,整个程序会中断,并且与此同时发送的所有内容都会丢失?

How can i get around the fact that when inputing a string, the whole program is interrupted and anything being sent on the mean time will be lost?

推荐答案

功能6与DL = 0FFh .

Use function 6 with DL = 0FFh.

无论有没有数据,它都会立即返回.它不会等待键盘输入.

It will return immediately either with data or without. It won't wait for keyboard input.

这篇关于使用串口在装配上聊天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆