0
votes

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
Well, it's usual to run a separate read thread. The thought of calling CreateThread() from assembler is rather daunting :(Martin James
@Martin: there's no CreateThread under DOS. Note the OP mentioning int21h. Also, read the tags.Seva Alekseyev

1 Answers

1
votes

Use function 6 with DL = 0FFh.

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