[comp.sys.ibm.pc] Reading PC Keyboard

pssw@warwick.UUCP (P S Swanson) (04/22/88)

Can anybody enlighten me as to which port must be read to detect any key(s)
being depressed on an IBM PC, and give an assembly language example ?

pajerek@kadsma.kadsm (Don Pajerek) (04/27/88)

In article <622@ubu.warwick.UUCP> pssw@diamond.UUCP (P S Swanson) writes:
>Can anybody enlighten me as to which port must be read to detect any key(s)
>being depressed on an IBM PC, and give an assembly language example ?

	in	al,60H

will give you the scan code of the last key pressed. note that both
'make' and 'break' codes are available using this method.