How to put a time limit to the input function in assembly

This question omits what the target system is. I've programmed on many boards and since you are asking I have to think this is not a x86 system.

Just like your other post, think about your question and ask if you are supplying enough detail as well as showing your work so far.

commented: is there anyway that you can provide timer on xor ah,ah +0