🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #225

Need to check for pending keyboard interrupt

#225
From: Andrew Payne
Date: Thu, 29 Mar 1990 18:18
18 lines
1121 bytes
Help.

I have an application that runs in a tight loop with interrupts disabled.
My problem is:  ending this loop when the user hits a key.

Since the interrupts are disabled, the keyboard interrupt handler is never
invoked, thus the BIOS keyboard routines don't work.

What I need is a way to check for a keyboard interrupt pending:  any easy
way to do this (e.g. what port and bit)?

Any info appreciated.

-- 
=  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =
Andrew C. Payne, N8KEI        UUCP:  ...!cornell!batcomputer!payne
                          INTERNET:  payne@tcgould.tn.cornell.edu
Technical Details
Message-ID: <10005@batcomputer.tn.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cornell!batcomputer!payne

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cornell!batcomputer!payne
From: payne@batcomputer.tn.cornell.edu (Andrew Payne)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Need to check for pending keyboard interrupt
Message-ID: <10005@batcomputer.tn.cornell.edu>
Date: 29 Mar 90 18:18:34 GMT
Reply-To: payne@tcgould.tn.cornell.edu (Andrew Payne)
Organization: Cornell Theory Center, Cornell University, Ithaca NY
Lines: 18
Keywords: keyboard interrupt