home *** CD-ROM | disk | FTP | other *** search
- {$M 2048,0,4096 }
- Program TSRDemo;
-
- Uses
- CRT,
- DOS,
- TSR;
-
- {---------------------------------------------------------------------}
- {$F+} PROCEDURE Do_Demo; {$F-}
-
- VAR
- CH : Char;
- L : String;
- I : Integer;
-
- BEGIN
- WriteLn('You are in Do_Demo');
-
- Write('PRESS any key to continue....');
- REPEAT UNTIL KeyPressed;
- CH := ReadKey;
- WriteLn(CH);
-
- Write('Enter your name: ');
- ReadLn(L);
- Writeln('Hi, ', L);
-
- Writeln('Leaving Do_Demo');
- END; {Do_Demo}
- {---------------------------------------------------------------------}
-
- BEGIN { Main code of TSRDemo }
- TSRSign := 'Demo';
- InstalledProc := @Do_Demo; {Give my values to the variables that }
- HotScanCode := $20; { Alt-D } {are defined in the TSR unit }
-
- Writeln('TSRDemo is running'); {Let the user know its in there}
- Writeln('Type Alt-D to get into Do_demo');
-
- Install_TSR; {Redirect the necessary interrupts }
- {and end the program while leaving the }
- {the code in memory so my hot key can }
- {it up.}
- END. {TSRDemo}