79863

Question:
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?
Answer1:Use <a href="http://www.ctyme.com/intr/rb-2559.htm" rel="nofollow">function 6 with DL
= 0FFh</a>.
It will return immediately either with data or without. It won't wait for keyboard input.