home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!miavx1!apsvax.aps.muohio.edu!sjmadsen
- Newsgroups: comp.lang.pascal
- Subject: Re: HOW DO YOU READ MORE THAN ONE KEY
- Message-ID: <1992Nov20.140802.14326@miavx1.acs.muohio.edu>
- From: sjmadsen@apsvax.aps.muohio.edu (Steve Madsen)
- Date: 20 Nov 92 14:08:02 -0500
- References: <1992Nov19.100442.2914@cs.joensuu.fi>
- Nntp-Posting-Host: apsvax.aps.muohio.edu
- X-Newsreader: TIN [version 1.1 PL6]
- Lines: 16
-
- : begin
- : repeat
- : write(Port[$20]);
- ^^^
- : until (1=2);
- : end;
-
- Wrong.. Port $20 is the 8259 Programmable Interrupt Chip. It won't do
- you much good reading the keyboard scan codes.
-
- Try Port[$60]. I believe that's the right one. Also, a note on the
- numbers you will get:
-
- When you first press a key, the number shown is the MAKE code. When you
- release the key, another number will pop up. That's the BREAK code.
- Simply, those are the codes the keyboard sends when you press keys.
-