chat on assembly using serial port

五迷三道 提交于 2019-12-24 20:28:27

问题


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

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?


回答1:


Use function 6 with DL = 0FFh.

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



来源:https://stackoverflow.com/questions/15725344/chat-on-assembly-using-serial-port

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!