home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9304 < prev    next >
Encoding:
Internet Message Format  |  1992-09-12  |  951 b 

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!darkstar.UCSC.EDU!ucscb.UCSC.EDU!noesis
  2. From: noesis@ucscb.UCSC.EDU (95016000)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: int 9h
  5. Date: 12 Sep 1992 15:26:13 GMT
  6. Organization: University of California; Santa Cruz
  7. Lines: 19
  8. Message-ID: <18t26lINN3jm@darkstar.UCSC.EDU>
  9. References: <DAVIS.92Sep11115609@pacific.mps.ohio-state.edu>
  10. NNTP-Posting-Host: ucscb.ucsc.edu
  11.  
  12.  
  13. In article <DAVIS.92Sep11115609@pacific.mps.ohio-state.edu> davis@pacific.mps.ohio-state.edu  (John E. Davis) writes:
  14. ...
  15. >
  16. >void interrupt int9_handler(void)
  17. >{
  18. >     if (/* peek at key from keyboard */ == Interrupt_Char)
  19. >       KeyBoard_Flag = 1;
  20. >     else
  21. >       (*oldint9)();
  22. >}
  23. ...
  24.  
  25. at the end of your interrupt you need an 'out 20h, 20h' or your machine will
  26. lock.
  27. next, read port 60h which will hold the key pressed as either a make or break
  28. scan code (break codes have bit 7 set, used when a key is released)
  29. --kyle
  30.  
  31.