Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!houxm!mhuxt!mhuxm!mhuxo!ulysses!allegra!mit-eddie!interlan!backman From: backman@interlan.UUCP Newsgroups: comp.sys.ibm.pc Subject: Keyboard I/O Ports Message-ID: <134@interlan.UUCP> Date: Mon, 15-Jun-87 14:37:42 EDT Article-I.D.: interlan.134 Posted: Mon Jun 15 14:37:42 1987 Date-Received: Wed, 17-Jun-87 02:32:04 EDT Reply-To: backman@interlan.UUCP (Larry Backman) Distribution: na Organization: MICOM-Interlan, Boxborough, MA Lines: 40 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 ---/