home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9321 < prev    next >
Encoding:
Text File  |  1992-09-12  |  1.0 KB  |  27 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!yogi
  3. From: yogi@cs.ubc.ca (Yossi Gil)
  4. Subject: How does INT 16 know that INT 9 has executed?
  5. Message-ID: <1992Sep13.053140.12086@cs.ubc.ca>
  6. Sender: usenet@cs.ubc.ca (Usenet News)
  7. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  8. Date: Sun, 13 Sep 92 05:31:40 GMT
  9. Lines: 16
  10.  
  11.  
  12. Suppose you call int 16 with ah=0 and that there are no
  13. keys in the keyboard queue. Int 16 codes then waits for
  14. a keystroke to occur and return it.
  15.  
  16. Q:  What is the communication mechanism? How does int 9 signal
  17. to int 16 that a keystroke occured. 
  18.  
  19. I did few experiments and as far as I can tell, int 16 doesn't loop
  20. until head != tail for the keyboard queue. 
  21.  
  22. --
  23. Joseph (Yossi) Gil                 {alberta,uw-beaver,uunet}!ubc-cs!yogi
  24. Dept. of Computer Science          yogi@cs.ubc.ca (cs.ubc.ca=137.82.8.5)
  25. 6356 Agricultural Road., Univ. of B.C.,             Tel: +1-604-822-8175
  26. Vancouver, British Columbia, V6T 1Z2, Canada.       Fax: +1-604-822-5485
  27.