The following BASIC program is a simple test you can run in hexadecimal mode:
10 FOR I=0 TO 255
20 LPRINT CHR$(I);
30 NEXT I
40LPRINT
50END
If your system passes the codes directly to the printer without changing them, you will get a printout like Figure
00 | 01 | UL | U'ia04 05 06 07 | 08 | 09 | OA 08 OC | 00 | OE | OF |
|
| ||||||
10 ,I 1: 13 14 15 16 17 | 18 19 1A 1B 1C 1D 1E 1F |
|
| ||||||||||||||
“0 21 22 23 24 25 26 27 | 28 29 | 2A | 28 | 2C | 20 | 2E | 2F | .;"#;xs' | ;;;;:L:; | ||||||||
30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 3A | 3B | 3C | 30 | 3E | 3F | 01234567 | 89:;<=>? |
40 | 41 | 4) | 43 | 44 | 45 | 4b | 47 | 48 | 49 | 4A 48 4C | 40 | 4E | 4F | @ABCDEFG | HIJKLMNO | ||
50 51 52 53 54 55 56 57 | 56 59 SA 58 5C | 5@ | 5E | 5F | PQRSTUVW | ||||||||||||
bU 61 hi 6: 64 b5 66 67 | 68 | 69 | 6A | 68 | 6C | 60 | 6E | 6F | ‘abcdefg | hijklmno | |||||||
7U fl ii 7: 74 75 ib 77 | 78 79 | 7A | 78 | 7C | 70 | 7E | 7F | pqrstuvw | xyz{t)" | ||||||||
~$0 81 82 8: 64 85 &b 67 | 88 89 8A 88 UC 80 8E 8F |
|
| ||||||||||||||
90 | 91 | 91 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 9A | 9E | 9C | 90 | 9E | 9F |
| . |
A0 | Al | Ai | A.i | A4 | A5 | Ah | A7 | A8 | A9 | AA | AK | AC | AD | AE | AF | ._...., |
|
80 | HI | RL | 133 | 84 | 85 | Kb | 88 | B9 | BA | BB | E;C | BD | BE | BF |
|
| |
(;I,C 1 | i,Z | C? | CO | C5 | Cb | C7 | C6 | C9 | CA CR CC | [CD | CE | CF |
|
| |||
LIU | L'l | DL | D' | iI4 | D5 | Db | D7 | D8 | D9 | DA | DB | DC | DD | DE | OF |
|
|
Ed | t4 | ES E6 | Ed E9 EA EB EC | ED | EE | EF |
|
| |||||||||
FIJ | F I | k‘ | F+ | F4 | F5 | Fb | F7 | Fb F9 FA FB FL | FD | FE | FF |
|
| ||||
ULI | UA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure Z-4. Sample hexadecimal dump
Most BASICS, however, are not quite that straightforward. For example, the
UU |
| Ill | U; | 03 | 114 | 05 | 06 | 07 | 06 09 OA Ot; OC OD OA OE |
|
| |||||||
ut |
| II, | 2 i | 1; I3 14 15 I6 | I:' '18 | 19 | 1C | 1C | 10 | 1E | IF | .p#&: | ij;;:::; | |||||
,IU | 2 I | 2 3 | 2 4 | : i | 2 b | 2 7 | 28 | 29 | 2A | 28 | 2C | 2D | 2E | 2F | ||||
5u |
| 31 | 31 | 33 | 3 4 | 3 J'. 3 6 | 3 7 | 38 39 | 3A | 38 | 3C | 3U | 3E | 3F | 01234567 | 89:.<=,? | ||
40 | 41 42 43 44 45 | 46 47 | 48 | 49 | 4A | 4B | 4C | 40 | 4E | 4F | @ABCDEFG | HIJKLMNO | ||||||
!,O | 51 | 52 | S;‘ | 54 | 55 | 56 | 57 | 58 59 | 5A | 5K | 5C | 5D | 5E | 5F | PQRSTUVW | XYZ[\]'- | ||
b0 |
| bl bi | 05 | 64 | 65 | 6b | 67 | 68 | 69 | 6A | 68 | 6C | 6L) | 6E | 6F | abcdefg | hijklmno | |
74 | 75 | 76 | 77 | 78 79 | ?A | 78 | 7C | 70 | 7E | 7F | pqrstuvw | xyz{l)‘ | ||||||
60 |
| 61 | 8: | 83 | 84 | 65 | 86 | 87 | 88 | 89 | 8A | 8B | 8C | 80 | 8E | 8F | . |
|
9u 91 Yl 93 94 95 | 96 | 97 | 98 | 99 | 9A | 9R | 9C | 9D | 9E | 9F |
| . | ||||||
A0 |
| Al | Ai Ai A4 A5 A6 | A7 | A8 | A9 | AA AK AC AD AE AF |
|
| |||||||||
80 |
| 61 | t;< | 61 | K4 | B5 | 66 | 87 | 68 | 89 | BA BR BC BD BE BF |
|
| |||||
L 0 | L 1 | C L | t:3 | C 4 | h 5 | C 6 | C 7 | C8 | C9 | CA CR CC CD CE CF |
|
| ||||||
D 0 | U | Ll: | US | L14 | 05 | 06 | 07 | 08 | D9 | DA | 06 | DC | DD | DE | OF |
| . | |
CO |
| El | EL Ej E4 EC, E6 | E7 | E8 | E9 | EA EB EC ED EE EF |
|
| |||||||||
FI:iFl | FZ | Fj F4 F5 | F6 | F7 | F8 | F9 | FA FB FC FD FE FF |
|
| |||||||||
00 |
| CIA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I
Figure 2-5. Sample hexadecimal dump with IBM-PC
26