If we press up arrow key then we get straight line of stars in 8086 assembly language?how....,up arrow key ascii=37.

Hi,
When you press a special key, you get first a key code with the value 0 (zero). Inmediately you read the second part of the code. I believe that for the arrow up key it is 72. The same issue applies to combinations of standard keys and Control and Alt. Simply there are two values inside the buffer. At least this worked with MSDOS.
Cheers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.