🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1479

How does INT 16 know that INT 9 has executed?

#1479
From: Yossi Gil
Date: Sun, 13 Sep 1992 05:31
16 lines
1092 bytes
Suppose you call int 16 with ah=0 and that there are no
keys in the keyboard queue. Int 16 codes then waits for
a keystroke to occur and return it.

Q:  What is the communication mechanism? How does int 9 signal
to int 16 that a keystroke occured. 

I did few experiments and as far as I can tell, int 16 doesn't loop
until head != tail for the keyboard queue. 

--
Joseph (Yossi) Gil                 {alberta,uw-beaver,uunet}!ubc-cs!yogi
Dept. of Computer Science          yogi@cs.ubc.ca (cs.ubc.ca=137.82.8.5)
6356 Agricultural Road., Univ. of B.C.,             Tel: +1-604-822-8175
Vancouver, British Columbia, V6T 1Z2, Canada.       Fax: +1-604-822-5485
Technical Details
Message-ID: <1992Sep13.053140.12086@cs.ubc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!yogi

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!yogi
From: yogi@cs.ubc.ca (Yossi Gil)
Subject: How does INT 16 know that INT 9 has executed?
Message-ID: <1992Sep13.053140.12086@cs.ubc.ca>
Sender: usenet@cs.ubc.ca (Usenet News)
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Date: Sun, 13 Sep 92 05:31:40 GMT
Lines: 16