Category : Pascal Source Code
Archive   : WHEELS.ZIP
Filename : NEWINT9.PAS

 
Output of file : NEWINT9.PAS contained in archive : WHEELS.ZIP
{@@@@@@@@@@@ copyright (C) 1984 by Neil J. Rubenking @@@@@@@@@@@@@@@@@@@@@@@@
The purchaser of these procedures and functions may include them in COMPILED
programs freely, but may not sell or give away the source text.

NOTE that programs that replace the keyboard interrupt had
better not CRASH before they put back the OLD interrupt. If
they do, you will have to turn off your PC and turn it on
again to do anything.

}
{$I newint9.lib}
var
ThatKey : byte;
begin
WriteLn('When you press a key, the regular keyboard interrupt will be');
WriteLn('replaced. The new interrupt responds only to keys pressed and');
WriteLn('keys released--no typematic, no shifts. The output is a scan');
WriteLn('code. Scan code for release is the regular code + 128.');
WriteLn('Try some keys. Press to restore things.');
WriteLn(' NOTE: is actually disabled by this new');
WriteLn(' interrupt--it has to watch for it specially.');
repeat until keypressed;
SetUpInt;
NewInt;
repeat
ThatKey := WatchKeys;
Write(ThatKey:5);
if ThatKey < 128 then
begin
sound(ThatKey*20 + 500);
WriteLn(' pressed');
end
else
begin
nosound;
WriteLn(' released');
end;
until (OlderByte = 29) and (OldByte = 70);
NoSound;
OldInt;
end.



  3 Responses to “Category : Pascal Source Code
Archive   : WHEELS.ZIP
Filename : NEWINT9.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/