home *** CD-ROM | disk | FTP | other *** search
- {$C-} Program KeyboardBufferTest;
- Var S: String[16];
- I: Integer;
-
- Begin
- Write('Enter a string to put in the keyboard buffer: ');
- ReadLn(S);
- S:=S+Chr(13);
- Mem[$40:26]:=30;
- Mem[$40:28]:=30+2*Length(S);
- For I:=1 To Length(S) Do
- Mem[$40:28+2*I]:=Ord(S[I]);
- End.
-
- For an interesting effect, run this in memory inside Turbo and give it a
- string of 10 or 15 'R's
- - Bela Lubkin