home *** CD-ROM | disk | FTP | other *** search
- {-----------------------------}
- { ASCII.PROC }
- {-----------------------------}
-
- PROCEDURE ASCII;
- { See Tom Swan p. 39 ff }
-
- VAR
- Ch : Char;
- Num : Integer;
-
- BEGIN
- ClrScr;
- WriteLn;
- WriteLn;
- Write ( 'ASCII Character Set ' );
- WriteLn;
- WriteLn;
- FOR Num := 0 TO 255 DO
- WriteLn ( 'ASCII Number = ',Num, ' Character = ',Char(Num) );
- ReadLn;
- END;
- { As an exercise, convert this procedure to
- one that prints out the ASCII code. See
- Tom Swan pp. 587-588 to declare a file,
- then make the file LPT1. )
-