Article View: comp.os.msdos.programmer
Article #1463Re: int 9h
From: 95016000
Date: Sat, 12 Sep 1992 15:26
Date: Sat, 12 Sep 1992 15:26
18 lines
979 bytes
979 bytes
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
Technical Details
Message-ID:
<18t26lINN3jm@darkstar.UCSC.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!darkstar.UCSC.EDU!ucscb.UCSC.EDU!noesisReferences:
<DAVIS.92Sep11115609@pacific.mps.ohio-state.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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