[comp.sys.ibm.pc] Keyboard I/O Ports

backman@interlan.UUCP (06/15/87)

	 HELP!

	 I need to emulate the keyboard programmatically, that is,
	 generate keycodes (by writing by some i/o port??) that can be
	 read via an IN instruction from the keyboard data port, 60H.

	 The scenario:

			+-----------------------+
			|	PROGRAM X	|
			+-----------------------+

			+-----------------------+
			|  RESIDENT PROGRAM Y	|
			+-----------------------+

	 Program X is running in the foreground and takes over the
	 keyboard interrupt (INT 9).  Each time it wakes up via the INT
	 9 it does an IN instruction from the keyboard data port 60H.
	 When the user types ALT Z, Program X terminates.

	 If Resident Program Y must exit while Program X is running, I
	 would like the resident program to generate the key sequence
	 ALT Z so that Program X exits cleanly, prior to Resident
	 Program Y exiting.




					Marcy Nash
					Micom - Interlan
					ihnp4-------\
					ulowell  ------ !interlan!backman
					mit-eddie ---/