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