Home » CEEFAX disks » telesoftware7.adl » 04-06-88/MANUAL » Compare
Compare 04-06-88/MANUAL with 27-01-89/TFSinfo
| File: | CEEFAX disks » telesoftware7.adl » 04-06-88/MANUAL |
| Compared with: | CEEFAX disks » telesoftware12.adl » 27-01-89/TFSinfo |
| Similarity: | 74% of bytes duplicated |
74.4% of the bytes in these files are duplicated between them. Duplicated Different Padding (ignored)
Bytes are marked as duplicated if they lie within a run of at least 16 bytes which also appears somewhere in the other file, in any position. Long runs of padding bytes
(zeros, spaces, &FF and &E5) are ignored.
04-06-88/MANUAL
00000000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 45 | TE| 00000010 4c 45 54 45 58 54 20 53 45 52 56 45 52 20 53 59 |LETEXT SERVER SY| 00000020 53 54 45 4d 0d 0d 54 68 65 20 73 79 73 74 65 6d |STEM..The system| 00000030 20 63 6f 6e 73 69 73 74 73 20 6f 66 20 74 68 72 | consists of thr| 00000040 65 65 20 70 72 6f 67 72 61 6d 73 0d 0d 31 2e 20 |ee programs..1. | 00000050 41 20 62 61 73 69 63 20 70 72 6f 67 72 61 6d 20 |A basic program | 00000060 27 54 46 53 27 20 77 68 69 63 68 20 72 75 6e 73 |'TFS' which runs| 00000070 20 69 6e 20 74 68 65 20 6d 61 63 68 69 6e 65 20 | in the machine | 00000080 77 69 74 68 20 74 68 65 20 74 65 6c 65 74 65 78 |with the teletex| 00000090 74 0d 61 64 61 70 74 6f 72 20 28 68 65 6e 63 65 |t.adaptor (hence| 000000a0 66 6f 72 74 68 20 63 61 6c 6c 65 64 20 74 68 65 |forth called the| 000000b0 20 53 45 52 56 45 52 29 0d 32 2e 20 41 20 6d 61 | SERVER).2. A ma| 000000c0 63 68 69 6e 65 20 63 6f 64 65 20 72 6f 75 74 69 |chine code routi| 000000d0 6e 65 20 27 63 6f 64 65 27 20 77 68 69 63 68 20 |ne 'code' which | 000000e0 69 73 20 2a 52 55 4e 20 62 79 20 74 68 65 20 70 |is *RUN by the p| 000000f0 72 6f 67 72 61 6d 20 54 46 53 2e 0d 33 2e 20 41 |rogram TFS..3. A| 00000100 20 6d 61 63 68 69 6e 65 20 63 6f 64 65 20 70 72 | machine code pr| 00000110 6f 67 72 61 6d 20 27 54 45 4c 45 54 45 58 54 27 |ogram 'TELETEXT'| 00000120 20 77 68 69 63 68 20 72 75 6e 73 20 69 6e 20 74 | which runs in t| 00000130 68 65 20 6c 6f 63 61 6c 20 6d 61 63 68 69 6e 65 |he local machine| 00000140 0d 28 68 65 6e 63 65 66 6f 72 74 68 20 63 61 6c |.(henceforth cal| 00000150 6c 65 64 20 74 68 65 20 43 4c 49 45 4e 54 29 0d |led the CLIENT).| 00000160 0d 54 68 65 20 73 65 72 76 65 72 20 61 6e 64 20 |.The server and | 00000170 63 6c 69 65 6e 74 20 63 6f 6d 6d 75 6e 69 63 61 |client communica| 00000180 74 65 20 6f 6e 20 70 6f 72 74 73 20 26 42 32 2c |te on ports &B2,| 00000190 20 26 42 33 2c 20 26 42 34 20 61 6e 64 20 26 42 | &B3, &B4 and &B| 000001a0 35 2e 20 54 68 65 20 62 61 73 65 0d 70 6f 72 74 |5. The base.port| 000001b0 20 6e 75 6d 62 65 72 20 6f 66 20 26 42 32 20 69 | number of &B2 i| 000001c0 73 20 74 72 61 6e 73 6d 69 74 74 65 64 20 74 6f |s transmitted to| 000001d0 20 74 68 65 20 63 6c 69 65 6e 74 20 69 6e 20 61 | the client in a| 000001e0 63 63 6f 72 64 61 6e 63 65 20 77 69 74 68 20 74 |ccordance with t| 000001f0 68 65 0d 46 69 6e 64 20 53 65 72 76 65 72 20 70 |he.Find Server p| 00000200 72 6f 74 6f 63 6f 6c 2e 20 49 74 20 69 73 20 70 |rotocol. It is p| 00000210 6f 73 73 69 62 6c 65 20 74 6f 20 77 72 69 74 65 |ossible to write| 00000220 20 70 72 6f 67 72 61 6d 73 20 74 6f 20 63 6f 6d | programs to com| 00000230 6d 75 6e 69 63 61 74 65 20 77 69 74 68 0d 74 68 |municate with.th| 00000240 65 20 54 45 4c 45 54 45 58 54 2d 53 45 52 56 45 |e TELETEXT-SERVE| 00000250 52 20 75 73 69 6e 67 20 74 68 65 73 65 20 70 6f |R using these po| 00000260 72 74 73 20 62 75 74 20 69 74 20 63 6f 75 6c 64 |rts but it could| 00000270 20 62 65 20 74 68 61 74 20 75 70 64 61 74 65 73 | be that updates| 00000280 20 6f 66 20 74 68 65 0d 73 65 72 76 65 72 20 73 | of the.server s| 00000290 6f 66 74 77 61 72 65 20 6d 61 79 20 75 73 65 20 |oftware may use | 000002a0 61 20 64 69 66 66 65 72 65 6e 74 20 62 61 73 65 |a different base| 000002b0 20 70 6f 72 74 20 6e 75 6d 62 65 72 2c 20 69 6e | port number, in| 000002c0 20 77 68 69 63 68 20 63 61 73 65 20 73 75 63 68 | which case such| 000002d0 0d 70 72 6f 67 72 61 6d 73 20 77 69 6c 6c 20 63 |.programs will c| 000002e0 65 61 73 65 20 74 6f 20 77 6f 72 6b 2e 0d 0d 20 |ease to work... | 000002f0 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 | The| 00000300 20 54 45 4c 45 54 45 58 54 20 70 72 6f 67 72 61 | TELETEXT progra| 00000310 6d 0d 0d 54 68 69 73 20 6c 6f 63 61 74 65 73 20 |m..This locates | 00000320 61 74 20 26 46 46 46 46 36 45 30 30 20 61 6e 64 |at &FFFF6E00 and| 00000330 20 73 6f 20 73 68 6f 75 6c 64 20 6e 6f 74 20 63 | so should not c| 00000340 6f 72 72 75 70 74 20 61 6e 79 20 42 41 53 49 43 |orrupt any BASIC| 00000350 20 70 72 6f 67 72 61 6d 20 69 6e 0d 74 68 65 20 | program in.the | 00000360 43 4c 49 45 4e 54 27 73 20 6d 65 6d 6f 72 79 2e |CLIENT's memory.| 00000370 20 49 74 20 77 69 6c 6c 20 77 6f 72 6b 20 77 69 | It will work wi| 00000380 74 68 20 61 6c 6c 20 76 65 72 73 69 6f 6e 73 20 |th all versions | 00000390 6f 66 20 74 68 65 20 42 42 43 20 42 2c 20 42 2b |of the BBC B, B+| 000003a0 2c 0d 4d 41 53 54 45 52 20 61 6e 64 20 45 54 2e |,.MASTER and ET.| 000003b0 20 54 68 65 20 70 72 6f 67 72 61 6d 20 77 69 6c | The program wil| 000003c0 6c 20 61 6c 73 6f 20 63 6f 6d 6d 75 6e 69 63 61 |l also communica| 000003d0 74 65 20 77 69 74 68 20 61 20 53 45 52 56 45 52 |te with a SERVER| 000003e0 20 61 63 72 6f 73 73 20 61 0d 62 72 69 64 67 65 | across a.bridge| 000003f0 20 61 6c 74 68 6f 75 67 68 20 73 6f 6d 65 20 6f | although some o| 00000400 66 20 74 68 65 20 68 65 61 64 65 72 73 20 6d 61 |f the headers ma| 00000410 79 20 62 65 20 6c 6f 73 74 20 61 73 20 74 68 65 |y be lost as the| 00000420 73 65 20 61 72 65 20 62 72 6f 61 64 63 61 73 74 |se are broadcast| 00000430 20 61 6e 64 0d 74 68 65 72 65 20 69 73 20 6e 6f | and.there is no| 00000440 20 63 6f 6c 6c 69 73 69 6f 6e 20 64 65 74 65 63 | collision detec| 00000450 74 20 61 63 72 6f 73 73 20 61 20 62 72 69 64 67 |t across a bridg| 00000460 65 2e 0d 0d 31 2e 20 54 68 65 20 66 69 72 73 74 |e...1. The first| 00000470 20 61 63 74 69 6f 6e 20 69 73 20 74 6f 20 6f 70 | action is to op| 00000480 65 6e 20 61 20 72 65 63 65 69 76 65 20 62 6c 6f |en a receive blo| 00000490 63 6b 20 74 6f 20 72 65 63 65 69 76 65 20 61 0d |ck to receive a.| 000004a0 54 45 4c 45 54 45 58 54 2d 53 45 52 56 45 52 27 |TELETEXT-SERVER'| 000004b0 73 20 72 65 70 6c 79 20 74 6f 20 61 20 66 69 6e |s reply to a fin| 000004c0 64 20 73 65 72 76 65 72 20 72 65 71 75 65 73 74 |d server request| 000004d0 2e 20 54 68 69 73 20 72 65 63 65 69 76 65 20 62 |. This receive b| 000004e0 6c 6f 63 6b 0d 6c 69 73 74 65 6e 73 20 6f 6e 20 |lock.listens on | 000004f0 70 6f 72 74 20 26 42 31 20 74 6f 20 61 6c 6c 20 |port &B1 to all | 00000500 73 74 61 74 69 6f 6e 73 2c 20 61 73 20 61 74 20 |stations, as at | 00000510 74 68 69 73 20 73 74 61 67 65 20 74 68 65 20 43 |this stage the C| 00000520 4c 49 45 4e 54 20 64 6f 65 73 20 6e 6f 74 0d 6b |LIENT does not.k| 00000530 6e 6f 77 20 74 68 65 20 73 74 61 74 69 6f 6e 20 |now the station | 00000540 6e 75 6d 62 65 72 20 6f 66 20 74 68 65 20 53 45 |number of the SE| 00000550 52 56 45 52 2e 0d 0d 32 2e 20 54 68 65 20 43 4c |RVER...2. The CL| 00000560 49 45 4e 54 20 62 72 6f 61 64 63 61 73 74 73 20 |IENT broadcasts | 00000570 74 6f 20 61 6c 6c 20 73 74 61 74 69 6f 6e 73 20 |to all stations | 00000580 6f 6e 20 70 6f 72 74 20 26 42 30 20 77 69 74 68 |on port &B0 with| 00000590 20 61 20 64 61 74 61 20 66 69 65 6c 64 0d 63 6f | a data field.co| 000005a0 6e 74 61 69 6e 69 6e 67 20 27 54 45 4c 45 54 45 |ntaining 'TELETE| 000005b0 58 54 27 20 74 68 69 73 20 62 65 69 6e 67 20 74 |XT' this being t| 000005c0 68 65 20 6e 61 6d 65 20 74 6f 20 77 68 69 63 68 |he name to which| 000005d0 20 61 20 54 45 4c 45 54 45 58 54 2d 53 45 52 56 | a TELETEXT-SERV| 000005e0 45 52 20 77 69 6c 6c 0d 72 65 73 70 6f 6e 64 2e |ER will.respond.| 000005f0 20 54 68 65 20 66 69 72 73 74 20 53 45 52 56 45 | The first SERVE| 00000600 52 20 74 6f 20 72 65 73 70 6f 6e 64 20 77 69 6c |R to respond wil| 00000610 6c 20 62 65 20 74 68 65 20 6f 6e 65 20 77 69 74 |l be the one wit| 00000620 68 20 77 68 69 63 68 20 74 68 65 20 43 4c 49 45 |h which the CLIE| 00000630 4e 54 0d 73 75 62 73 65 71 75 65 6e 74 6c 79 20 |NT.subsequently | 00000640 69 6e 74 65 72 61 63 74 73 2e 20 53 68 6f 75 6c |interacts. Shoul| 00000650 64 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 |d more than one | 00000660 73 65 72 76 65 72 20 62 65 20 61 76 61 69 6c 61 |server be availa| 00000670 62 6c 65 20 74 68 65 6e 20 69 74 0d 69 73 20 70 |ble then it.is p| 00000680 6f 73 73 69 62 6c 65 20 74 6f 20 63 6f 6e 6e 65 |ossible to conne| 00000690 63 74 20 74 6f 20 61 20 73 70 65 63 69 66 69 63 |ct to a specific| 000006a0 20 73 65 72 76 65 72 20 62 79 20 75 73 69 6e 67 | server by using| 000006b0 20 69 74 73 20 73 74 61 74 69 6f 6e 20 6e 75 6d | its station num| 000006c0 62 65 72 20 65 67 0d 2a 54 45 4c 45 54 45 58 54 |ber eg.*TELETEXT| 000006d0 20 32 2e 34 35 2e 20 59 6f 75 20 6d 61 79 20 77 | 2.45. You may w| 000006e0 69 73 68 20 74 6f 20 64 6f 20 74 68 69 73 20 69 |ish to do this i| 000006f0 66 20 79 6f 75 20 6b 6e 6f 77 20 74 68 61 74 20 |f you know that | 00000700 6f 6e 65 20 73 65 72 76 65 72 0d 72 65 63 65 69 |one server.recei| 00000710 76 65 73 20 61 20 62 65 74 74 65 72 20 73 69 67 |ves a better sig| 00000720 6e 61 6c 20 74 68 61 6e 20 61 6e 6f 74 68 65 72 |nal than another| 00000730 2c 20 6f 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c |, on the channel| 00000740 20 79 6f 75 20 77 69 73 68 20 74 6f 20 75 73 65 | you wish to use| 00000750 2e 0d 0d 33 2e 20 54 68 65 20 43 4c 49 45 4e 54 |...3. The CLIENT| 00000760 20 70 6f 6c 6c 73 20 74 68 65 20 72 65 63 65 69 | polls the recei| 00000770 76 65 20 62 6c 6f 63 6b 20 75 6e 74 69 6c 20 61 |ve block until a| 00000780 20 53 45 52 56 45 52 20 72 65 73 70 6f 6e 64 73 | SERVER responds| 00000790 20 6f 72 20 3c 45 53 43 41 50 45 3e 0d 69 73 20 | or <ESCAPE>.is | 000007a0 70 72 65 73 73 65 64 2e 0d 0d 34 2e 20 54 68 65 |pressed...4. The| 000007b0 20 43 4c 49 45 4e 54 20 72 65 61 64 73 20 74 68 | CLIENT reads th| 000007c0 65 20 53 45 52 56 45 52 27 73 20 72 65 70 6c 79 |e SERVER's reply| 000007d0 20 61 6e 64 20 73 74 6f 72 65 73 20 74 68 65 20 | and stores the | 000007e0 53 45 52 56 45 52 27 73 20 73 74 61 74 69 6f 6e |SERVER's station| 000007f0 20 61 6e 64 0d 6e 65 74 77 6f 72 6b 20 6e 75 6d | and.network num| 00000800 62 65 72 2e 20 54 68 65 20 62 61 73 65 20 70 6f |ber. The base po| 00000810 72 74 20 6e 75 6d 62 65 72 20 28 26 42 32 29 20 |rt number (&B2) | 00000820 69 73 20 75 73 65 64 20 74 6f 20 63 61 6c 63 75 |is used to calcu| 00000830 6c 61 74 65 20 74 68 65 20 70 6f 72 74 73 0d 66 |late the ports.f| 00000840 6f 72 20 66 75 72 74 68 65 72 20 63 6f 6d 6d 75 |or further commu| 00000850 6e 69 63 61 74 69 6f 6e 2e 20 54 68 65 20 43 4c |nication. The CL| 00000860 49 45 4e 54 20 73 65 6c 65 63 74 73 20 4d 4f 44 |IENT selects MOD| 00000870 45 20 37 2c 20 70 72 69 6e 74 73 20 74 68 65 20 |E 7, prints the | 00000880 53 45 52 56 45 52 27 73 0d 73 74 61 74 69 6f 6e |SERVER's.station| 00000890 20 6e 75 6d 62 65 72 20 28 73 75 70 70 72 65 73 | number (suppres| 000008a0 73 69 6e 67 20 74 68 65 20 6e 65 74 77 6f 72 6b |sing the network| 000008b0 20 6e 75 6d 62 65 72 20 69 66 20 69 74 20 69 73 | number if it is| 000008c0 20 7a 65 72 6f 29 20 61 6e 64 20 61 6c 73 6f 20 | zero) and also | 000008d0 74 68 65 0d 76 65 72 73 69 6f 6e 20 6e 75 6d 62 |the.version numb| 000008e0 65 72 2e 0d 0d 35 2e 20 54 68 65 20 43 4c 49 45 |er...5. The CLIE| 000008f0 4e 54 20 6f 70 65 6e 73 20 74 68 72 65 65 20 72 |NT opens three r| 00000900 65 63 65 69 76 65 20 62 6c 6f 63 6b 73 2e 20 4f |eceive blocks. O| 00000910 6e 65 20 6f 6e 20 70 6f 72 74 20 26 42 35 20 28 |ne on port &B5 (| 00000920 62 61 73 65 2b 33 29 20 72 65 61 64 79 0d 74 6f |base+3) ready.to| 00000930 20 72 65 63 65 69 76 65 20 61 6e 79 20 70 61 67 | receive any pag| 00000940 65 20 68 65 61 64 65 72 73 20 77 68 69 63 68 20 |e headers which | 00000950 61 72 72 69 76 65 2c 20 6f 6e 65 20 6f 6e 20 70 |arrive, one on p| 00000960 6f 72 74 20 26 42 32 20 28 62 61 73 65 29 20 72 |ort &B2 (base) r| 00000970 65 61 64 79 20 74 6f 0d 72 65 63 65 69 76 65 20 |eady to.receive | 00000980 61 6e 79 20 53 45 52 56 45 52 20 72 65 70 6c 69 |any SERVER repli| 00000990 65 73 20 61 6e 64 20 6f 6e 65 20 6f 6e 20 70 6f |es and one on po| 000009a0 72 74 20 26 42 34 20 28 62 61 73 65 2b 32 29 20 |rt &B4 (base+2) | 000009b0 74 6f 20 72 65 63 65 69 76 65 20 61 6e 79 0d 70 |to receive any.p| 000009c0 61 67 65 73 2e 0d 0d 36 2e 20 54 68 65 20 43 4c |ages...6. The CL| 000009d0 49 45 4e 54 20 73 65 6e 64 73 20 61 20 72 65 71 |IENT sends a req| 000009e0 75 65 73 74 20 66 6f 72 20 70 61 67 65 20 31 31 |uest for page 11| 000009f0 30 30 20 28 74 68 65 20 66 69 72 73 74 20 64 69 |00 (the first di| 00000a00 67 69 74 20 69 6e 64 69 63 61 74 65 73 20 74 68 |git indicates th| 00000a10 65 0d 63 68 61 6e 6e 65 6c 20 6e 75 6d 62 65 72 |e.channel number| 00000a20 29 2e 20 54 68 69 73 20 69 73 20 6f 6e 20 70 6f |). This is on po| 00000a30 72 74 20 26 42 33 20 28 62 61 73 65 2b 31 29 20 |rt &B3 (base+1) | 00000a40 77 69 74 68 20 61 20 63 6f 6e 74 72 6f 6c 20 62 |with a control b| 00000a50 79 74 65 20 6f 66 20 26 38 31 2e 0d 54 68 65 20 |yte of &81..The | 00000a60 72 65 70 6c 79 20 72 65 63 65 69 76 65 20 62 6c |reply receive bl| 00000a70 6f 63 6b 20 69 73 20 74 68 65 6e 20 70 6f 6c 6c |ock is then poll| 00000a80 65 64 20 75 6e 74 69 6c 20 74 68 65 20 53 45 52 |ed until the SER| 00000a90 56 45 52 20 72 65 73 70 6f 6e 64 73 2e 20 54 68 |VER responds. Th| 00000aa0 65 0d 70 6f 73 69 74 69 6f 6e 20 69 6e 20 74 68 |e.position in th| 00000ab0 65 20 71 75 65 75 65 20 72 65 74 75 72 6e 65 64 |e queue returned| 00000ac0 20 62 79 20 74 68 65 20 53 45 52 56 45 52 20 69 | by the SERVER i| 00000ad0 73 20 70 72 69 6e 74 65 64 20 61 74 20 74 68 65 |s printed at the| 00000ae0 20 62 6f 74 74 6f 6d 20 6f 66 0d 74 68 65 20 70 | bottom of.the p| 00000af0 61 67 65 2e 20 41 20 6e 65 77 20 72 65 63 65 69 |age. A new recei| 00000b00 76 65 20 62 6c 6f 63 6b 20 66 6f 72 20 72 65 70 |ve block for rep| 00000b10 6c 69 65 73 20 6f 6e 20 70 6f 72 74 20 26 42 32 |lies on port &B2| 00000b20 20 69 73 20 73 65 74 20 75 70 2e 20 49 66 20 61 | is set up. If a| 00000b30 6e 0d 65 72 72 6f 72 20 6f 63 63 75 72 73 20 74 |n.error occurs t| 00000b40 68 65 6e 20 74 68 65 20 65 72 72 6f 72 20 6d 65 |hen the error me| 00000b50 73 73 61 67 65 20 69 73 20 64 69 73 70 6c 61 79 |ssage is display| 00000b60 65 64 20 61 74 20 74 68 65 20 62 6f 74 74 6f 6d |ed at the bottom| 00000b70 20 6f 66 20 74 68 65 0d 73 63 72 65 65 6e 20 61 | of the.screen a| 00000b80 6e 64 20 74 68 65 20 70 61 67 65 20 69 6e 70 75 |nd the page inpu| 00000b90 74 20 72 6f 75 74 69 6e 65 20 69 73 20 65 6e 74 |t routine is ent| 00000ba0 65 72 65 64 20 6f 72 20 69 66 20 74 68 65 20 65 |ered or if the e| 00000bb0 72 72 6f 72 20 77 61 73 20 61 20 27 42 61 64 0d |rror was a 'Bad.| 00000bc0 63 68 61 6e 6e 65 6c 27 20 65 72 72 6f 72 20 74 |channel' error t| 00000bd0 68 65 6e 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 |hen the channel | 00000be0 69 6e 70 75 74 20 72 6f 75 74 69 6e 65 20 69 73 |input routine is| 00000bf0 20 65 6e 74 65 72 65 64 2e 0d 0d 37 2e 20 54 68 | entered...7. Th| 00000c00 65 20 43 4c 49 45 4e 54 20 70 6f 6c 6c 73 20 62 |e CLIENT polls b| 00000c10 6f 74 68 20 72 65 63 65 69 76 65 20 62 6c 6f 63 |oth receive bloc| 00000c20 6b 73 20 66 6f 72 20 61 20 70 61 67 65 20 28 70 |ks for a page (p| 00000c30 6f 72 74 20 26 42 34 29 20 61 6e 64 20 66 6f 72 |ort &B4) and for| 00000c40 20 61 0d 68 65 61 64 65 72 20 28 70 6f 72 74 20 | a.header (port | 00000c50 26 42 35 29 2c 20 75 6e 74 69 6c 20 6f 6e 65 20 |&B5), until one | 00000c60 6f 72 20 74 68 65 20 6f 74 68 65 72 20 72 65 63 |or the other rec| 00000c70 65 69 76 65 73 20 61 20 74 72 61 6e 73 6d 69 73 |eives a transmis| 00000c80 73 69 6f 6e 2e 0d 0d 38 2e 20 49 66 20 61 20 70 |sion...8. If a p| 00000c90 61 67 65 20 68 65 61 64 65 72 20 69 73 20 72 65 |age header is re| 00000ca0 63 65 69 76 65 64 20 74 68 65 6e 20 74 68 65 20 |ceived then the | 00000cb0 63 75 72 73 6f 72 20 69 73 20 6d 6f 76 65 64 20 |cursor is moved | 00000cc0 74 6f 20 74 68 65 20 68 65 61 64 65 72 0d 70 6f |to the header.po| 00000cd0 73 69 74 69 6f 6e 20 61 6e 64 20 69 74 20 69 73 |sition and it is| 00000ce0 20 70 72 69 6e 74 65 64 20 6f 75 74 2e 20 41 6e | printed out. An| 00000cf0 20 69 64 65 6e 74 69 63 61 6c 20 72 65 63 65 69 | identical recei| 00000d00 76 65 20 62 6c 6f 63 6b 20 69 73 20 74 68 65 6e |ve block is then| 00000d10 20 73 65 74 20 75 70 0d 74 6f 20 72 65 70 6c 61 | set up.to repla| 00000d20 63 65 20 74 68 65 20 6f 6e 65 20 77 68 69 63 68 |ce the one which| 00000d30 20 68 61 73 20 62 65 65 6e 20 75 73 65 64 2e 0d | has been used..| 00000d40 0d 39 2e 20 49 66 20 61 20 72 65 71 75 65 73 74 |.9. If a request| 00000d50 65 64 20 70 61 67 65 20 69 73 20 72 65 63 65 69 |ed page is recei| 00000d60 76 65 64 20 74 68 65 20 66 69 72 73 74 20 61 63 |ved the first ac| 00000d70 74 69 6f 6e 20 69 73 20 74 6f 20 74 65 73 74 20 |tion is to test | 00000d80 74 68 65 20 63 6f 6e 74 72 6f 6c 0d 62 79 74 65 |the control.byte| 00000d90 2e 20 49 66 20 74 68 69 73 20 69 73 20 26 38 30 |. If this is &80| 00000da0 20 74 68 65 6e 20 69 74 20 69 6e 64 69 63 61 74 | then it indicat| 00000db0 65 73 20 74 68 65 20 70 61 67 65 20 68 61 73 20 |es the page has | 00000dc0 62 65 65 6e 20 66 6f 75 6e 64 20 61 6e 64 20 69 |been found and i| 00000dd0 73 20 69 6e 0d 74 68 65 20 72 65 63 65 69 76 65 |s in.the receive| 00000de0 20 62 6c 6f 63 6b 20 62 75 66 66 65 72 20 72 65 | block buffer re| 00000df0 61 64 79 20 74 6f 20 62 65 20 74 72 61 6e 73 66 |ady to be transf| 00000e00 65 72 72 65 64 20 74 6f 20 74 68 65 20 73 63 72 |erred to the scr| 00000e10 65 65 6e 2e 20 49 66 20 74 68 65 0d 63 6f 6e 74 |een. If the.cont| 00000e20 72 6f 6c 20 62 79 74 65 20 69 73 20 26 38 31 20 |rol byte is &81 | 00000e30 74 68 65 6e 20 74 68 69 73 20 69 6e 64 69 63 61 |then this indica| 00000e40 74 65 73 20 73 6f 6d 65 20 65 72 72 6f 72 20 68 |tes some error h| 00000e50 61 73 20 6f 63 63 75 72 72 65 64 20 61 6e 64 20 |as occurred and | 00000e60 74 68 61 74 0d 61 6e 20 65 72 72 6f 72 20 6d 65 |that.an error me| 00000e70 73 73 61 67 65 20 69 73 20 69 6e 20 74 68 65 20 |ssage is in the | 00000e80 72 65 63 65 69 76 65 20 62 6c 6f 63 6b 20 62 75 |receive block bu| 00000e90 66 66 65 72 20 77 61 69 74 69 6e 67 20 74 6f 20 |ffer waiting to | 00000ea0 62 65 20 70 72 69 6e 74 65 64 2e 0d 0d 31 30 2e |be printed...10.| 00000eb0 20 49 66 20 61 6e 20 65 72 72 6f 72 20 68 61 73 | If an error has| 00000ec0 20 6f 63 63 75 72 72 65 64 20 74 68 65 6e 20 74 | occurred then t| 00000ed0 68 65 20 65 72 72 6f 72 20 6d 65 73 73 61 67 65 |he error message| 00000ee0 20 69 73 20 70 72 69 6e 74 65 64 20 61 74 20 74 | is printed at t| 00000ef0 68 65 0d 62 6f 74 74 6f 6d 20 6f 66 20 74 68 65 |he.bottom of the| 00000f00 20 73 63 72 65 65 6e 20 61 6e 64 20 74 68 65 20 | screen and the | 00000f10 43 4c 49 45 4e 54 20 70 72 6f 67 72 61 6d 20 6a |CLIENT program j| 00000f20 75 6d 70 73 20 74 6f 20 74 68 65 20 70 61 67 65 |umps to the page| 00000f30 20 6e 75 6d 62 65 72 20 69 6e 70 75 74 0d 72 6f | number input.ro| 00000f40 75 74 69 6e 65 20 74 6f 20 67 65 74 20 61 6e 6f |utine to get ano| 00000f50 74 68 65 72 20 70 61 67 65 20 6e 75 6d 62 65 72 |ther page number| 00000f60 2e 20 41 20 6e 65 77 20 72 65 63 65 69 76 65 20 |. A new receive | 00000f70 62 6c 6f 63 6b 20 66 6f 72 20 61 20 70 61 67 65 |block for a page| 00000f80 20 69 73 20 73 65 74 0d 75 70 2e 0d 0d 31 31 2e | is set.up...11.| 00000f90 20 49 66 20 61 20 70 61 67 65 20 69 73 20 73 75 | If a page is su| 00000fa0 63 63 65 73 73 66 75 6c 6c 79 20 72 65 63 65 69 |ccessfully recei| 00000fb0 76 65 64 20 74 68 65 6e 20 69 74 20 69 73 20 64 |ved then it is d| 00000fc0 69 73 70 6c 61 79 65 64 2e 20 41 20 6e 65 77 20 |isplayed. A new | 00000fd0 72 65 63 65 69 76 65 0d 62 6c 6f 63 6b 20 66 6f |receive.block fo| 00000fe0 72 20 61 20 70 61 67 65 20 69 73 20 73 65 74 20 |r a page is set | 00000ff0 75 70 2e 20 54 68 65 20 68 65 61 64 65 72 20 72 |up. The header r| 00001000 65 63 65 69 76 65 20 62 6c 6f 63 6b 20 63 6f 6e |eceive block con| 00001010 74 69 6e 75 65 73 20 74 6f 20 62 65 0d 70 6f 6c |tinues to be.pol| 00001020 6c 65 64 20 61 6e 64 20 64 69 73 70 6c 61 79 65 |led and displaye| 00001030 64 20 75 6e 74 69 6c 20 61 20 6b 65 79 20 69 73 |d until a key is| 00001040 20 70 72 65 73 73 65 64 2e 0d 0d 31 32 2e 20 41 | pressed...12. A| 00001050 6c 6c 20 74 68 65 20 74 69 6d 65 20 74 68 65 20 |ll the time the | 00001060 72 65 63 65 69 76 65 20 62 6c 6f 63 6b 73 20 61 |receive blocks a| 00001070 72 65 20 62 65 69 6e 67 20 70 6f 6c 6c 65 64 20 |re being polled | 00001080 74 68 65 20 43 4c 49 45 4e 54 20 70 72 6f 67 72 |the CLIENT progr| 00001090 61 6d 0d 61 6c 73 6f 20 74 65 73 74 73 20 74 6f |am.also tests to| 000010a0 20 73 65 65 20 69 66 20 61 20 6b 65 79 20 68 61 | see if a key ha| 000010b0 73 20 62 65 65 6e 20 70 72 65 73 73 65 64 2e 20 |s been pressed. | 000010c0 49 66 20 61 20 6b 65 79 20 69 73 20 70 72 65 73 |If a key is pres| 000010d0 73 65 64 20 74 68 69 73 20 69 73 0d 74 61 6b 65 |sed this is.take| 000010e0 6e 20 74 6f 20 6d 65 61 6e 20 74 68 61 74 20 79 |n to mean that y| 000010f0 6f 75 20 61 72 65 20 61 62 6f 75 74 20 74 6f 20 |ou are about to | 00001100 72 65 71 75 65 73 74 20 61 20 6e 65 77 20 70 61 |request a new pa| 00001110 67 65 2e 20 49 66 20 27 43 27 20 69 73 20 70 72 |ge. If 'C' is pr| 00001120 65 73 73 65 64 0d 74 68 65 6e 20 74 68 65 20 69 |essed.then the i| 00001130 6e 70 75 74 20 63 68 61 6e 6e 65 6c 20 72 6f 75 |nput channel rou| 00001140 74 69 6e 65 20 69 73 20 65 6e 74 65 72 65 64 20 |tine is entered | 00001150 66 6f 6c 6c 6f 77 65 64 20 62 79 20 74 68 65 20 |followed by the | 00001160 69 6e 70 75 74 20 70 61 67 65 0d 72 6f 75 74 69 |input page.routi| 00001170 6e 65 2e 20 49 66 20 3c 52 45 54 55 52 4e 3e 20 |ne. If <RETURN> | 00001180 69 73 20 70 72 65 73 73 65 64 20 74 68 65 6e 20 |is pressed then | 00001190 74 68 65 20 6c 61 73 74 20 70 61 67 65 20 79 6f |the last page yo| 000011a0 75 20 72 65 71 75 65 73 74 65 64 20 69 73 0d 72 |u requested is.r| 000011b0 65 71 75 65 73 74 65 64 20 61 67 61 69 6e 2e 20 |equested again. | 000011c0 49 66 20 27 52 27 20 69 73 20 70 72 65 73 73 65 |If 'R' is presse| 000011d0 64 20 74 68 65 20 27 52 45 56 45 41 4c 27 20 72 |d the 'REVEAL' r| 000011e0 6f 75 74 69 6e 65 20 69 73 20 63 61 6c 6c 65 64 |outine is called| 000011f0 20 61 6e 64 20 74 68 69 73 0d 74 6f 67 67 6c 65 | and this.toggle| 00001200 73 20 62 65 74 77 65 65 6e 20 72 65 76 65 61 6c |s between reveal| 00001210 69 6e 67 20 61 6e 64 20 63 6f 6e 63 65 61 6c 69 |ing and conceali| 00001220 6e 67 2e 20 49 66 20 27 2a 27 20 69 73 20 70 72 |ng. If '*' is pr| 00001230 65 73 73 65 64 20 74 68 65 6e 20 74 68 65 20 73 |essed then the s| 00001240 74 61 72 0d 63 6f 6d 6d 61 6e 64 20 72 6f 75 74 |tar.command rout| 00001250 69 6e 65 20 69 73 20 65 6e 74 65 72 65 64 2e 20 |ine is entered. | 00001260 54 68 69 73 20 61 6c 6c 6f 77 73 20 74 68 65 20 |This allows the | 00001270 43 4c 49 45 4e 54 20 74 6f 20 2a 53 41 56 45 20 |CLIENT to *SAVE | 00001280 70 61 67 65 73 20 65 74 63 2e 20 49 66 0d 61 6e |pages etc. If.an| 00001290 79 20 6f 74 68 65 72 20 6b 65 79 20 69 73 20 70 |y other key is p| 000012a0 72 65 73 73 65 64 20 74 68 65 20 70 61 67 65 20 |ressed the page | 000012b0 69 6e 70 75 74 20 72 6f 75 74 69 6e 65 20 69 73 |input routine is| 000012c0 20 65 6e 74 65 72 65 64 2e 0d 0d 31 33 2e 20 54 | entered...13. T| 000012d0 68 65 20 66 69 72 73 74 20 61 63 74 69 6f 6e 20 |he first action | 000012e0 74 61 6b 65 6e 20 62 79 20 62 6f 74 68 20 74 68 |taken by both th| 000012f0 65 20 63 68 61 6e 6e 65 6c 20 69 6e 70 75 74 20 |e channel input | 00001300 61 6e 64 20 70 61 67 65 20 69 6e 70 75 74 0d 72 |and page input.r| 00001310 6f 75 74 69 6e 65 73 20 69 73 20 74 6f 20 73 65 |outines is to se| 00001320 6e 64 20 61 20 27 63 61 6e 63 65 6c 20 70 61 67 |nd a 'cancel pag| 00001330 65 20 72 65 71 75 65 73 74 27 20 74 6f 20 74 68 |e request' to th| 00001340 65 20 53 45 52 56 45 52 20 61 6e 64 20 74 68 65 |e SERVER and the| 00001350 6e 20 64 65 6c 65 74 65 0d 74 68 65 20 63 75 72 |n delete.the cur| 00001360 72 65 6e 74 20 70 61 67 65 20 72 65 63 65 69 76 |rent page receiv| 00001370 65 20 62 6c 6f 63 6b 2e 20 54 68 69 73 20 6d 65 |e block. This me| 00001380 61 6e 73 20 74 68 65 20 53 45 52 56 45 52 20 77 |ans the SERVER w| 00001390 69 6c 6c 20 6e 6f 20 6c 6f 6e 67 65 72 20 68 61 |ill no longer ha| 000013a0 76 65 0d 74 6f 20 62 6f 74 68 65 72 20 74 72 79 |ve.to bother try| 000013b0 69 6e 67 20 74 6f 20 66 69 6e 64 20 79 6f 75 72 |ing to find your| 000013c0 20 6c 61 73 74 20 72 65 71 75 65 73 74 65 64 20 | last requested | 000013d0 70 61 67 65 2e 20 54 68 65 20 70 72 6f 6d 70 74 |page. The prompt| 000013e0 20 66 6f 72 20 61 0d 63 68 61 6e 6e 65 6c 20 69 | for a.channel i| 000013f0 6e 70 75 74 20 69 73 20 27 43 27 20 61 6e 64 20 |nput is 'C' and | 00001400 66 6f 72 20 61 20 70 61 67 65 20 69 6e 70 75 74 |for a page input| 00001410 20 69 73 20 27 50 27 2e 20 42 6f 74 68 20 72 6f | is 'P'. Both ro| 00001420 75 74 69 6e 65 73 20 6d 61 6b 65 20 75 73 65 0d |utines make use.| 00001430 6f 66 20 4f 53 57 4f 52 44 20 30 20 74 6f 20 72 |of OSWORD 0 to r| 00001440 65 61 64 20 61 20 6c 69 6e 65 20 6f 66 20 69 6e |ead a line of in| 00001450 70 75 74 20 61 6e 64 20 73 6f 20 62 6f 74 68 20 |put and so both | 00001460 6e 65 65 64 20 74 6f 20 62 65 20 65 78 69 74 65 |need to be exite| 00001470 64 20 62 79 0d 70 72 65 73 73 69 6e 67 20 3c 52 |d by.pressing <R| 00001480 45 54 55 52 4e 3e 2e 20 41 20 6e 65 77 20 72 65 |ETURN>. A new re| 00001490 63 65 69 76 65 20 70 61 67 65 20 62 6c 6f 63 6b |ceive page block| 000014a0 20 69 73 20 73 65 74 20 75 70 20 61 6e 64 20 74 | is set up and t| 000014b0 68 65 6e 20 74 68 65 20 6e 65 77 0d 70 61 67 65 |hen the new.page| 000014c0 20 6e 75 6d 62 65 72 20 69 73 20 74 72 61 6e 73 | number is trans| 000014d0 6d 69 74 74 65 64 20 74 6f 20 74 68 65 20 53 45 |mitted to the SE| 000014e0 52 56 45 52 2e 0d 0d 31 34 2e 20 54 68 65 20 65 |RVER...14. The e| 000014f0 73 63 61 70 65 20 66 6c 61 67 20 69 73 20 63 6f |scape flag is co| 00001500 6e 74 69 6e 75 61 6c 6c 79 20 70 6f 6c 6c 65 64 |ntinually polled| 00001510 20 73 6f 20 74 68 61 74 20 74 68 65 20 43 4c 49 | so that the CLI| 00001520 45 4e 54 20 63 61 6e 20 65 78 69 74 20 61 74 0d |ENT can exit at.| 00001530 61 6e 79 20 74 69 6d 65 20 62 79 20 70 72 65 73 |any time by pres| 00001540 73 69 6e 67 20 3c 45 53 43 41 50 45 3e 2e 20 54 |sing <ESCAPE>. T| 00001550 68 69 73 20 77 69 6c 6c 20 73 65 6e 64 20 61 20 |his will send a | 00001560 6c 6f 67 6f 66 66 20 69 6e 73 74 72 75 63 74 69 |logoff instructi| 00001570 6f 6e 20 74 6f 20 74 68 65 0d 53 45 52 56 45 52 |on to the.SERVER| 00001580 20 77 68 69 63 68 20 73 74 6f 70 73 20 69 74 20 | which stops it | 00001590 6c 6f 6f 6b 69 6e 67 20 66 6f 72 20 61 6e 79 20 |looking for any | 000015a0 6d 6f 72 65 20 70 61 67 65 73 20 66 6f 72 20 79 |more pages for y| 000015b0 6f 75 2e 20 41 6c 6c 20 72 65 63 65 69 76 65 0d |ou. All receive.| 000015c0 62 6c 6f 63 6b 73 20 61 72 65 20 64 65 6c 65 74 |blocks are delet| 000015d0 65 64 2e 0d 0d 20 20 20 20 20 20 20 20 20 20 20 |ed... | 000015e0 20 20 20 20 20 20 53 75 62 2d 70 61 67 65 73 0d | Sub-pages.| 000015f0 0d 4f 6e 65 20 6f 66 20 74 68 65 20 66 65 61 74 |.One of the feat| 00001600 75 72 65 73 20 6f 66 20 74 68 65 20 6e 6f 72 6d |ures of the norm| 00001610 61 6c 20 75 73 65 20 6f 66 20 74 65 6c 65 74 65 |al use of telete| 00001620 78 74 20 69 73 20 74 68 61 74 20 70 61 67 65 73 |xt is that pages| 00001630 20 77 69 6c 6c 20 72 6f 6c 6c 0d 73 6f 20 74 68 | will roll.so th| 00001640 61 74 20 74 68 65 79 20 61 72 65 20 63 6f 6e 73 |at they are cons| 00001650 74 61 6e 74 6c 79 20 75 70 64 61 74 65 64 20 65 |tantly updated e| 00001660 67 2e 20 66 6f 72 20 63 72 69 63 6b 65 74 20 73 |g. for cricket s| 00001670 63 6f 72 65 73 20 6f 72 20 70 61 67 65 73 20 77 |cores or pages w| 00001680 69 74 68 0d 6d 6f 72 65 20 74 68 61 6e 20 6f 6e |ith.more than on| 00001690 65 20 73 63 72 65 65 6e 20 6f 66 20 69 6e 66 6f |e screen of info| 000016a0 72 6d 61 74 69 6f 6e 2e 20 41 6e 20 61 70 70 72 |rmation. An appr| 000016b0 6f 78 69 6d 61 74 69 6f 6e 20 74 6f 20 74 68 69 |oximation to thi| 000016c0 73 20 66 61 63 69 6c 69 74 79 20 69 73 0d 61 76 |s facility is.av| 000016d0 61 69 6c 61 62 6c 65 20 66 72 6f 6d 20 74 68 65 |ailable from the| 000016e0 20 53 45 52 56 45 52 2e 20 50 72 65 73 73 69 6e | SERVER. Pressin| 000016f0 67 20 27 53 27 20 77 69 6c 6c 20 65 6e 61 62 6c |g 'S' will enabl| 00001700 65 20 74 68 65 20 61 75 74 6f 6d 61 74 69 63 20 |e the automatic | 00001710 72 6f 6c 6c 69 6e 67 0d 6f 66 20 73 75 62 2d 70 |rolling.of sub-p| 00001720 61 67 65 73 2e 20 54 68 69 73 20 69 73 20 64 6f |ages. This is do| 00001730 6e 65 20 62 79 20 61 20 63 61 6c 6c 20 74 6f 20 |ne by a call to | 00001740 74 68 65 20 53 45 52 56 45 52 20 77 68 69 63 68 |the SERVER which| 00001750 20 73 69 67 6e 61 6c 73 20 74 68 61 74 20 74 68 | signals that th| 00001760 65 0d 72 65 71 75 65 73 74 65 64 20 70 61 67 65 |e.requested page| 00001770 20 6d 75 73 74 20 6e 6f 74 20 62 65 20 73 65 6e | must not be sen| 00001780 74 20 75 6e 74 69 6c 20 61 74 20 6c 65 61 73 74 |t until at least| 00001790 20 30 2e 35 20 6f 66 20 74 68 65 20 63 79 63 6c | 0.5 of the cycl| 000017a0 65 20 74 69 6d 65 20 68 61 73 0d 65 6c 61 70 73 |e time has.elaps| 000017b0 65 64 2e 20 41 75 74 6f 6d 61 74 69 63 20 72 6f |ed. Automatic ro| 000017c0 6c 6c 69 6e 67 20 6f 66 20 73 75 62 2d 70 61 67 |lling of sub-pag| 000017d0 65 73 20 63 61 6e 20 62 65 20 64 69 73 61 62 6c |es can be disabl| 000017e0 65 64 20 62 79 20 70 72 65 73 73 69 6e 67 20 27 |ed by pressing '| 000017f0 53 27 0d 61 67 61 69 6e 2e 20 45 6e 61 62 6c 69 |S'.again. Enabli| 00001800 6e 67 20 69 73 20 73 69 67 6e 61 6c 6c 65 64 20 |ng is signalled | 00001810 62 79 20 61 20 68 69 67 68 20 62 65 65 70 20 61 |by a high beep a| 00001820 6e 64 20 64 69 73 61 62 6c 69 6e 67 20 62 79 20 |nd disabling by | 00001830 61 20 6c 6f 77 20 62 65 65 70 2e 0d 54 68 65 20 |a low beep..The | 00001840 72 6f 6c 6c 69 6e 67 20 69 73 20 64 69 73 61 62 |rolling is disab| 00001850 6c 65 64 20 77 68 65 6e 65 76 65 72 20 61 20 6e |led whenever a n| 00001860 65 77 20 70 61 67 65 20 69 73 20 72 65 71 75 65 |ew page is reque| 00001870 73 74 65 64 2e 0d 0d 54 68 69 73 20 69 6d 70 6c |sted...This impl| 00001880 65 6d 65 6e 74 61 74 69 6f 6e 20 6f 66 20 73 75 |ementation of su| 00001890 62 2d 70 61 67 65 73 20 69 73 20 61 20 63 6f 6d |b-pages is a com| 000018a0 70 72 6f 6d 69 73 65 20 69 6e 20 74 68 61 74 20 |promise in that | 000018b0 61 73 20 6d 6f 72 65 20 63 6c 69 65 6e 74 73 0d |as more clients.| 000018c0 75 73 65 20 74 68 69 73 20 66 65 61 74 75 72 65 |use this feature| 000018d0 20 74 68 65 20 6d 6f 72 65 20 66 75 6c 6c 20 77 | the more full w| 000018e0 69 6c 6c 20 62 65 20 74 68 65 20 71 75 65 75 65 |ill be the queue| 000018f0 73 20 61 6e 64 20 69 74 20 69 73 20 66 6f 72 20 |s and it is for | 00001900 74 68 69 73 0d 72 65 61 73 6f 6e 20 61 75 74 6f |this.reason auto| 00001910 6d 61 74 69 63 20 72 6f 6c 6c 69 6e 67 20 6d 75 |matic rolling mu| 00001920 73 74 20 62 65 20 64 65 6c 69 62 65 72 61 74 65 |st be deliberate| 00001930 6c 79 20 73 65 6c 65 63 74 65 64 20 66 6f 72 20 |ly selected for | 00001940 65 76 65 72 79 20 6e 65 77 20 70 61 67 65 2e 0d |every new page..| 00001950 49 74 20 69 73 20 61 6c 73 6f 20 6e 6f 74 20 70 |It is also not p| 00001960 6f 73 73 69 62 6c 65 20 74 6f 20 67 75 61 72 61 |ossible to guara| 00001970 6e 74 65 65 20 74 68 61 74 20 79 6f 75 20 77 69 |ntee that you wi| 00001980 6c 6c 20 67 65 74 20 74 68 65 20 69 6d 6d 65 64 |ll get the immed| 00001990 69 61 74 65 6c 79 0d 66 6f 6c 6c 6f 77 69 6e 67 |iately.following| 000019a0 20 73 75 62 2d 70 61 67 65 20 69 6e 20 74 68 65 | sub-page in the| 000019b0 20 73 65 71 75 65 6e 63 65 2e 0d 0d 20 20 20 20 | sequence... | 000019c0 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 54 | The T| 000019d0 46 53 20 70 72 6f 67 72 61 6d 0d 0d 54 68 69 73 |FS program..This| 000019e0 20 70 72 6f 67 72 61 6d 20 6d 61 6b 65 73 20 61 | program makes a| 000019f0 73 20 66 75 6c 6c 20 75 73 65 20 61 73 20 70 6f |s full use as po| 00001a00 73 73 69 62 6c 65 20 6f 66 20 74 68 65 20 41 54 |ssible of the AT| 00001a10 46 53 20 72 6f 6d 27 73 20 61 62 69 6c 69 74 79 |FS rom's ability| 00001a20 20 74 6f 0d 73 65 61 72 63 68 20 66 6f 72 20 73 | to.search for s| 00001a30 65 76 65 72 61 6c 20 70 61 67 65 73 20 61 74 20 |everal pages at | 00001a40 6f 6e 63 65 2e 20 54 68 65 20 74 68 65 6f 72 65 |once. The theore| 00001a50 74 69 63 61 6c 20 6d 61 78 69 6d 75 6d 20 69 73 |tical maximum is| 00001a60 20 32 30 20 61 74 20 6f 6e 63 65 0d 62 75 74 20 | 20 at once.but | 00001a70 74 68 65 20 73 69 7a 65 20 6f 66 20 74 68 65 20 |the size of the | 00001a80 54 46 53 20 70 72 6f 67 72 61 6d 20 6c 69 6d 69 |TFS program limi| 00001a90 74 73 20 74 68 69 73 20 74 6f 20 61 62 6f 75 74 |ts this to about| 00001aa0 20 31 30 2e 20 54 68 65 20 6d 61 69 6e 20 70 72 | 10. The main pr| 00001ab0 6f 62 6c 65 6d 0d 69 73 20 74 68 61 74 20 69 74 |oblem.is that it| 00001ac0 20 69 73 20 6f 6e 6c 79 20 70 6f 73 73 69 62 6c | is only possibl| 00001ad0 65 20 74 6f 20 73 65 61 72 63 68 20 66 6f 72 20 |e to search for | 00001ae0 70 61 67 65 73 20 6f 6e 20 6f 6e 65 20 63 68 61 |pages on one cha| 00001af0 6e 6e 65 6c 20 61 74 20 61 20 74 69 6d 65 0d 61 |nnel at a time.a| 00001b00 6e 64 20 73 6f 6d 65 20 77 61 79 20 68 61 73 20 |nd some way has | 00001b10 74 6f 20 62 65 20 66 6f 75 6e 64 20 74 6f 20 64 |to be found to d| 00001b20 65 61 6c 20 77 69 74 68 20 74 68 69 73 2e 0d 0d |eal with this...| 00001b30 54 68 65 20 61 70 70 72 6f 61 63 68 20 61 64 6f |The approach ado| 00001b40 70 74 65 64 20 69 73 20 74 6f 20 70 6c 61 63 65 |pted is to place| 00001b50 20 61 20 70 61 67 65 20 72 65 71 75 65 73 74 20 | a page request | 00001b60 69 6e 74 6f 20 6f 6e 65 20 6f 66 20 34 20 71 75 |into one of 4 qu| 00001b70 65 75 65 73 2c 20 6f 6e 65 0d 66 6f 72 20 65 61 |eues, one.for ea| 00001b80 63 68 20 63 68 61 6e 6e 65 6c 2e 20 49 66 20 74 |ch channel. If t| 00001b90 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 70 61 67 |he number of pag| 00001ba0 65 73 20 69 6e 20 61 20 71 75 65 75 65 20 65 78 |es in a queue ex| 00001bb0 63 65 65 64 73 20 74 68 65 20 6d 61 78 69 6d 75 |ceeds the maximu| 00001bc0 6d 0d 6e 75 6d 62 65 72 20 6f 66 20 70 61 67 65 |m.number of page| 00001bd0 73 20 66 6f 72 20 77 68 69 63 68 20 74 68 65 20 |s for which the | 00001be0 41 54 46 53 20 72 6f 6d 20 68 61 73 20 73 70 61 |ATFS rom has spa| 00001bf0 63 65 20 74 68 65 6e 20 61 20 27 43 68 61 6e 6e |ce then a 'Chann| 00001c00 65 6c 20 62 75 73 79 27 0d 65 72 72 6f 72 20 77 |el busy'.error w| 00001c10 69 6c 6c 20 62 65 20 72 65 74 75 72 6e 65 64 2e |ill be returned.| 00001c20 20 54 68 69 73 20 6d 61 78 69 6d 75 6d 20 6e 75 | This maximum nu| 00001c30 6d 62 65 72 20 6f 66 20 70 61 67 65 73 20 69 73 |mber of pages is| 00001c40 20 74 68 65 20 6e 75 6d 62 65 72 0d 72 65 74 75 | the number.retu| 00001c50 72 6e 65 64 20 62 79 20 74 68 65 20 6d 61 78 20 |rned by the max | 00001c60 75 73 65 72 73 20 70 65 72 20 63 68 61 6e 6e 65 |users per channe| 00001c70 6c 20 63 61 6c 6c 2e 20 41 20 72 65 63 6f 72 64 |l call. A record| 00001c80 20 69 73 20 6b 65 70 74 20 6f 66 20 74 68 65 20 | is kept of the | 00001c90 74 6f 74 61 6c 0d 6e 75 6d 62 65 72 20 6f 66 20 |total.number of | 00001ca0 70 61 67 65 73 20 72 65 71 75 65 73 74 65 64 20 |pages requested | 00001cb0 61 6e 64 20 74 68 69 73 20 69 73 20 74 68 65 20 |and this is the | 00001cc0 71 75 65 75 65 20 70 6f 73 69 74 69 6f 6e 20 72 |queue position r| 00001cd0 65 74 75 72 6e 65 64 20 74 6f 20 74 68 65 0d 43 |eturned to the.C| 00001ce0 4c 49 45 4e 54 20 69 65 20 74 68 69 73 20 69 73 |LIENT ie this is| 00001cf0 20 74 68 65 20 6f 76 65 72 61 6c 6c 20 71 75 65 | the overall que| 00001d00 75 65 20 70 6f 73 69 74 69 6f 6e 20 61 6e 64 20 |ue position and | 00001d10 6e 6f 74 20 74 68 65 20 70 6f 73 69 74 69 6f 6e |not the position| 00001d20 20 69 6e 20 74 68 65 0d 71 75 65 75 65 20 66 6f | in the.queue fo| 00001d30 72 20 61 20 70 61 72 74 69 63 75 6c 61 72 20 63 |r a particular c| 00001d40 68 61 6e 6e 65 6c 2e 20 57 68 65 6e 65 76 65 72 |hannel. Whenever| 00001d50 20 61 20 70 61 67 65 20 72 65 71 75 65 73 74 20 | a page request | 00001d60 69 73 20 72 65 63 65 69 76 65 64 20 74 68 65 0d |is received the.| 00001d70 77 68 6f 6c 65 20 71 75 65 75 65 20 69 73 20 63 |whole queue is c| 00001d80 68 65 63 6b 65 64 20 74 6f 20 73 65 65 20 69 66 |hecked to see if| 00001d90 20 74 68 61 74 20 43 4c 49 45 4e 54 20 28 69 64 | that CLIENT (id| 00001da0 65 6e 74 69 66 69 65 64 20 62 79 20 74 68 65 20 |entified by the | 00001db0 73 74 61 74 69 6f 6e 0d 6e 75 6d 62 65 72 29 20 |station.number) | 00001dc0 68 61 73 20 61 6e 79 20 6f 74 68 65 72 20 70 61 |has any other pa| 00001dd0 67 65 20 72 65 71 75 65 73 74 65 64 2e 20 49 66 |ge requested. If| 00001de0 20 74 68 69 73 20 69 73 20 74 68 65 20 63 61 73 | this is the cas| 00001df0 65 20 74 68 65 6e 20 74 68 61 74 20 70 61 67 65 |e then that page| 00001e00 0d 69 73 20 64 72 6f 70 70 65 64 20 66 72 6f 6d |.is dropped from| 00001e10 20 74 68 65 20 71 75 65 75 65 2e 20 54 68 75 73 | the queue. Thus| 00001e20 20 69 74 20 69 73 20 6e 6f 74 20 70 6f 73 73 69 | it is not possi| 00001e30 62 6c 65 20 66 6f 72 20 61 20 43 4c 49 45 4e 54 |ble for a CLIENT| 00001e40 20 74 6f 20 72 65 71 75 65 73 74 0d 6d 6f 72 65 | to request.more| 00001e50 20 74 68 61 6e 20 6f 6e 65 20 70 61 67 65 20 61 | than one page a| 00001e60 74 20 6f 6e 63 65 2e 20 41 20 63 61 6e 63 65 6c |t once. A cancel| 00001e70 20 70 61 67 65 20 72 65 71 75 65 73 74 20 6f 72 | page request or| 00001e80 20 61 20 6c 6f 67 6f 66 66 20 77 69 6c 6c 20 72 | a logoff will r| 00001e90 65 73 75 6c 74 0d 69 6e 20 61 6c 6c 20 70 61 67 |esult.in all pag| 00001ea0 65 20 72 65 71 75 65 73 74 73 20 66 6f 72 20 74 |e requests for t| 00001eb0 68 61 74 20 43 4c 49 45 4e 54 20 62 65 69 6e 67 |hat CLIENT being| 00001ec0 20 64 72 6f 70 70 65 64 20 66 72 6f 6d 20 74 68 | dropped from th| 00001ed0 65 20 71 75 65 75 65 2e 0d 0d 54 68 65 20 77 61 |e queue...The wa| 00001ee0 79 20 74 68 65 20 41 54 46 53 20 72 6f 6d 20 77 |y the ATFS rom w| 00001ef0 6f 72 6b 73 20 6d 65 61 6e 73 20 74 68 61 74 20 |orks means that | 00001f00 69 66 20 79 6f 75 20 61 72 65 20 33 72 64 20 69 |if you are 3rd i| 00001f10 6e 20 74 68 65 20 71 75 65 75 65 20 79 6f 75 20 |n the queue you | 00001f20 6d 61 79 0d 73 74 69 6c 6c 20 72 65 63 65 69 76 |may.still receiv| 00001f30 65 20 79 6f 75 72 20 70 61 67 65 20 62 65 66 6f |e your page befo| 00001f40 72 65 20 74 68 65 20 43 4c 49 45 4e 54 20 77 68 |re the CLIENT wh| 00001f50 6f 20 69 73 20 69 6e 20 31 73 74 20 70 6f 73 69 |o is in 1st posi| 00001f60 74 69 6f 6e 2e 20 54 68 69 73 20 69 73 0d 70 72 |tion. This is.pr| 00001f70 6f 62 61 62 6c 79 20 62 65 73 74 20 69 6c 6c 75 |obably best illu| 00001f80 73 74 72 61 74 65 64 20 62 79 20 65 78 61 6d 70 |strated by examp| 00001f90 6c 65 2e 0d 0d 53 75 70 70 6f 73 65 20 74 68 65 |le...Suppose the| 00001fa0 20 66 6f 6c 6c 6f 77 69 6e 67 20 72 65 71 75 65 | following reque| 00001fb0 73 74 73 20 61 72 65 20 69 73 73 75 65 64 20 3a |sts are issued :| 00001fc0 0d 0d 53 74 61 74 69 6f 6e 20 31 32 20 70 61 67 |..Station 12 pag| 00001fd0 65 20 31 37 30 20 6f 6e 20 63 68 61 6e 6e 65 6c |e 170 on channel| 00001fe0 20 31 0d 53 74 61 74 69 6f 6e 20 31 34 20 70 61 | 1.Station 14 pa| 00001ff0 67 65 20 34 30 30 20 6f 6e 20 63 68 61 6e 6e 65 |ge 400 on channe| 00002000 6c 20 34 0d 53 74 61 74 69 6f 6e 20 31 37 20 70 |l 4.Station 17 p| 00002010 61 67 65 20 31 32 33 20 6f 6e 20 63 68 61 6e 6e |age 123 on chann| 00002020 65 6c 20 31 0d 0d 54 68 65 20 54 46 53 20 70 72 |el 1..The TFS pr| 00002030 6f 67 72 61 6d 20 77 69 6c 6c 20 73 65 6c 65 63 |ogram will selec| 00002040 74 20 63 68 61 6e 6e 65 6c 20 31 20 61 73 20 74 |t channel 1 as t| 00002050 68 69 73 20 69 73 20 74 68 65 20 68 69 67 68 65 |his is the highe| 00002060 73 74 20 70 72 69 6f 72 69 74 79 20 69 74 65 6d |st priority item| 00002070 0d 69 6e 20 74 68 65 20 71 75 65 75 65 2e 20 57 |.in the queue. W| 00002080 68 65 6e 20 73 74 61 74 69 6f 6e 20 31 34 27 73 |hen station 14's| 00002090 20 72 65 71 75 65 73 74 20 61 72 72 69 76 65 73 | request arrives| 000020a0 20 69 74 20 77 69 6c 6c 20 62 65 20 73 74 6f 72 | it will be stor| 000020b0 65 64 20 69 6e 20 74 68 65 0d 71 75 65 75 65 20 |ed in the.queue | 000020c0 66 6f 72 20 63 68 61 6e 6e 65 6c 20 34 2e 20 48 |for channel 4. H| 000020d0 6f 77 65 76 65 72 20 77 68 65 6e 20 73 74 61 74 |owever when stat| 000020e0 69 6f 6e 20 31 37 27 73 20 72 65 71 75 65 73 74 |ion 17's request| 000020f0 20 61 72 72 69 76 65 73 20 6e 6f 74 20 6f 6e 6c | arrives not onl| 00002100 79 20 69 73 0d 69 74 20 61 64 64 65 64 20 74 6f |y is.it added to| 00002110 20 74 68 65 20 71 75 65 75 65 20 66 6f 72 20 63 | the queue for c| 00002120 68 61 6e 6e 65 6c 20 31 20 62 75 74 20 61 20 72 |hannel 1 but a r| 00002130 65 63 6f 72 64 20 69 73 20 73 65 74 20 75 70 20 |ecord is set up | 00002140 74 6f 20 72 65 63 65 69 76 65 20 74 68 65 0d 70 |to receive the.p| 00002150 61 67 65 20 69 66 20 69 74 20 69 73 20 74 72 61 |age if it is tra| 00002160 6e 73 6d 69 74 74 65 64 2e 20 53 75 70 70 6f 73 |nsmitted. Suppos| 00002170 65 20 61 6c 6c 20 74 68 65 73 65 20 74 68 72 65 |e all these thre| 00002180 65 20 72 65 71 75 65 73 74 73 20 61 72 72 69 76 |e requests arriv| 00002190 65 20 61 6c 6d 6f 73 74 0d 73 69 6d 75 6c 74 61 |e almost.simulta| 000021a0 6e 65 6f 75 73 6c 79 20 61 6e 64 20 61 74 20 74 |neously and at t| 000021b0 68 65 20 6d 6f 6d 65 6e 74 20 74 68 65 20 54 46 |he moment the TF| 000021c0 53 20 70 72 6f 67 72 61 6d 20 73 65 6c 65 63 74 |S program select| 000021d0 73 20 63 68 61 6e 6e 65 6c 20 31 20 74 68 65 0d |s channel 1 the.| 000021e0 70 61 67 65 20 62 65 69 6e 67 20 74 72 61 6e 73 |page being trans| 000021f0 6d 69 74 74 65 64 20 69 73 20 70 61 67 65 20 31 |mitted is page 1| 00002200 31 32 2e 20 54 68 69 73 20 6d 65 61 6e 73 20 74 |12. This means t| 00002210 68 61 74 20 73 74 61 74 69 6f 6e 20 31 37 27 73 |hat station 17's| 00002220 20 70 61 67 65 0d 28 31 32 33 29 20 77 69 6c 6c | page.(123) will| 00002230 20 61 72 72 69 76 65 20 62 65 66 6f 72 65 20 73 | arrive before s| 00002240 74 61 74 69 6f 6e 20 31 32 27 73 20 70 61 67 65 |tation 12's page| 00002250 28 31 37 30 29 2e 20 54 68 75 73 20 73 74 61 74 |(170). Thus stat| 00002260 69 6f 6e 20 31 37 20 77 69 6c 6c 0d 72 65 63 65 |ion 17 will.rece| 00002270 69 76 65 20 69 74 27 73 20 70 61 67 65 20 66 69 |ive it's page fi| 00002280 72 73 74 20 65 76 65 6e 20 74 68 6f 75 67 68 20 |rst even though | 00002290 69 74 20 77 61 73 20 33 72 64 20 69 6e 20 74 68 |it was 3rd in th| 000022a0 65 20 71 75 65 75 65 2e 20 54 68 65 20 6e 65 78 |e queue. The nex| 000022b0 74 20 70 61 67 65 0d 74 6f 20 62 65 20 73 65 6e |t page.to be sen| 000022c0 74 20 77 69 6c 6c 20 62 65 20 31 37 30 20 74 6f |t will be 170 to| 000022d0 20 73 74 61 74 69 6f 6e 20 31 32 20 61 6e 64 20 | station 12 and | 000022e0 73 74 61 74 69 6f 6e 20 31 34 20 77 69 6c 6c 20 |station 14 will | 000022f0 72 65 63 65 69 76 65 20 69 74 73 20 70 61 67 65 |receive its page| 00002300 0d 6c 61 73 74 20 65 76 65 6e 20 74 68 6f 75 67 |.last even thoug| 00002310 68 20 69 74 20 77 61 73 20 32 6e 64 20 69 6e 20 |h it was 2nd in | 00002320 74 68 65 20 71 75 65 75 65 2e 20 54 68 69 73 20 |the queue. This | 00002330 69 73 20 6e 6f 74 20 64 69 73 61 73 74 65 72 20 |is not disaster | 00002340 61 73 20 69 6e 20 66 61 63 74 0d 73 74 61 74 69 |as in fact.stati| 00002350 6f 6e 20 31 32 20 68 61 73 20 68 61 64 20 6e 6f |on 12 has had no| 00002360 20 6c 6f 6e 67 65 72 20 74 6f 20 77 61 69 74 20 | longer to wait | 00002370 74 68 61 6e 20 69 74 20 77 6f 75 6c 64 20 68 61 |than it would ha| 00002380 76 65 20 68 61 64 20 61 6e 79 77 61 79 2e 20 57 |ve had anyway. W| 00002390 68 61 74 0d 77 65 20 68 61 76 65 20 6d 61 6e 61 |hat.we have mana| 000023a0 67 65 64 20 74 6f 20 64 6f 20 69 73 20 61 6c 73 |ged to do is als| 000023b0 6f 20 64 65 61 6c 20 77 69 74 68 20 73 74 61 74 |o deal with stat| 000023c0 69 6f 6e 20 31 37 20 61 73 20 61 20 73 70 69 6e |ion 17 as a spin| 000023d0 2d 6f 66 66 20 66 72 6f 6d 0d 73 74 61 74 69 6f |-off from.statio| 000023e0 6e 20 31 27 73 20 72 65 71 75 65 73 74 2e 0d 0d |n 1's request...| 000023f0 49 66 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 |If more than one| 00002400 20 73 74 61 74 69 6f 6e 20 72 65 71 75 65 73 74 | station request| 00002410 73 20 74 68 65 20 73 61 6d 65 20 70 61 67 65 20 |s the same page | 00002420 74 68 65 6e 20 74 68 69 73 20 69 73 20 73 70 6f |then this is spo| 00002430 74 74 65 64 20 61 6e 64 0d 6f 6e 6c 79 20 6f 6e |tted and.only on| 00002440 65 20 6f 66 20 74 68 65 20 41 54 46 53 20 72 65 |e of the ATFS re| 00002450 63 6f 72 64 73 20 69 73 20 75 73 65 64 2e 20 54 |cords is used. T| 00002460 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 20 69 |his means that i| 00002470 74 20 69 73 20 70 6f 73 73 69 62 6c 65 20 74 6f |t is possible to| 00002480 0d 68 61 76 65 20 6d 6f 72 65 20 74 68 61 6e 20 |.have more than | 00002490 74 68 65 20 6d 61 78 69 6d 75 6d 20 6e 75 6d 62 |the maximum numb| 000024a0 65 72 20 6f 66 20 75 73 65 72 73 20 70 65 72 20 |er of users per | 000024b0 63 68 61 6e 6e 65 6c 20 71 75 65 75 65 64 20 69 |channel queued i| 000024c0 66 20 74 68 61 74 0d 63 68 61 6e 6e 65 6c 20 69 |f that.channel i| 000024d0 73 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 |s the currently | 000024e0 73 65 6c 65 63 74 65 64 20 6f 6e 65 2e 0d 0d 57 |selected one...W| 000024f0 68 65 6e 20 61 6e 20 41 54 46 53 20 72 65 63 6f |hen an ATFS reco| 00002500 72 64 20 68 61 73 20 62 65 65 6e 20 75 73 65 64 |rd has been used| 00002510 20 74 68 65 20 70 61 67 65 20 69 74 20 77 61 73 | the page it was| 00002520 20 6c 6f 6f 6b 69 6e 67 20 66 6f 72 20 69 73 0d | looking for is.| 00002530 72 65 6d 65 6d 62 65 72 65 64 20 61 6e 64 20 6f |remembered and o| 00002540 6e 63 65 20 74 68 61 74 20 70 61 67 65 20 68 61 |nce that page ha| 00002550 73 20 62 65 65 6e 20 66 6f 75 6e 64 20 74 68 65 |s been found the| 00002560 20 72 65 63 6f 72 64 20 69 73 20 6e 6f 74 20 63 | record is not c| 00002570 6c 65 61 72 65 64 2e 0d 54 68 69 73 20 6d 65 61 |leared..This mea| 00002580 6e 73 20 74 68 61 74 20 70 72 6f 76 69 64 65 64 |ns that provided| 00002590 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 69 73 20 | the channel is | 000025a0 6e 6f 74 20 63 68 61 6e 67 65 64 20 74 68 69 73 |not changed this| 000025b0 20 70 61 67 65 20 77 69 6c 6c 0d 63 6f 6e 74 69 | page will.conti| 000025c0 6e 75 65 20 74 6f 20 62 65 20 75 70 64 61 74 65 |nue to be update| 000025d0 64 20 61 6e 64 20 77 69 6c 6c 20 62 65 20 70 65 |d and will be pe| 000025e0 72 6d 61 6e 65 6e 74 6c 79 20 61 76 61 69 6c 61 |rmanently availa| 000025f0 62 6c 65 2e 20 53 75 70 70 6f 73 65 20 61 20 43 |ble. Suppose a C| 00002600 4c 49 45 4e 54 0d 72 65 71 75 65 73 74 73 20 70 |LIENT.requests p| 00002610 61 67 65 20 31 37 31 3b 20 74 68 65 20 70 61 67 |age 171; the pag| 00002620 65 20 69 73 20 72 65 63 65 69 76 65 64 20 61 6e |e is received an| 00002630 64 20 74 68 65 6e 20 74 72 61 6e 73 6d 69 74 74 |d then transmitt| 00002640 65 64 2e 20 49 66 20 61 6e 6f 74 68 65 72 0d 43 |ed. If another.C| 00002650 4c 49 45 4e 54 20 28 6f 72 20 69 6e 64 65 65 64 |LIENT (or indeed| 00002660 20 74 68 65 20 73 61 6d 65 20 6f 6e 65 29 20 72 | the same one) r| 00002670 65 71 75 65 73 74 73 20 74 68 65 20 73 61 6d 65 |equests the same| 00002680 20 70 61 67 65 20 74 68 65 6e 20 69 74 20 69 73 | page then it is| 00002690 0d 69 6e 73 74 61 6e 74 6c 79 20 61 76 61 69 6c |.instantly avail| 000026a0 61 62 6c 65 2e 20 54 68 69 73 20 69 73 20 70 61 |able. This is pa| 000026b0 72 74 69 63 75 6c 61 72 6c 79 20 75 73 65 66 75 |rticularly usefu| 000026c0 6c 20 69 66 20 79 6f 75 20 68 61 70 70 65 6e 20 |l if you happen | 000026d0 74 6f 20 62 65 20 74 68 65 0d 6f 6e 6c 79 20 43 |to be the.only C| 000026e0 4c 49 45 4e 54 20 75 73 69 6e 67 20 74 68 65 20 |LIENT using the | 000026f0 73 79 73 74 65 6d 20 61 73 20 69 74 20 6d 65 61 |system as it mea| 00002700 6e 73 20 74 68 61 74 20 74 68 65 20 6c 61 73 74 |ns that the last| 00002710 20 31 30 20 6f 72 20 73 6f 20 70 61 67 65 73 20 | 10 or so pages | 00002720 79 6f 75 0d 68 61 76 65 20 72 65 71 75 65 73 74 |you.have request| 00002730 65 64 20 6f 6e 20 61 20 67 69 76 65 6e 20 63 68 |ed on a given ch| 00002740 61 6e 6e 65 6c 20 61 72 65 20 6e 6f 74 20 6f 6e |annel are not on| 00002750 6c 79 20 62 75 66 66 65 72 65 64 20 62 79 20 74 |ly buffered by t| 00002760 68 65 20 54 46 53 0d 70 72 6f 67 72 61 6d 2c 20 |he TFS.program, | 00002770 62 75 74 20 61 6c 73 6f 20 75 70 64 61 74 65 64 |but also updated| 00002780 20 61 6e 64 20 69 6e 73 74 61 6e 74 6c 79 20 61 | and instantly a| 00002790 76 61 69 6c 61 62 6c 65 2e 0d 0d 54 68 65 20 54 |vailable...The T| 000027a0 46 53 20 70 72 6f 67 72 61 6d 20 62 72 6f 61 64 |FS program broad| 000027b0 63 61 73 74 73 20 77 68 61 74 65 76 65 72 20 70 |casts whatever p| 000027c0 61 67 65 20 6e 75 6d 62 65 72 20 69 73 20 63 75 |age number is cu| 000027d0 72 72 65 6e 74 6c 79 20 61 74 20 74 68 65 20 74 |rrently at the t| 000027e0 6f 70 20 6f 66 0d 74 68 65 20 73 63 72 65 65 6e |op of.the screen| 000027f0 20 62 79 20 75 73 69 6e 67 20 74 68 65 20 74 69 | by using the ti| 00002800 6d 65 72 20 63 72 6f 73 73 69 6e 67 20 7a 65 72 |mer crossing zer| 00002810 6f 20 65 76 65 6e 74 2e 20 54 68 69 73 20 6f 63 |o event. This oc| 00002820 63 75 72 73 20 65 76 65 72 79 20 68 61 6c 66 0d |curs every half.| 00002830 73 65 63 6f 6e 64 2e 0d 0d 4f 76 65 72 61 6c 6c |second...Overall| 00002840 20 74 68 65 20 72 65 73 70 6f 6e 73 65 20 74 69 | the response ti| 00002850 6d 65 20 6f 66 20 74 68 65 20 73 79 73 74 65 6d |me of the system| 00002860 20 69 73 20 76 65 72 79 20 66 61 73 74 20 61 6c | is very fast al| 00002870 74 68 6f 75 67 68 20 69 74 20 77 69 6c 6c 0d 6f |though it will.o| 00002880 62 76 69 6f 75 73 6c 79 20 62 65 20 73 6c 6f 77 |bviously be slow| 00002890 65 64 20 64 6f 77 6e 20 69 66 20 43 4c 49 45 4e |ed down if CLIEN| 000028a0 54 73 20 72 65 71 75 65 73 74 20 6e 6f 6e 2d 65 |Ts request non-e| 000028b0 78 69 73 74 65 6e 74 20 70 61 67 65 73 2e 20 54 |xistent pages. T| 000028c0 68 65 20 63 79 63 6c 65 0d 74 69 6d 65 73 20 66 |he cycle.times f| 000028d0 6f 72 20 74 68 65 20 64 69 66 66 65 72 65 6e 74 |or the different| 000028e0 20 63 68 61 6e 6e 65 6c 73 20 61 72 65 20 69 6d | channels are im| 000028f0 70 6f 72 74 61 6e 74 20 74 6f 20 74 68 65 20 65 |portant to the e| 00002900 66 66 69 63 69 65 6e 63 79 20 6f 66 20 74 68 65 |fficiency of the| 00002910 0d 54 46 53 20 70 72 6f 67 72 61 6d 20 61 6e 64 |.TFS program and| 00002920 20 61 73 20 74 68 65 73 65 20 74 69 6d 65 73 20 | as these times | 00002930 6d 61 79 20 62 65 20 73 75 62 6a 65 63 74 20 74 |may be subject t| 00002940 6f 20 63 68 61 6e 67 65 20 74 68 65 79 20 68 61 |o change they ha| 00002950 76 65 20 62 65 65 6e 0d 69 6e 63 6c 75 64 65 64 |ve been.included| 00002960 20 69 6e 20 61 20 44 41 54 41 20 73 74 61 74 65 | in a DATA state| 00002970 6d 65 6e 74 20 61 74 20 74 68 65 20 76 65 72 79 |ment at the very| 00002980 20 65 6e 64 20 6f 66 20 74 68 65 20 70 72 6f 67 | end of the prog| 00002990 72 61 6d 2e 20 54 68 65 20 66 69 72 73 74 0d 44 |ram. The first.D| 000029a0 41 54 41 20 73 74 61 74 65 6d 65 6e 74 20 69 73 |ATA statement is| 000029b0 20 74 68 65 20 66 72 61 63 74 69 6f 6e 20 6f 66 | the fraction of| 000029c0 20 74 68 65 20 63 79 63 6c 65 20 74 69 6d 65 20 | the cycle time | 000029d0 66 6f 72 20 77 68 69 63 68 20 74 68 65 20 54 46 |for which the TF| 000029e0 53 20 70 72 6f 67 72 61 6d 0d 77 69 6c 6c 20 77 |S program.will w| 000029f0 61 69 74 20 62 65 66 6f 72 65 20 73 65 6e 64 69 |ait before sendi| 00002a00 6e 67 20 61 20 73 75 62 2d 70 61 67 65 2e 20 54 |ng a sub-page. T| 00002a10 68 69 73 20 69 73 20 63 75 72 72 65 6e 74 6c 79 |his is currently| 00002a20 20 30 2e 35 2e 20 54 68 65 20 73 65 63 6f 6e 64 | 0.5. The second| 00002a30 0d 44 41 54 41 20 73 74 61 74 65 6d 65 6e 74 20 |.DATA statement | 00002a40 63 6f 6e 73 69 73 74 73 20 6f 66 20 74 68 65 20 |consists of the | 00002a50 63 79 63 6c 65 20 74 69 6d 65 73 20 66 6f 72 20 |cycle times for | 00002a60 74 68 65 20 66 6f 75 72 20 63 68 61 6e 6e 65 6c |the four channel| 00002a70 73 20 69 6e 0d 68 75 6e 64 72 65 64 74 68 73 20 |s in.hundredths | 00002a80 6f 66 20 61 20 73 65 63 6f 6e 64 2e 20 54 68 65 |of a second. The| 00002a90 79 20 61 72 65 20 63 75 72 72 65 6e 74 6c 79 20 |y are currently | 00002aa0 73 65 74 20 74 6f 20 34 30 20 73 65 63 6f 6e 64 |set to 40 second| 00002ab0 73 20 65 61 63 68 2e 0d 0d 20 20 20 20 20 20 20 |s each... | 00002ac0 20 20 20 20 20 20 49 6e 73 74 61 6c 6c 69 6e 67 | Installing| 00002ad0 20 74 68 65 20 70 72 6f 67 72 61 6d 73 0d 0d 31 | the programs..1| 00002ae0 2e 20 50 6c 61 63 65 20 27 54 45 4c 45 54 45 58 |. Place 'TELETEX| 00002af0 54 27 20 70 72 6f 67 72 61 6d 20 69 6e 20 24 2e |T' program in $.| 00002b00 4c 49 42 52 41 52 59 0d 0d 32 2e 20 50 75 74 20 |LIBRARY..2. Put | 00002b10 27 54 46 53 27 20 61 6e 64 20 27 63 6f 64 65 27 |'TFS' and 'code'| 00002b20 20 69 6e 20 61 20 64 69 72 65 63 74 6f 72 79 20 | in a directory | 00002b30 6f 66 20 74 68 65 69 72 20 6f 77 6e 2e 20 54 68 |of their own. Th| 00002b40 69 73 20 6d 69 67 68 74 20 62 65 20 74 68 65 0d |is might be the.| 00002b50 72 6f 6f 74 20 64 69 72 65 63 74 6f 72 79 20 6f |root directory o| 00002b60 66 20 61 20 75 73 65 72 20 54 46 53 2e 20 49 66 |f a user TFS. If| 00002b70 20 74 68 69 73 20 75 73 65 72 20 68 61 73 20 61 | this user has a| 00002b80 20 21 42 4f 4f 54 20 66 69 6c 65 20 77 68 69 63 | !BOOT file whic| 00002b90 68 20 43 48 41 49 4e 73 0d 74 68 65 20 27 54 46 |h CHAINs.the 'TF| 00002ba0 53 27 20 70 72 6f 67 72 61 6d 20 74 68 65 6e 20 |S' program then | 00002bb0 74 68 65 20 77 68 6f 6c 65 20 73 79 73 74 65 6d |the whole system| 00002bc0 20 63 61 6e 20 62 65 20 69 6e 69 74 69 61 6c 69 | can be initiali| 00002bd0 73 65 64 20 62 79 20 73 69 6d 70 6c 79 0d 74 79 |sed by simply.ty| 00002be0 70 69 6e 67 20 2a 49 20 41 4d 20 54 46 53 2e 20 |ping *I AM TFS. | 00002bf0 54 68 65 20 6d 61 63 68 69 6e 65 20 72 75 6e 6e |The machine runn| 00002c00 69 6e 67 20 74 68 65 20 54 46 53 20 70 72 6f 67 |ing the TFS prog| 00002c10 72 61 6d 20 6d 75 73 74 20 6e 6f 74 20 75 73 65 |ram must not use| 00002c20 20 73 68 61 64 6f 77 0d 73 63 72 65 65 6e 73 20 | shadow.screens | 00002c30 61 73 20 74 68 65 20 68 65 61 64 65 72 20 69 73 |as the header is| 00002c40 20 50 4f 4b 45 44 20 69 6e 20 74 6f 20 6d 65 6d | POKED in to mem| 00002c50 6f 72 79 20 61 74 20 26 37 43 30 30 20 62 79 20 |ory at &7C00 by | 00002c60 74 68 65 20 41 54 46 53 20 52 6f 6d 2e 20 54 68 |the ATFS Rom. Th| 00002c70 65 0d 70 72 6f 67 72 61 6d 20 6d 61 79 20 72 75 |e.program may ru| 00002c80 6e 20 69 6e 20 61 20 73 65 63 6f 6e 64 20 70 72 |n in a second pr| 00002c90 6f 63 65 73 73 6f 72 2c 20 69 6e 20 77 68 69 63 |ocessor, in whic| 00002ca0 68 20 63 61 73 65 20 74 68 65 20 77 68 6f 6c 65 |h case the whole| 00002cb0 20 6f 66 20 74 68 65 20 49 2f 4f 0d 70 72 6f 63 | of the I/O.proc| 00002cc0 65 73 73 6f 72 20 6d 65 6d 6f 72 79 20 62 65 63 |essor memory bec| 00002cd0 6f 6d 65 73 20 61 76 61 69 6c 61 62 6c 65 20 66 |omes available f| 00002ce0 6f 72 20 62 75 66 66 65 72 69 6e 67 20 70 61 67 |or buffering pag| 00002cf0 65 73 20 61 6e 64 20 74 68 65 72 65 20 77 69 6c |es and there wil| 00002d00 6c 20 62 65 0d 61 6e 20 61 73 73 6f 63 69 61 74 |l be.an associat| 00002d10 65 64 20 69 6e 63 72 65 61 73 65 20 69 6e 20 70 |ed increase in p| 00002d20 65 72 66 6f 72 6d 61 6e 63 65 2e 20 54 68 65 72 |erformance. Ther| 00002d30 65 20 69 73 20 6e 6f 20 61 64 76 61 6e 74 61 67 |e is no advantag| 00002d40 65 20 69 6e 20 75 73 69 6e 67 0d 48 49 42 41 53 |e in using.HIBAS| 00002d50 49 43 20 61 73 20 74 68 65 20 70 61 67 65 73 20 |IC as the pages | 00002d60 61 72 65 20 62 75 66 66 65 72 65 64 20 69 6e 20 |are buffered in | 00002d70 74 68 65 20 49 2f 4f 20 70 72 6f 63 65 73 73 6f |the I/O processo| 00002d80 72 2e 0d 0d 0d 20 20 20 20 20 20 20 20 20 20 43 |r.... C| 00002d90 6f 6d 70 61 74 69 62 69 6c 69 74 79 20 77 69 74 |ompatibility wit| 00002da0 68 20 74 68 65 20 6e 65 77 20 47 49 53 20 61 64 |h the new GIS ad| 00002db0 61 70 74 65 72 0d 0d 54 68 65 20 73 6f 66 74 77 |apter..The softw| 00002dc0 61 72 65 20 69 73 20 63 6f 6d 70 61 74 69 62 6c |are is compatibl| 00002dd0 65 20 77 69 74 68 20 74 68 65 20 6e 65 77 20 47 |e with the new G| 00002de0 49 53 20 74 65 6c 65 74 65 78 74 20 61 64 61 70 |IS teletext adap| 00002df0 74 65 72 20 61 6c 74 68 6f 75 67 68 20 61 73 0d |ter although as.| 00002e00 74 68 69 73 20 63 6f 6e 6e 65 63 74 73 20 74 6f |this connects to| 00002e10 20 74 68 65 20 75 73 65 72 20 70 6f 72 74 20 72 | the user port r| 00002e20 61 74 68 65 72 20 74 68 61 6e 20 74 68 65 20 31 |ather than the 1| 00002e30 4d 48 7a 20 42 75 73 20 74 68 65 20 73 70 65 65 |MHz Bus the spee| 00002e40 64 20 6f 66 0d 72 65 73 70 6f 6e 73 65 20 69 73 |d of.response is| 00002e50 20 73 6c 69 67 68 74 6c 79 20 73 6c 6f 77 65 72 | slightly slower| 00002e60 2e 20 54 68 65 72 65 20 61 70 70 65 61 72 73 20 |. There appears | 00002e70 74 6f 20 62 65 20 61 20 70 72 6f 62 6c 65 6d 20 |to be a problem | 00002e80 77 69 74 68 20 74 68 65 0d 72 6f 75 74 69 6e 65 |with the.routine| 00002e90 20 74 6f 20 63 61 6c 63 75 6c 61 74 65 20 74 68 | to calculate th| 00002ea0 65 20 63 68 65 63 6b 73 75 6d 20 6f 66 20 61 20 |e checksum of a | 00002eb0 70 61 67 65 20 69 6e 20 74 68 61 74 20 74 68 65 |page in that the| 00002ec0 20 47 49 53 20 52 6f 6d 20 67 65 74 73 20 69 74 | GIS Rom gets it| 00002ed0 0d 77 72 6f 6e 67 20 69 66 20 61 20 70 61 67 65 |.wrong if a page| 00002ee0 20 68 65 61 64 65 72 20 77 61 73 20 62 72 6f 61 | header was broa| 00002ef0 64 63 61 73 74 20 77 68 69 6c 65 20 70 65 72 66 |dcast while perf| 00002f00 6f 72 6d 69 6e 67 20 74 68 65 20 63 68 65 63 6b |orming the check| 00002f10 2e 20 54 68 65 72 65 0d 64 6f 65 73 20 73 65 65 |. There.does see| 00002f20 6d 20 74 6f 20 62 65 20 61 20 70 72 6f 62 6c 65 |m to be a proble| 00002f30 6d 20 77 69 74 68 20 74 68 65 20 4d 41 53 54 45 |m with the MASTE| 00002f40 52 20 31 32 38 20 61 6e 64 20 74 68 65 20 54 55 |R 128 and the TU| 00002f50 42 45 20 69 6e 20 74 68 61 74 20 74 68 65 0d 73 |BE in that the.s| 00002f60 6f 66 74 77 61 72 65 20 77 69 6c 6c 20 6e 6f 74 |oftware will not| 00002f70 20 77 6f 72 6b 20 77 69 74 68 20 65 69 74 68 65 | work with eithe| 00002f80 72 20 61 64 61 70 74 65 72 20 69 6e 20 74 68 69 |r adapter in thi| 00002f90 73 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2e |s configuration.| 00002fa0 20 54 68 69 73 0d 6c 6f 6f 6b 73 20 6c 69 6b 65 | This.looks like| 00002fb0 20 69 74 20 6d 61 79 20 62 65 20 61 20 70 72 6f | it may be a pro| 00002fc0 62 6c 65 6d 20 77 69 74 68 20 74 68 65 20 41 4e |blem with the AN| 00002fd0 46 53 2e 0d 0d 20 20 20 20 20 20 20 20 20 20 20 |FS... | 00002fe0 20 20 57 72 69 74 69 6e 67 20 79 6f 75 72 20 6f | Writing your o| 00002ff0 77 6e 20 73 6f 66 74 77 61 72 65 0d 0d 42 65 6c |wn software..Bel| 00003000 6f 77 20 69 73 20 61 6e 20 65 78 61 6d 70 6c 65 |ow is an example| 00003010 20 6f 66 20 61 20 42 41 53 49 43 20 70 72 6f 67 | of a BASIC prog| 00003020 72 61 6d 20 77 68 69 63 68 20 69 6c 6c 75 73 74 |ram which illust| 00003030 72 61 74 65 73 20 68 6f 77 20 74 6f 20 77 72 69 |rates how to wri| 00003040 74 65 20 79 6f 75 72 0d 6f 77 6e 20 73 6f 66 74 |te your.own soft| 00003050 77 61 72 65 20 75 73 69 6e 67 20 74 68 65 20 53 |ware using the S| 00003060 45 52 56 45 52 20 70 72 6f 74 6f 63 6f 6c 73 2e |ERVER protocols.| 00003070 20 55 73 69 6e 67 20 74 68 69 73 20 70 72 69 6e | Using this prin| 00003080 63 69 70 6c 65 20 69 74 20 69 73 0d 70 6f 73 73 |ciple it is.poss| 00003090 69 62 6c 65 20 74 6f 20 77 72 69 74 65 20 70 72 |ible to write pr| 000030a0 6f 67 72 61 6d 73 20 66 6f 72 20 61 75 74 6f 6d |ograms for autom| 000030b0 61 74 69 63 61 6c 6c 79 20 72 65 63 65 69 76 69 |atically receivi| 000030c0 6e 67 20 61 6e 64 20 73 61 76 69 6e 67 20 70 61 |ng and saving pa| 000030d0 67 65 73 2e 0d 0d 52 65 61 64 20 74 68 65 20 74 |ges...Read the t| 000030e0 69 6d 65 20 66 72 6f 6d 20 61 20 54 45 4c 45 54 |ime from a TELET| 000030f0 45 58 54 20 73 65 72 76 65 72 0d 0d 20 31 30 20 |EXT server.. 10 | 00003100 6f 73 77 6f 72 64 3d 26 46 46 46 31 3a 6f 73 62 |osword=&FFF1:osb| 00003110 79 74 65 3d 26 46 46 46 34 0d 20 32 30 20 44 49 |yte=&FFF4. 20 DI| 00003120 4d 20 62 6c 6b 25 20 26 31 30 30 2c 62 75 66 66 |M blk% &100,buff| 00003130 20 26 31 30 30 0d 20 33 30 20 52 45 50 45 41 54 | &100. 30 REPEAT| 00003140 0d 20 34 30 20 20 20 20 20 20 20 20 20 20 20 20 |. 40 | 00003150 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003160 20 20 20 3a 52 45 4d 20 53 65 74 20 75 70 20 72 | :REM Set up r| 00003170 65 63 65 69 76 65 20 62 6c 6b 20 66 6f 72 20 53 |eceive blk for S| 00003180 45 52 56 45 52 20 72 65 70 6c 79 0d 20 35 30 20 |ERVER reply. 50 | 00003190 72 78 5f 6e 6f 3d 46 4e 73 65 74 5f 75 70 5f 72 |rx_no=FNset_up_r| 000031a0 78 28 26 42 31 2c 30 2c 62 75 66 66 2c 26 32 30 |x(&B1,0,buff,&20| 000031b0 29 0d 20 20 3a 52 45 4d 20 4c 69 73 74 65 6e 20 |). :REM Listen | 000031c0 66 6f 72 20 61 6c 6c 20 73 74 61 74 69 6f 6e 73 |for all stations| 000031d0 20 61 73 20 77 65 20 64 6f 6e 27 74 20 6b 6e 6f | as we don't kno| 000031e0 77 20 74 68 65 20 73 65 72 76 65 72 20 73 74 61 |w the server sta| 000031f0 74 69 6f 6e 20 6e 75 6d 62 65 72 0d 20 37 30 20 |tion number. 70 | 00003200 52 45 50 45 41 54 0d 20 38 30 20 50 52 4f 43 62 |REPEAT. 80 PROCb| 00003210 63 61 73 74 28 26 42 30 2c 26 38 30 2c 22 54 45 |cast(&B0,&80,"TE| 00003220 4c 45 54 45 58 54 22 29 20 3a 52 45 4d 20 42 72 |LETEXT") :REM Br| 00003230 6f 61 64 63 61 73 74 20 66 6f 72 20 61 20 54 45 |oadcast for a TE| 00003240 4c 45 54 45 58 54 20 73 65 72 76 65 72 0d 20 39 |LETEXT server. 9| 00003250 30 20 54 49 4d 45 3d 30 0d 31 30 30 20 52 45 50 |0 TIME=0.100 REP| 00003260 45 41 54 20 55 4e 54 49 4c 20 54 49 4d 45 3e 35 |EAT UNTIL TIME>5| 00003270 30 20 20 20 20 20 20 20 20 20 20 3a 52 45 4d 20 |0 :REM | 00003280 57 61 69 74 20 66 6f 72 20 61 20 77 68 69 6c 65 |Wait for a while| 00003290 20 62 65 66 6f 72 65 20 72 65 74 72 79 69 6e 67 | before retrying| 000032a0 0d 31 31 30 20 55 4e 54 49 4c 20 46 4e 70 6f 6c |.110 UNTIL FNpol| 000032b0 6c 5f 72 78 28 72 78 5f 6e 6f 29 3e 31 32 37 20 |l_rx(rx_no)>127 | 000032c0 20 20 20 3a 52 45 4d 20 4b 65 65 70 20 74 72 79 | :REM Keep try| 000032d0 69 6e 67 20 75 6e 74 69 6c 20 61 20 72 65 70 6c |ing until a repl| 000032e0 79 20 72 65 63 65 69 76 65 64 0d 31 32 30 0d 31 |y received.120.1| 000032f0 33 30 20 50 52 4f 43 72 65 61 64 5f 72 78 28 72 |30 PROCread_rx(r| 00003300 78 5f 6e 6f 29 20 20 20 20 20 20 20 20 20 20 20 |x_no) | 00003310 20 3a 52 45 4d 20 52 65 61 64 20 74 68 65 20 72 | :REM Read the r| 00003320 65 63 65 69 76 65 20 62 6c 6f 63 6b 0d 31 34 30 |eceive block.140| 00003330 20 62 75 66 66 3f 31 31 3d 31 33 20 20 20 20 20 | buff?11=13 | 00003340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3a | :| 00003350 52 45 4d 20 43 68 65 63 6b 20 74 68 61 74 20 69 |REM Check that i| 00003360 74 20 72 65 61 6c 6c 79 20 77 61 73 20 61 20 54 |t really was a T| 00003370 45 4c 45 54 45 58 54 0d 31 35 30 20 55 4e 54 49 |ELETEXT.150 UNTI| 00003380 4c 20 24 28 62 75 66 66 2b 33 29 3d 22 54 45 4c |L $(buff+3)="TEL| 00003390 45 54 45 58 54 22 20 20 20 20 3a 52 45 4d 20 20 |ETEXT" :REM | 000033a0 73 65 72 76 65 72 20 77 68 69 63 68 20 72 65 73 |server which res| 000033b0 70 6f 6e 64 65 64 0d 31 36 30 20 73 65 72 76 65 |ponded.160 serve| 000033c0 72 25 3d 62 6c 6b 25 21 33 20 41 4e 44 20 26 46 |r%=blk%!3 AND &F| 000033d0 46 46 46 20 20 20 20 20 20 3a 52 45 4d 20 52 65 |FFF :REM Re| 000033e0 61 64 20 74 68 65 20 73 65 72 76 65 72 27 73 20 |ad the server's | 000033f0 6e 75 6d 62 65 72 0d 31 37 30 20 62 61 73 65 5f |number.170 base_| 00003400 70 6f 72 74 3d 62 75 66 66 3f 31 20 20 20 20 20 |port=buff?1 | 00003410 20 20 20 20 20 20 20 20 20 3a 52 45 4d 20 52 65 | :REM Re| 00003420 61 64 20 74 68 65 20 62 61 73 65 20 70 6f 72 74 |ad the base port| 00003430 20 6e 75 6d 62 65 72 0d 31 38 30 20 72 78 5f 6e | number.180 rx_n| 00003440 6f 3d 46 4e 73 65 74 5f 75 70 5f 72 78 28 62 61 |o=FNset_up_rx(ba| 00003450 73 65 5f 70 6f 72 74 2c 73 65 72 76 65 72 25 2c |se_port,server%,| 00003460 62 75 66 66 2c 26 32 30 29 0d 20 3a 52 45 4d 20 |buff,&20). :REM | 00003470 53 65 74 20 75 70 20 61 20 72 65 63 65 69 76 65 |Set up a receive| 00003480 20 62 6c 6b 0d 31 39 30 20 52 45 50 45 41 54 20 | blk.190 REPEAT | 00003490 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000034a0 20 20 20 20 20 20 20 3a 52 45 4d 20 20 66 6f 72 | :REM for| 000034b0 20 74 68 65 20 74 69 6d 65 0d 32 30 30 20 52 45 | the time.200 RE| 000034c0 50 45 41 54 0d 32 31 30 20 50 52 4f 43 74 78 28 |PEAT.210 PROCtx(| 000034d0 26 38 34 2c 62 61 73 65 5f 70 6f 72 74 2b 31 2c |&84,base_port+1,| 000034e0 73 65 72 76 65 72 25 2c 62 75 66 66 2c 31 29 0d |server%,buff,1).| 000034f0 20 3a 52 45 4d 20 54 72 61 6e 73 6d 69 74 20 72 | :REM Transmit r| 00003500 65 71 75 65 73 74 20 66 6f 72 20 74 68 65 20 74 |equest for the t| 00003510 69 6d 65 0d 32 32 30 20 54 49 4d 45 3d 30 20 20 |ime.220 TIME=0 | 00003520 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003530 20 20 20 20 20 20 3a 52 45 4d 20 57 61 69 74 20 | :REM Wait | 00003540 66 6f 72 20 61 20 77 68 69 6c 65 20 62 65 66 6f |for a while befo| 00003550 72 65 20 72 65 74 72 79 69 6e 67 0d 32 33 30 20 |re retrying.230 | 00003560 52 45 50 45 41 54 20 55 4e 54 49 4c 20 54 49 4d |REPEAT UNTIL TIM| 00003570 45 3e 35 30 0d 32 34 30 20 72 65 73 75 6c 74 25 |E>50.240 result%| 00003580 3d 46 4e 70 6f 6c 6c 5f 74 78 0d 32 35 30 20 55 |=FNpoll_tx.250 U| 00003590 4e 54 49 4c 20 72 65 73 75 6c 74 25 3d 30 20 20 |NTIL result%=0 | 000035a0 20 20 20 20 20 20 20 20 20 20 20 20 20 3a 52 45 | :RE| 000035b0 4d 20 4b 65 65 70 20 74 72 79 69 6e 67 20 75 6e |M Keep trying un| 000035c0 74 69 6c 20 74 72 61 6e 73 6d 69 74 20 73 75 63 |til transmit suc| 000035d0 63 65 65 64 73 0d 32 36 30 20 55 4e 54 49 4c 20 |ceeds.260 UNTIL | 000035e0 46 4e 70 6f 6c 6c 5f 72 78 28 72 78 5f 6e 6f 29 |FNpoll_rx(rx_no)| 000035f0 3e 31 32 37 20 20 20 20 3a 52 45 4d 20 4b 65 65 |>127 :REM Kee| 00003600 70 20 74 72 79 69 6e 67 20 75 6e 74 69 6c 20 77 |p trying until w| 00003610 65 20 67 65 74 20 61 20 72 65 70 6c 79 0d 32 37 |e get a reply.27| 00003620 30 20 50 52 4f 43 72 65 61 64 5f 72 78 28 72 78 |0 PROCread_rx(rx| 00003630 5f 6e 6f 29 20 20 20 20 20 20 20 20 20 20 20 20 |_no) | 00003640 3a 52 45 4d 20 52 65 61 64 20 74 68 65 20 72 65 |:REM Read the re| 00003650 63 65 69 76 65 20 62 6c 6f 63 6b 0d 32 38 30 0d |ceive block.280.| 00003660 32 39 30 20 62 75 66 66 3f 31 39 3d 31 33 0d 33 |290 buff?19=13.3| 00003670 30 30 20 64 61 74 65 24 3d 24 28 62 75 66 66 2b |00 date$=$(buff+| 00003680 39 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |9) | 00003690 20 3a 52 45 4d 20 52 65 61 64 20 74 68 65 20 64 | :REM Read the d| 000036a0 61 74 65 0d 33 31 30 20 62 75 66 66 3f 39 3d 31 |ate.310 buff?9=1| 000036b0 33 0d 33 32 30 20 74 69 6d 65 24 3d 24 28 62 75 |3.320 time$=$(bu| 000036c0 66 66 2b 31 29 20 20 20 20 20 20 20 20 20 20 20 |ff+1) | 000036d0 20 20 20 20 3a 52 45 4d 20 52 65 61 64 20 74 68 | :REM Read th| 000036e0 65 20 74 69 6d 65 0d 33 33 30 20 50 52 49 4e 54 |e time.330 PRINT| 000036f0 22 54 68 65 20 74 69 6d 65 20 69 73 20 22 3b 74 |"The time is ";t| 00003700 69 6d 65 24 3b 22 20 6f 6e 20 22 3b 64 61 74 65 |ime$;" on ";date| 00003710 24 0d 33 34 30 20 45 4e 44 0d 33 35 30 0d 33 36 |$.340 END.350.36| 00003720 30 20 44 45 46 50 52 4f 43 62 63 61 73 74 28 70 |0 DEFPROCbcast(p| 00003730 25 2c 63 62 25 2c 73 65 72 76 65 72 24 29 0d 33 |%,cb%,server$).3| 00003740 37 30 20 3f 62 6c 6b 25 3d 63 62 25 0d 33 38 30 |70 ?blk%=cb%.380| 00003750 20 62 6c 6b 25 3f 31 3d 70 25 0d 33 39 30 20 62 | blk%?1=p%.390 b| 00003760 6c 6b 25 21 32 3d 26 46 46 46 46 0d 34 30 30 20 |lk%!2=&FFFF.400 | 00003770 24 28 62 6c 6b 25 2b 34 29 3d 73 65 72 76 65 72 |$(blk%+4)=server| 00003780 24 0d 34 31 30 20 58 25 3d 62 6c 6b 25 3a 59 25 |$.410 X%=blk%:Y%| 00003790 3d 58 25 20 44 49 56 20 32 35 36 3a 41 25 3d 26 |=X% DIV 256:A%=&| 000037a0 31 30 0d 34 32 30 20 43 41 4c 4c 20 6f 73 77 6f |10.420 CALL oswo| 000037b0 72 64 0d 34 33 30 20 45 4e 44 50 52 4f 43 0d 34 |rd.430 ENDPROC.4| 000037c0 34 30 0d 34 35 30 20 44 45 46 46 4e 73 65 74 5f |40.450 DEFFNset_| 000037d0 75 70 5f 72 78 28 70 25 2c 73 74 25 2c 62 25 2c |up_rx(p%,st%,b%,| 000037e0 6c 25 29 0d 34 36 30 20 3f 62 6c 6b 25 3d 30 0d |l%).460 ?blk%=0.| 000037f0 34 37 30 20 62 6c 6b 25 3f 31 3d 26 37 46 0d 34 |470 blk%?1=&7F.4| 00003800 38 30 20 62 6c 6b 25 3f 32 3d 70 25 0d 34 39 30 |80 blk%?2=p%.490| 00003810 20 62 6c 6b 25 21 33 3d 73 74 25 0d 35 30 30 20 | blk%!3=st%.500 | 00003820 62 6c 6b 25 21 35 3d 62 25 0d 35 31 30 20 62 6c |blk%!5=b%.510 bl| 00003830 6b 25 21 39 3d 62 25 2b 6c 25 0d 35 32 30 20 58 |k%!9=b%+l%.520 X| 00003840 25 3d 62 6c 6b 25 3a 59 25 3d 58 25 20 44 49 56 |%=blk%:Y%=X% DIV| 00003850 20 32 35 36 3a 41 25 3d 26 31 31 0d 35 33 30 20 | 256:A%=&11.530 | 00003860 43 41 4c 4c 20 6f 73 77 6f 72 64 0d 35 34 30 20 |CALL osword.540 | 00003870 3d 3f 62 6c 6b 25 0d 35 35 30 0d 35 36 30 20 44 |=?blk%.550.560 D| 00003880 45 46 46 4e 70 6f 6c 6c 5f 72 78 28 72 25 29 0d |EFFNpoll_rx(r%).| 00003890 35 37 30 20 41 25 3d 26 33 33 3a 58 25 3d 72 25 |570 A%=&33:X%=r%| 000038a0 0d 35 38 30 20 3d 55 53 52 28 6f 73 62 79 74 65 |.580 =USR(osbyte| 000038b0 29 20 41 4e 44 20 26 38 30 30 30 0d 35 39 30 0d |) AND &8000.590.| 000038c0 36 30 30 20 44 45 46 50 52 4f 43 72 65 61 64 5f |600 DEFPROCread_| 000038d0 72 78 28 72 25 29 0d 36 31 30 20 3f 62 6c 6b 25 |rx(r%).610 ?blk%| 000038e0 3d 72 25 0d 36 32 30 20 58 25 3d 62 6c 6b 25 3a |=r%.620 X%=blk%:| 000038f0 59 25 3d 58 25 20 44 49 56 20 32 35 36 3a 41 25 |Y%=X% DIV 256:A%| 00003900 3d 26 31 31 0d 36 33 30 20 43 41 4c 4c 20 6f 73 |=&11.630 CALL os| 00003910 77 6f 72 64 0d 36 34 30 20 45 4e 44 50 52 4f 43 |word.640 ENDPROC| 00003920 0d 36 35 30 0d 36 36 30 20 44 45 46 50 52 4f 43 |.650.660 DEFPROC| 00003930 74 78 28 63 62 25 2c 70 25 2c 73 74 25 2c 62 25 |tx(cb%,p%,st%,b%| 00003940 2c 6c 25 29 0d 36 37 30 20 3f 62 6c 6b 25 3d 63 |,l%).670 ?blk%=c| 00003950 62 25 0d 36 38 30 20 62 6c 6b 25 3f 31 3d 70 25 |b%.680 blk%?1=p%| 00003960 0d 36 39 30 20 62 6c 6b 25 21 32 3d 73 74 25 0d |.690 blk%!2=st%.| 00003970 37 30 30 20 62 6c 6b 25 21 34 3d 62 25 0d 37 31 |700 blk%!4=b%.71| 00003980 30 20 62 6c 6b 25 21 38 3d 62 25 2b 6c 25 0d 37 |0 blk%!8=b%+l%.7| 00003990 32 30 20 58 25 3d 62 6c 6b 25 3a 59 25 3d 58 25 |20 X%=blk%:Y%=X%| 000039a0 20 44 49 56 20 32 35 36 3a 41 25 3d 26 31 30 0d | DIV 256:A%=&10.| 000039b0 37 33 30 20 43 41 4c 4c 20 6f 73 77 6f 72 64 0d |730 CALL osword.| 000039c0 37 34 30 20 45 4e 44 50 52 4f 43 0d 37 35 30 0d |740 ENDPROC.750.| 000039d0 37 36 30 20 44 45 46 46 4e 70 6f 6c 6c 5f 74 78 |760 DEFFNpoll_tx| 000039e0 0d 37 37 30 20 52 45 50 45 41 54 0d 37 38 30 20 |.770 REPEAT.780 | 000039f0 41 25 3d 26 33 32 0d 37 39 30 20 74 65 73 74 25 |A%=&32.790 test%| 00003a00 3d 28 55 53 52 28 6f 73 62 79 74 65 29 20 41 4e |=(USR(osbyte) AN| 00003a10 44 20 26 46 46 30 30 29 20 44 49 56 20 26 31 30 |D &FF00) DIV &10| 00003a20 30 0d 38 30 30 20 55 4e 54 49 4c 20 74 65 73 74 |0.800 UNTIL test| 00003a30 25 3c 31 32 38 0d 38 31 30 20 3d 74 65 73 74 25 |%<128.810 =test%| 00003a40 0d 0d 0d 20 20 20 20 20 20 20 20 20 20 20 20 20 |... | 00003a50 20 20 53 45 52 56 45 52 20 45 78 74 65 6e 73 69 | SERVER Extensi| 00003a60 6f 6e 73 0d 0d 41 73 20 79 6f 75 20 77 69 6c 6c |ons..As you will| 00003a70 20 66 69 6e 64 20 69 6e 20 74 68 65 20 70 72 6f | find in the pro| 00003a80 74 6f 63 6f 6c 73 20 73 65 63 74 69 6f 6e 20 6f |tocols section o| 00003a90 66 20 74 68 69 73 20 61 72 74 69 63 6c 65 20 61 |f this article a| 00003aa0 20 66 75 72 74 68 65 72 0d 6e 6f 6e 2d 74 65 6c | further.non-tel| 00003ab0 65 74 65 78 74 20 72 65 6c 61 74 65 64 20 63 61 |etext related ca| 00003ac0 6c 6c 20 68 61 73 20 62 65 65 6e 20 69 6e 63 6c |ll has been incl| 00003ad0 75 64 65 64 20 69 6e 20 74 68 65 20 53 45 52 56 |uded in the SERV| 00003ae0 45 52 2e 20 54 68 69 73 20 63 61 6c 6c 0d 72 65 |ER. This call.re| 00003af0 74 75 72 6e 73 20 74 68 65 20 76 61 6c 75 65 20 |turns the value | 00003b00 6f 66 20 74 68 65 20 61 6e 61 6c 6f 67 75 65 20 |of the analogue | 00003b10 70 6f 72 74 73 2e 20 54 68 69 73 20 6d 65 61 6e |ports. This mean| 00003b20 73 20 76 61 72 69 6f 75 73 20 64 65 76 69 63 65 |s various device| 00003b30 73 20 63 61 6e 20 62 65 0d 61 74 74 61 63 68 65 |s can be.attache| 00003b40 64 20 74 6f 20 74 68 65 20 61 6e 61 6c 6f 67 75 |d to the analogu| 00003b50 65 20 70 6f 72 74 20 6f 66 20 74 68 65 20 53 45 |e port of the SE| 00003b60 52 56 45 52 20 61 6e 64 20 63 61 6e 20 62 65 20 |RVER and can be | 00003b70 73 61 6d 70 6c 65 64 20 66 72 6f 6d 0d 61 6e 79 |sampled from.any| 00003b80 77 68 65 72 65 20 6f 6e 20 74 68 65 20 6e 65 74 |where on the net| 00003b90 77 6f 72 6b 2e 20 57 65 20 61 72 65 20 75 73 69 |work. We are usi| 00003ba0 6e 67 20 74 68 69 73 20 74 6f 20 6d 6f 6e 69 74 |ng this to monit| 00003bb0 6f 72 20 74 68 65 20 6f 75 74 73 69 64 65 0d 74 |or the outside.t| 00003bc0 65 6d 70 65 72 61 74 75 72 65 2e 0d 0d 20 20 20 |emperature... | 00003bd0 20 20 20 20 20 20 20 20 20 20 54 45 4c 45 54 45 | TELETE| 00003be0 58 54 20 53 45 52 56 45 52 20 50 52 4f 54 4f 43 |XT SERVER PROTOC| 00003bf0 4f 4c 53 0d 0d 41 6c 6c 20 63 6f 6d 6d 75 6e 69 |OLS..All communi| 00003c00 63 61 74 69 6f 6e 73 20 62 65 74 77 65 65 6e 20 |cations between | 00003c10 74 65 6c 65 73 65 72 76 65 72 20 61 6e 64 20 63 |teleserver and c| 00003c20 6c 69 65 6e 74 20 61 72 65 20 63 6f 6e 64 75 63 |lient are conduc| 00003c30 74 65 64 20 6f 6e 20 70 6f 72 74 73 0d 62 61 73 |ted on ports.bas| 00003c40 65 2d 62 61 73 65 2b 33 20 28 63 75 72 72 65 6e |e-base+3 (curren| 00003c50 74 6c 79 20 26 42 32 2d 26 42 35 29 2e 20 54 72 |tly &B2-&B5). Tr| 00003c60 61 6e 73 6d 69 73 73 69 6f 6e 73 20 66 72 6f 6d |ansmissions from| 00003c70 20 63 6c 69 65 6e 74 20 74 6f 20 73 65 72 76 65 | client to serve| 00003c80 72 20 61 72 65 0d 6f 6e 20 70 6f 72 74 20 26 42 |r are.on port &B| 00003c90 33 20 61 6e 64 20 72 65 70 6c 69 65 73 20 66 72 |3 and replies fr| 00003ca0 6f 6d 20 74 68 65 20 73 65 72 76 65 72 20 61 72 |om the server ar| 00003cb0 65 20 6f 6e 20 70 6f 72 74 20 26 42 32 2e 20 50 |e on port &B2. P| 00003cc0 6f 72 74 20 26 42 35 20 69 73 0d 72 65 73 65 72 |ort &B5 is.reser| 00003cd0 76 65 64 20 66 6f 72 20 62 72 6f 61 64 63 61 73 |ved for broadcas| 00003ce0 74 69 6e 67 20 74 68 65 20 63 75 72 72 65 6e 74 |ting the current| 00003cf0 20 70 61 67 65 20 6e 75 6d 62 65 72 20 62 65 69 | page number bei| 00003d00 6e 67 20 70 69 63 6b 65 64 20 75 70 20 62 79 20 |ng picked up by | 00003d10 74 68 65 0d 73 65 72 76 65 72 20 61 6e 64 20 70 |the.server and p| 00003d20 6f 72 74 20 26 42 34 20 69 73 20 75 73 65 64 20 |ort &B4 is used | 00003d30 66 6f 72 20 74 72 61 6e 73 6d 69 74 74 69 6e 67 |for transmitting| 00003d40 20 74 68 65 20 70 61 67 65 20 69 74 73 65 6c 66 | the page itself| 00003d50 2e 0d 0d 49 74 20 69 73 20 6e 65 63 65 73 73 61 |...It is necessa| 00003d60 72 79 20 74 6f 20 75 73 65 20 66 6f 75 72 20 70 |ry to use four p| 00003d70 6f 72 74 73 20 62 65 63 61 75 73 65 20 74 68 65 |orts because the| 00003d80 20 63 6c 69 65 6e 74 20 6d 61 79 20 77 69 73 68 | client may wish| 00003d90 20 74 6f 20 68 61 76 65 0d 74 68 72 65 65 20 72 | to have.three r| 00003da0 65 63 65 69 76 65 20 62 6c 6f 63 6b 73 20 6f 70 |eceive blocks op| 00003db0 65 6e 20 61 74 20 74 68 65 20 73 61 6d 65 20 74 |en at the same t| 00003dc0 69 6d 65 2e 20 4f 6e 65 20 74 6f 20 63 6f 6e 74 |ime. One to cont| 00003dd0 69 6e 75 61 6c 6c 79 20 75 70 64 61 74 65 20 74 |inually update t| 00003de0 68 65 0d 70 61 67 65 20 68 65 61 64 65 72 2c 20 |he.page header, | 00003df0 6f 6e 65 20 74 6f 20 72 65 71 75 65 73 74 20 6f |one to request o| 00003e00 74 68 65 72 20 69 6e 66 6f 72 6d 61 74 69 6f 6e |ther information| 00003e10 20 61 6e 64 20 6f 6e 65 20 74 6f 20 72 65 63 65 | and one to rece| 00003e20 69 76 65 20 74 68 65 20 70 61 67 65 0d 69 74 73 |ive the page.its| 00003e30 65 6c 66 2e 0d 0d 54 68 65 20 70 61 67 65 20 63 |elf...The page c| 00003e40 75 72 72 65 6e 74 6c 79 20 62 65 69 6e 67 20 72 |urrently being r| 00003e50 65 63 65 69 76 65 64 20 69 73 20 62 72 6f 61 64 |eceived is broad| 00003e60 63 61 73 74 20 6f 6e 20 70 6f 72 74 20 26 42 35 |cast on port &B5| 00003e70 20 61 6e 64 20 63 6f 6e 73 69 73 74 73 20 6f 66 | and consists of| 00003e80 0d 34 20 62 79 74 65 73 3a 0d 0d 42 79 74 65 20 |.4 bytes:..Byte | 00003e90 31 20 20 20 20 20 43 68 61 6e 6e 65 6c 20 6e 75 |1 Channel nu| 00003ea0 6d 62 65 72 20 69 6e 20 41 53 43 49 49 0d 42 79 |mber in ASCII.By| 00003eb0 74 65 73 20 32 2d 34 20 20 50 61 67 65 20 6e 75 |tes 2-4 Page nu| 00003ec0 6d 62 65 72 20 69 6e 20 41 53 43 49 49 0d 0d 41 |mber in ASCII..A| 00003ed0 6c 6c 20 74 72 61 6e 73 6d 69 73 73 69 6f 6e 73 |ll transmissions| 00003ee0 20 74 6f 20 74 68 65 20 74 65 6c 65 73 65 72 76 | to the teleserv| 00003ef0 65 72 20 77 69 6c 6c 20 72 65 73 75 6c 74 20 69 |er will result i| 00003f00 6e 20 61 20 72 65 70 6c 79 20 62 65 69 6e 67 20 |n a reply being | 00003f10 73 65 6e 74 2e 20 54 68 65 0d 74 65 6c 65 73 65 |sent. The.telese| 00003f20 72 76 65 72 20 67 69 76 65 73 20 75 70 20 69 66 |rver gives up if| 00003f30 20 61 20 27 4e 6f 74 20 6c 69 73 74 65 6e 69 6e | a 'Not listenin| 00003f40 67 27 20 65 72 72 6f 72 20 6f 63 63 75 72 73 20 |g' error occurs | 00003f50 35 20 74 69 6d 65 73 2e 20 54 68 65 72 65 20 61 |5 times. There a| 00003f60 72 65 0d 74 77 6f 20 73 74 61 6e 64 61 72 64 20 |re.two standard | 00003f70 66 6f 72 6d 73 20 6f 66 20 72 65 70 6c 79 2e 0d |forms of reply..| 00003f80 0d 61 29 20 49 66 20 61 6e 20 65 72 72 6f 72 20 |.a) If an error | 00003f90 68 61 73 20 6f 63 63 75 72 72 65 64 20 28 65 67 |has occurred (eg| 00003fa0 20 79 6f 75 20 68 61 76 65 20 72 65 71 75 65 73 | you have reques| 00003fb0 74 65 64 20 61 20 73 69 6c 6c 79 20 70 61 67 65 |ted a silly page| 00003fc0 20 6e 75 6d 62 65 72 20 6f 72 0d 63 68 61 6e 6e | number or.chann| 00003fd0 65 6c 20 6e 75 6d 62 65 72 29 20 74 68 65 6e 20 |el number) then | 00003fe0 74 68 65 20 66 69 72 73 74 20 62 79 74 65 20 6f |the first byte o| 00003ff0 66 20 74 68 65 20 72 65 70 6c 79 20 64 61 74 61 |f the reply data| 00004000 20 77 69 6c 6c 20 62 65 20 61 6e 20 65 72 72 6f | will be an erro| 00004010 72 0d 6e 75 6d 62 65 72 20 61 6e 64 20 74 68 65 |r.number and the| 00004020 20 66 6f 6c 6c 6f 77 69 6e 67 20 62 79 74 65 73 | following bytes| 00004030 20 77 69 6c 6c 20 62 65 20 61 6e 20 65 72 72 6f | will be an erro| 00004040 72 20 6d 65 73 73 61 67 65 20 74 65 72 6d 69 6e |r message termin| 00004050 61 74 65 64 20 62 79 20 61 0d 63 61 72 72 69 61 |ated by a.carria| 00004060 67 65 20 72 65 74 75 72 6e 2e 0d 0d 62 29 20 49 |ge return...b) I| 00004070 66 20 6e 6f 20 65 72 72 6f 72 20 68 61 73 20 6f |f no error has o| 00004080 63 63 75 72 72 65 64 20 74 68 65 20 66 69 72 73 |ccurred the firs| 00004090 74 20 62 79 74 65 20 6f 66 20 74 68 65 20 72 65 |t byte of the re| 000040a0 70 6c 79 20 64 61 74 61 20 77 69 6c 6c 20 62 65 |ply data will be| 000040b0 20 7a 65 72 6f 0d 61 6e 64 20 74 68 65 20 73 75 | zero.and the su| 000040c0 62 73 65 71 75 65 6e 74 20 62 79 74 65 73 20 77 |bsequent bytes w| 000040d0 69 6c 6c 20 62 65 20 64 65 70 65 6e 64 65 6e 74 |ill be dependent| 000040e0 20 6f 6e 20 74 68 65 20 63 61 6c 6c 20 69 73 73 | on the call iss| 000040f0 75 65 64 2e 0d 0d 72 65 61 64 20 74 65 6c 65 73 |ued...read teles| 00004100 65 72 76 65 72 20 76 65 72 73 69 6f 6e 20 6e 75 |erver version nu| 00004110 6d 62 65 72 0d 0d 31 2f 63 6c 69 65 6e 74 20 74 |mber..1/client t| 00004120 6f 20 74 65 6c 65 73 65 72 76 65 72 0d 0d 70 6f |o teleserver..po| 00004130 72 74 20 20 20 20 20 20 20 20 20 20 26 42 33 0d |rt &B3.| 00004140 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 20 26 38 |control byte &8| 00004150 30 0d 64 61 74 61 20 20 20 20 20 20 20 20 20 20 |0.data | 00004160 6e 69 6c 0d 0d 32 2f 74 65 6c 65 73 65 72 76 65 |nil..2/teleserve| 00004170 72 20 74 6f 20 63 6c 69 65 6e 74 0d 0d 70 6f 72 |r to client..por| 00004180 74 20 20 20 20 20 20 20 20 20 20 26 42 32 0d 63 |t &B2.c| 00004190 6f 6e 74 72 6f 6c 20 62 79 74 65 20 20 26 38 30 |ontrol byte &80| 000041a0 0d 64 61 74 61 20 20 20 20 20 20 20 20 20 20 30 |.data 0| 000041b0 20 6f 72 20 65 72 72 6f 72 20 6e 75 6d 62 65 72 | or error number| 000041c0 0d 64 61 74 61 2b 31 20 20 20 20 20 20 20 20 76 |.data+1 v| 000041d0 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 20 61 73 |ersion number as| 000041e0 20 63 68 61 72 61 63 74 65 72 20 73 74 72 69 6e | character strin| 000041f0 67 20 74 65 72 6d 69 6e 61 74 65 64 20 62 79 20 |g terminated by | 00004200 63 2f 72 0d 0d 69 73 73 75 65 20 70 61 67 65 20 |c/r..issue page | 00004210 72 65 71 75 65 73 74 0d 0d 31 2f 63 6c 69 65 6e |request..1/clien| 00004220 74 20 74 6f 20 74 65 6c 65 73 65 72 76 65 72 0d |t to teleserver.| 00004230 0d 70 6f 72 74 20 20 20 20 20 20 20 20 20 20 26 |.port &| 00004240 42 33 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 |B3.control byte | 00004250 20 26 38 31 0d 64 61 74 61 20 20 20 20 20 20 20 | &81.data | 00004260 20 20 20 63 68 61 6e 6e 65 6c 20 6e 75 6d 62 65 | channel numbe| 00004270 72 20 69 6e 20 41 53 43 49 49 0d 64 61 74 61 2b |r in ASCII.data+| 00004280 31 2d 64 61 74 61 2b 33 20 70 61 67 65 20 6e 75 |1-data+3 page nu| 00004290 6d 62 65 72 20 69 6e 20 41 53 43 49 49 0d 0d 32 |mber in ASCII..2| 000042a0 2f 74 65 6c 65 73 65 72 76 65 72 20 74 6f 20 63 |/teleserver to c| 000042b0 6c 69 65 6e 74 0d 0d 70 6f 72 74 20 20 20 20 20 |lient..port | 000042c0 20 20 20 20 20 26 42 32 0d 63 6f 6e 74 72 6f 6c | &B2.control| 000042d0 20 62 79 74 65 20 20 26 38 31 0d 64 61 74 61 20 | byte &81.data | 000042e0 20 20 20 20 20 20 20 20 20 30 20 6f 72 20 65 72 | 0 or er| 000042f0 72 6f 72 20 6e 75 6d 62 65 72 0d 64 61 74 61 2b |ror number.data+| 00004300 31 20 20 20 20 20 20 20 20 70 6f 73 69 74 69 6f |1 positio| 00004310 6e 20 69 6e 20 71 75 65 75 65 0d 0d 63 61 6e 63 |n in queue..canc| 00004320 65 6c 20 70 61 67 65 20 72 65 71 75 65 73 74 0d |el page request.| 00004330 0d 31 2f 63 6c 69 65 6e 74 20 74 6f 20 74 65 6c |.1/client to tel| 00004340 65 73 65 72 76 65 72 0d 0d 70 6f 72 74 20 20 20 |eserver..port | 00004350 20 20 20 20 20 20 20 26 42 33 0d 63 6f 6e 74 72 | &B3.contr| 00004360 6f 6c 20 62 79 74 65 20 20 26 38 32 0d 64 61 74 |ol byte &82.dat| 00004370 61 20 20 20 20 20 20 20 20 20 20 6e 69 6c 0d 0d |a nil..| 00004380 32 2f 74 65 6c 65 73 65 72 76 65 72 20 74 6f 20 |2/teleserver to | 00004390 63 6c 69 65 6e 74 0d 0d 70 6f 72 74 20 20 20 20 |client..port | 000043a0 20 20 20 20 20 20 26 42 32 0d 63 6f 6e 74 72 6f | &B2.contro| 000043b0 6c 20 62 79 74 65 20 20 26 38 32 0d 64 61 74 61 |l byte &82.data| 000043c0 20 20 20 20 20 20 20 20 20 20 30 20 6f 72 20 65 | 0 or e| 000043d0 72 72 6f 72 20 6e 75 6d 62 65 72 0d 64 61 74 61 |rror number.data| 000043e0 2b 31 20 20 20 20 20 20 20 20 6e 69 6c 0d 0d 72 |+1 nil..r| 000043f0 65 61 64 20 6d 61 78 20 75 73 65 72 73 20 70 65 |ead max users pe| 00004400 72 20 63 68 61 6e 6e 65 6c 0d 0d 31 2f 63 6c 69 |r channel..1/cli| 00004410 65 6e 74 20 74 6f 20 74 65 6c 65 73 65 72 76 65 |ent to teleserve| 00004420 72 0d 0d 70 6f 72 74 20 20 20 20 20 20 20 20 20 |r..port | 00004430 20 26 42 33 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 | &B3.control byt| 00004440 65 20 20 26 38 33 0d 64 61 74 61 20 20 20 20 20 |e &83.data | 00004450 20 20 20 20 20 6e 69 6c 0d 0d 32 2f 74 65 6c 65 | nil..2/tele| 00004460 73 65 72 76 65 72 20 74 6f 20 63 6c 69 65 6e 74 |server to client| 00004470 0d 0d 70 6f 72 74 20 20 20 20 20 20 20 20 20 20 |..port | 00004480 26 42 32 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 |&B2.control byte| 00004490 20 20 26 38 33 0d 64 61 74 61 20 20 20 20 20 20 | &83.data | 000044a0 20 20 20 20 30 20 6f 72 20 65 72 72 6f 72 20 6e | 0 or error n| 000044b0 75 6d 62 65 72 0d 64 61 74 61 2b 31 20 20 20 20 |umber.data+1 | 000044c0 20 20 20 20 6d 61 78 20 75 73 65 72 73 0d 0d 72 | max users..r| 000044d0 65 61 64 20 64 61 74 65 20 61 6e 64 20 74 69 6d |ead date and tim| 000044e0 65 0d 0d 31 2f 63 6c 69 65 6e 74 20 74 6f 20 74 |e..1/client to t| 000044f0 65 6c 65 73 65 72 76 65 72 0d 0d 70 6f 72 74 20 |eleserver..port | 00004500 20 20 20 20 20 20 20 20 20 26 42 33 0d 63 6f 6e | &B3.con| 00004510 74 72 6f 6c 20 62 79 74 65 20 20 26 38 34 0d 64 |trol byte &84.d| 00004520 61 74 61 20 20 20 20 20 20 20 20 20 20 6e 69 6c |ata nil| 00004530 0d 0d 32 2f 74 65 6c 65 73 65 72 76 65 72 20 74 |..2/teleserver t| 00004540 6f 20 63 6c 69 65 6e 74 0d 0d 70 6f 72 74 20 20 |o client..port | 00004550 20 20 20 20 20 20 20 20 26 42 32 0d 63 6f 6e 74 | &B2.cont| 00004560 72 6f 6c 20 62 79 74 65 20 20 26 38 34 0d 64 61 |rol byte &84.da| 00004570 74 61 20 20 20 20 20 20 20 20 20 20 30 20 6f 72 |ta 0 or| 00004580 20 65 72 72 6f 72 20 6e 75 6d 62 65 72 0d 64 61 | error number.da| 00004590 74 61 2b 31 20 20 20 20 20 20 20 20 74 69 6d 65 |ta+1 time| 000045a0 20 61 6e 64 20 64 61 74 65 20 69 6e 20 41 53 43 | and date in ASC| 000045b0 49 49 20 28 48 48 3a 4d 4d 3a 53 53 44 44 2f 4d |II (HH:MM:SSDD/M| 000045c0 4d 2f 59 59 59 59 29 0d 0d 6c 6f 67 6f 66 66 0d |M/YYYY)..logoff.| 000045d0 0d 31 2f 63 6c 69 65 6e 74 20 74 6f 20 74 65 6c |.1/client to tel| 000045e0 65 73 65 72 76 65 72 0d 0d 70 6f 72 74 20 20 20 |eserver..port | 000045f0 20 20 20 20 20 20 20 26 42 33 0d 63 6f 6e 74 72 | &B3.contr| 00004600 6f 6c 20 62 79 74 65 20 20 26 38 35 0d 64 61 74 |ol byte &85.dat| 00004610 61 20 20 20 20 20 20 20 20 20 20 6e 69 6c 0d 0d |a nil..| 00004620 32 2f 74 65 6c 65 73 65 72 76 65 72 20 74 6f 20 |2/teleserver to | 00004630 63 6c 69 65 6e 74 0d 0d 70 6f 72 74 20 20 20 20 |client..port | 00004640 20 20 20 20 20 20 26 42 32 0d 63 6f 6e 74 72 6f | &B2.contro| 00004650 6c 20 62 79 74 65 20 20 26 38 35 0d 64 61 74 61 |l byte &85.data| 00004660 20 20 20 20 20 20 20 20 20 20 30 20 6f 72 20 65 | 0 or e| 00004670 72 72 6f 72 20 6e 75 6d 62 65 72 0d 64 61 74 61 |rror number.data| 00004680 2b 31 20 20 20 20 20 20 20 20 6e 69 6c 0d 0d 70 |+1 nil..p| 00004690 61 67 65 20 72 65 71 75 65 73 74 20 77 69 74 68 |age request with| 000046a0 20 74 69 6d 65 20 64 65 6c 61 79 0d 0d 31 2f 63 | time delay..1/c| 000046b0 6c 69 65 6e 74 20 74 6f 20 74 65 6c 65 73 65 72 |lient to teleser| 000046c0 76 65 72 0d 0d 70 6f 72 74 20 20 20 20 20 20 20 |ver..port | 000046d0 20 20 20 26 42 33 0d 63 6f 6e 74 72 6f 6c 20 62 | &B3.control b| 000046e0 79 74 65 20 20 26 38 36 0d 64 61 74 61 20 20 20 |yte &86.data | 000046f0 20 20 20 20 20 20 20 63 68 61 6e 6e 65 6c 20 6e | channel n| 00004700 75 6d 62 65 72 20 69 6e 20 41 53 43 49 49 0d 64 |umber in ASCII.d| 00004710 61 74 61 2b 31 2d 64 61 74 61 2b 33 20 70 61 67 |ata+1-data+3 pag| 00004720 65 20 6e 75 6d 62 65 72 20 69 6e 20 41 53 43 49 |e number in ASCI| 00004730 49 0d 0d 32 2f 74 65 6c 65 73 65 72 76 65 72 20 |I..2/teleserver | 00004740 74 6f 20 63 6c 69 65 6e 74 0d 0d 70 6f 72 74 20 |to client..port | 00004750 20 20 20 20 20 20 20 20 20 26 42 32 0d 63 6f 6e | &B2.con| 00004760 74 72 6f 6c 20 62 79 74 65 20 20 26 38 36 0d 64 |trol byte &86.d| 00004770 61 74 61 20 20 20 20 20 20 20 20 20 20 30 20 6f |ata 0 o| 00004780 72 20 65 72 72 6f 72 20 6e 75 6d 62 65 72 0d 64 |r error number.d| 00004790 61 74 61 2b 31 20 20 20 20 20 20 20 20 70 6f 73 |ata+1 pos| 000047a0 69 74 69 6f 6e 20 69 6e 20 71 75 65 75 65 0d 0d |ition in queue..| 000047b0 72 65 71 75 65 73 74 20 70 6f 72 74 20 76 61 6c |request port val| 000047c0 75 65 0d 0d 31 2f 63 6c 69 65 6e 74 20 74 6f 20 |ue..1/client to | 000047d0 74 65 6c 65 73 65 72 76 65 72 0d 0d 70 6f 72 74 |teleserver..port| 000047e0 20 20 20 20 20 20 20 20 20 20 26 42 33 0d 63 6f | &B3.co| 000047f0 6e 74 72 6f 6c 20 62 79 74 65 20 20 26 38 37 0d |ntrol byte &87.| 00004800 64 61 74 61 20 20 20 20 20 20 20 20 20 20 70 6f |data po| 00004810 72 74 20 6e 75 6d 62 65 72 20 69 6e 20 72 61 6e |rt number in ran| 00004820 67 65 20 30 20 74 6f 20 33 0d 0d 32 2f 74 65 6c |ge 0 to 3..2/tel| 00004830 65 73 65 72 76 65 72 20 74 6f 20 63 6c 69 65 6e |eserver to clien| 00004840 74 0d 0d 70 6f 72 74 20 20 20 20 20 20 20 20 20 |t..port | 00004850 20 26 42 32 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 | &B2.control byt| 00004860 65 20 20 26 38 37 0d 64 61 74 61 20 20 20 20 20 |e &87.data | 00004870 20 20 20 20 20 30 20 6f 72 20 65 72 72 6f 72 20 | 0 or error | 00004880 6e 75 6d 62 65 72 0d 64 61 74 61 2b 31 2d 64 61 |number.data+1-da| 00004890 74 61 2b 32 20 70 6f 72 74 20 76 61 6c 75 65 0d |ta+2 port value.| 000048a0 0d 52 65 63 65 70 74 69 6f 6e 20 6f 66 20 74 68 |.Reception of th| 000048b0 65 20 74 65 6c 65 74 65 78 74 20 70 61 67 65 0d |e teletext page.| 000048c0 0d 54 68 65 20 74 65 6c 65 73 65 72 76 65 72 20 |.The teleserver | 000048d0 73 65 6e 64 73 20 74 68 65 20 70 61 67 65 20 6f |sends the page o| 000048e0 6e 20 70 6f 72 74 20 26 42 34 2e 20 54 68 65 20 |n port &B4. The | 000048f0 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 77 69 6c |control byte wil| 00004900 6c 20 62 65 20 26 38 30 20 69 66 0d 6e 6f 20 65 |l be &80 if.no e| 00004910 72 72 6f 72 20 68 61 73 20 6f 63 63 75 72 72 65 |rror has occurre| 00004920 64 20 6f 74 68 65 72 77 69 73 65 20 74 68 65 20 |d otherwise the | 00004930 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 77 69 6c |control byte wil| 00004940 6c 20 62 65 20 26 38 31 2e 20 54 68 65 20 6f 6e |l be &81. The on| 00004950 6c 79 0d 65 72 72 6f 72 20 74 68 61 74 20 77 69 |ly.error that wi| 00004960 6c 6c 20 6f 63 63 75 72 20 77 69 6c 6c 20 62 65 |ll occur will be| 00004970 20 61 20 27 54 69 6d 65 64 20 6f 75 74 27 20 65 | a 'Timed out' e| 00004980 72 72 6f 72 20 69 65 20 79 6f 75 20 68 61 76 65 |rror ie you have| 00004990 20 70 72 6f 62 61 62 6c 79 0d 61 73 6b 65 64 20 | probably.asked | 000049a0 66 6f 72 20 61 20 6e 6f 6e 2d 65 78 69 73 74 65 |for a non-existe| 000049b0 6e 74 20 70 61 67 65 2e 20 54 68 65 20 64 61 74 |nt page. The dat| 000049c0 61 20 69 6e 20 74 68 65 20 72 65 63 65 69 76 65 |a in the receive| 000049d0 20 62 6c 6f 63 6b 20 62 75 66 66 65 72 20 77 69 | block buffer wi| 000049e0 6c 6c 0d 62 65 20 74 68 65 20 70 61 67 65 20 72 |ll.be the page r| 000049f0 65 71 75 65 73 74 65 64 20 69 66 20 74 68 65 72 |equested if ther| 00004a00 65 20 69 73 20 6e 6f 20 65 72 72 6f 72 2c 20 6f |e is no error, o| 00004a10 74 68 65 72 77 69 73 65 20 74 68 65 20 64 61 74 |therwise the dat| 00004a20 61 20 77 69 6c 6c 20 62 65 20 61 6e 0d 65 72 72 |a will be an.err| 00004a30 6f 72 20 6d 65 73 73 61 67 65 20 74 65 72 6d 69 |or message termi| 00004a40 6e 61 74 65 64 20 62 79 20 61 20 63 61 72 72 69 |nated by a carri| 00004a50 61 67 65 20 72 65 74 75 72 6e 2e 49 66 20 79 6f |age return.If yo| 00004a60 75 20 73 75 63 63 65 73 73 66 75 6c 6c 79 20 72 |u successfully r| 00004a70 65 63 65 69 76 65 0d 61 20 70 61 67 65 20 74 68 |eceive.a page th| 00004a80 65 6e 20 6c 6f 63 61 74 69 6f 6e 73 20 26 33 46 |en locations &3F| 00004a90 45 20 61 6e 64 20 26 33 46 46 20 69 6e 74 6f 20 |E and &3FF into | 00004aa0 74 68 65 20 72 65 63 65 69 76 65 20 62 6c 6f 63 |the receive bloc| 00004ab0 6b 20 62 75 66 66 65 72 20 77 69 6c 6c 0d 63 6f |k buffer will.co| 00004ac0 6e 74 61 69 6e 20 74 68 65 20 73 75 62 20 70 61 |ntain the sub pa| 00004ad0 67 65 20 6e 75 6d 62 65 72 20 69 6e 20 42 43 44 |ge number in BCD| 00004ae0 20 66 6f 72 6d 61 74 2e 20 26 33 46 45 20 63 6f | format. &3FE co| 00004af0 6e 74 61 69 6e 73 20 74 68 65 20 68 69 2d 62 79 |ntains the hi-by| 00004b00 74 65 20 61 6e 64 0d 26 33 46 46 20 63 6f 6e 74 |te and.&3FF cont| 00004b10 61 69 6e 73 20 74 68 65 20 6c 6f 2d 62 79 74 65 |ains the lo-byte| 00004b20 0d 0d 20 20 20 20 20 3d 3d 3d 3d 3d 3d 3d 3d 3d |.. =========| 00004b30 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00004b50 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d |===============.| 00004b60 0d 45 52 52 4f 52 20 4e 55 4d 42 45 52 53 0d 0d |.ERROR NUMBERS..| 00004b70 50 6f 73 73 69 62 6c 65 20 65 72 72 6f 72 20 6e |Possible error n| 00004b80 75 6d 62 65 72 73 20 61 72 65 3a 0d 0d 31 20 20 |umbers are:..1 | 00004b90 42 61 64 20 70 61 67 65 20 6e 75 6d 62 65 72 0d |Bad page number.| 00004ba0 32 20 20 42 61 64 20 63 68 61 6e 6e 65 6c 0d 33 |2 Bad channel.3| 00004bb0 20 20 43 68 61 6e 6e 65 6c 20 62 75 73 79 0d 34 | Channel busy.4| 00004bc0 20 20 54 69 6d 65 20 75 6e 61 76 61 69 6c 61 62 | Time unavailab| 00004bd0 6c 65 0d 35 20 20 42 61 64 20 70 6f 72 74 0d 0d |le.5 Bad port..| 00004be0 49 66 20 61 6e 20 65 72 72 6f 72 20 69 73 20 72 |If an error is r| 00004bf0 65 63 65 69 76 65 64 20 74 68 65 6e 20 61 6e 20 |eceived then an | 00004c00 65 72 72 6f 72 20 6d 65 73 73 61 67 65 20 74 65 |error message te| 00004c10 72 6d 69 6e 61 74 65 64 20 62 79 20 61 20 63 61 |rminated by a ca| 00004c20 72 72 69 61 67 65 0d 72 65 74 75 72 6e 20 77 69 |rriage.return wi| 00004c30 6c 6c 20 62 65 20 72 65 74 75 72 6e 65 64 20 69 |ll be returned i| 00004c40 6e 20 64 61 74 61 2b 31 2e 0d 0d 54 68 65 20 53 |n data+1...The S| 00004c50 45 52 56 45 52 27 73 20 72 65 63 65 69 76 65 20 |ERVER's receive | 00004c60 62 75 66 66 65 72 20 69 73 20 26 35 30 20 62 79 |buffer is &50 by| 00004c70 74 65 73 2e 0d 0d 54 68 65 20 53 45 52 56 45 52 |tes...The SERVER| 00004c80 20 74 72 61 6e 73 6d 69 74 73 20 61 20 62 6c 6f | transmits a blo| 00004c90 63 6b 20 6f 66 20 26 34 30 30 20 62 79 74 65 73 |ck of &400 bytes| 00004ca0 20 6f 6e 20 70 6f 72 74 20 26 42 33 20 77 68 65 | on port &B3 whe| 00004cb0 6e 20 74 72 61 6e 73 6d 69 74 74 69 6e 67 20 61 |n transmitting a| 00004cc0 0d 70 61 67 65 2e 20 49 74 20 74 72 61 6e 73 6d |.page. It transm| 00004cd0 69 74 73 20 61 20 62 6c 6f 63 6b 20 6f 66 20 26 |its a block of &| 00004ce0 32 30 20 62 79 74 65 73 20 69 6e 20 61 6c 6c 20 |20 bytes in all | 00004cf0 6f 74 68 65 72 20 63 61 73 65 73 2e 0d 0d 20 20 |other cases... | 00004d00 20 20 20 20 20 20 20 20 20 2d 2d 2d 2d 2d 2d 2d | -------| 00004d10 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00004d20 2d 2d 2d 2d 2d 2d 2d 2d 0d 0d 4c 6f 67 67 69 6e |--------..Loggin| 00004d30 67 20 6f 6e 20 74 6f 20 74 68 65 20 73 65 72 76 |g on to the serv| 00004d40 65 72 0d 0d 43 6c 69 65 6e 74 20 74 6f 20 53 65 |er..Client to Se| 00004d50 72 76 65 72 0d 0d 70 6f 72 74 20 20 20 20 20 20 |rver..port | 00004d60 20 20 20 20 20 20 26 42 30 0d 0d 63 6f 6e 74 72 | &B0..contr| 00004d70 6f 6c 20 62 79 74 65 20 20 20 20 26 38 30 0d 0d |ol byte &80..| 00004d80 44 61 74 61 20 20 20 20 20 20 20 20 20 20 20 20 |Data | 00004d90 54 68 65 20 73 74 72 69 6e 67 20 54 45 4c 45 54 |The string TELET| 00004da0 45 58 54 20 61 73 20 73 74 61 6e 64 61 72 64 20 |EXT as standard | 00004db0 41 53 43 49 49 20 28 74 68 65 20 73 65 72 76 65 |ASCII (the serve| 00004dc0 72 20 74 79 70 65 29 0d 0d 53 65 72 76 65 72 20 |r type)..Server | 00004dd0 74 6f 20 43 6c 69 65 6e 74 0d 0d 70 6f 72 74 20 |to Client..port | 00004de0 20 20 20 20 20 20 20 20 20 20 20 26 42 31 0d 0d | &B1..| 00004df0 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 20 20 20 |control byte | 00004e00 26 38 30 0d 0d 44 61 74 61 20 20 20 20 20 20 20 |&80..Data | 00004e10 20 20 20 20 20 30 20 6f 72 20 65 72 72 6f 72 20 | 0 or error | 00004e20 6e 75 6d 62 65 72 0d 44 61 74 61 2b 31 20 20 20 |number.Data+1 | 00004e30 20 20 20 20 20 20 20 62 61 73 65 20 70 6f 72 74 | base port| 00004e40 20 6e 75 6d 62 65 72 20 66 6f 72 20 66 75 72 74 | number for furt| 00004e50 68 65 72 20 65 78 63 68 61 6e 67 65 73 0d 44 61 |her exchanges.Da| 00004e60 74 61 2b 32 20 20 20 20 20 20 20 20 20 20 62 69 |ta+2 bi| 00004e70 6e 61 72 79 20 76 65 72 69 73 6f 6e 20 6e 75 6d |nary verison num| 00004e80 62 65 72 20 6f 66 20 74 68 65 20 73 65 72 76 65 |ber of the serve| 00004e90 72 20 73 6f 66 74 77 61 72 65 0d 44 61 74 61 2b |r software.Data+| 00004ea0 33 20 20 20 20 20 20 20 20 20 20 53 65 72 76 65 |3 Serve| 00004eb0 72 20 74 79 70 65 20 28 38 20 63 68 61 72 73 2c |r type (8 chars,| 00004ec0 20 66 6f 72 6d 61 74 20 61 73 20 66 6f 72 20 43 | format as for C| 00004ed0 6c 69 65 6e 74 20 74 6f 20 53 65 72 76 65 72 29 |lient to Server)| 00004ee0 0d 44 61 74 61 2b 31 31 20 20 20 20 20 20 20 20 |.Data+11 | 00004ef0 20 4c 65 6e 67 74 68 20 6f 66 20 73 65 72 76 65 | Length of serve| 00004f00 72 20 6e 61 6d 65 20 28 3d 30 20 69 66 20 6e 6f |r name (=0 if no| 00004f10 74 20 70 72 65 73 65 6e 74 29 0d 44 61 74 61 2b |t present).Data+| 00004f20 31 32 20 20 20 20 20 20 20 20 20 53 65 72 76 65 |12 Serve| 00004f30 72 20 6e 61 6d 65 20 28 6f 70 74 69 6f 6e 61 6c |r name (optional| 00004f40 29 0d 44 61 74 61 2b 31 32 2b 4e 61 6d 65 4c 65 |).Data+12+NameLe| 00004f50 6e 20 53 65 72 76 65 72 20 74 79 70 65 20 64 65 |n Server type de| 00004f60 70 65 6e 64 61 6e 74 20 4f 52 20 65 72 72 6f 72 |pendant OR error| 00004f70 20 73 74 72 69 6e 67 0d 0d 54 68 65 20 6c 65 6e | string..The len| 00004f80 67 74 68 20 6f 66 20 74 68 65 20 72 65 63 65 69 |gth of the recei| 00004f90 76 65 20 62 6c 6f 63 6b 20 62 75 66 66 65 72 20 |ve block buffer | 00004fa0 6e 65 65 64 65 64 20 74 6f 20 72 65 63 65 69 76 |needed to receiv| 00004fb0 65 20 74 68 69 73 20 72 65 73 70 6f 6e 73 65 0d |e this response.| 00004fc0 66 72 6f 6d 20 74 68 65 20 73 65 72 76 65 72 20 |from the server | 00004fd0 77 69 6c 6c 20 6e 6f 74 20 65 78 63 65 65 64 20 |will not exceed | 00004fe0 26 32 30 20 62 79 74 65 73 2e 20 0d |&20 bytes. .| 00004fec
27-01-89/TFSinfo
00000000 0d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 00000010 20 20 20 20 20 20 20 20 20 20 20 20 20 54 45 4c | TEL| 00000020 45 54 45 58 54 20 53 45 52 56 45 52 20 53 59 53 |ETEXT SERVER SYS| 00000030 54 45 4d 20 0d 20 0d 54 68 65 20 73 79 73 74 65 |TEM . .The syste| 00000040 6d 20 63 6f 6e 73 69 73 74 73 20 6f 66 20 74 68 |m consists of th| 00000050 72 65 65 20 70 72 6f 67 72 61 6d 73 20 0d 20 0d |ree programs . .| 00000060 31 2e 20 20 41 20 62 61 73 69 63 20 70 72 6f 67 |1. A basic prog| 00000070 72 61 6d 20 27 54 46 53 27 20 77 68 69 63 68 20 |ram 'TFS' which | 00000080 72 75 6e 73 20 69 6e 20 74 68 65 20 6d 61 63 68 |runs in the mach| 00000090 69 6e 65 20 77 69 74 68 20 74 68 65 20 74 65 6c |ine with the tel| 000000a0 65 74 65 78 74 20 20 61 64 61 70 74 6f 72 20 0d |etext adaptor .| 000000b0 20 20 20 20 28 68 65 6e 63 65 66 6f 72 74 68 20 | (henceforth | 000000c0 63 61 6c 6c 65 64 20 74 68 65 20 53 45 52 56 45 |called the SERVE| 000000d0 52 29 20 0d 32 2e 20 20 41 20 6d 61 63 68 69 6e |R) .2. A machin| 000000e0 65 20 63 6f 64 65 20 72 6f 75 74 69 6e 65 20 27 |e code routine '| 000000f0 63 6f 64 65 27 20 77 68 69 63 68 20 69 73 20 2a |code' which is *| 00000100 52 55 4e 20 62 79 20 74 68 65 20 70 72 6f 67 72 |RUN by the progr| 00000110 61 6d 20 54 46 53 2e 20 0d 33 2e 20 20 41 20 20 |am TFS. .3. A | 00000120 6d 61 63 68 69 6e 65 20 20 63 6f 64 65 20 20 70 |machine code p| 00000130 72 6f 67 72 61 6d 20 20 27 54 45 4c 45 54 45 58 |rogram 'TELETEX| 00000140 54 27 20 20 77 68 69 63 68 20 20 72 75 6e 73 20 |T' which runs | 00000150 20 69 6e 20 20 74 68 65 20 20 6c 6f 63 61 6c 20 | in the local | 00000160 6d 61 63 68 69 6e 65 20 0d 20 20 20 20 28 68 65 |machine . (he| 00000170 6e 63 65 66 6f 72 74 68 20 63 61 6c 6c 65 64 20 |nceforth called | 00000180 74 68 65 20 43 4c 49 45 4e 54 29 20 0d 20 0d 54 |the CLIENT) . .T| 00000190 68 65 20 73 65 72 76 65 72 20 61 6e 64 20 63 6c |he server and cl| 000001a0 69 65 6e 74 20 63 6f 6d 6d 75 6e 69 63 61 74 65 |ient communicate| 000001b0 20 6f 6e 20 70 6f 72 74 73 20 26 42 32 2c 20 26 | on ports &B2, &| 000001c0 42 33 2c 20 26 42 34 20 20 61 6e 64 20 20 26 42 |B3, &B4 and &B| 000001d0 35 2e 20 20 54 68 65 20 20 62 61 73 65 20 0d 70 |5. The base .p| 000001e0 6f 72 74 20 20 6e 75 6d 62 65 72 20 20 6f 66 20 |ort number of | 000001f0 20 26 42 32 20 69 73 20 74 72 61 6e 73 6d 69 74 | &B2 is transmit| 00000200 74 65 64 20 74 6f 20 74 68 65 20 63 6c 69 65 6e |ted to the clien| 00000210 74 20 69 6e 20 61 63 63 6f 72 64 61 6e 63 65 20 |t in accordance | 00000220 77 69 74 68 20 74 68 65 20 46 69 6e 64 20 0d 53 |with the Find .S| 00000230 65 72 76 65 72 20 70 72 6f 74 6f 63 6f 6c 2e 20 |erver protocol. | 00000240 49 74 20 69 73 20 20 70 6f 73 73 69 62 6c 65 20 |It is possible | 00000250 74 6f 20 77 72 69 74 65 20 70 72 6f 67 72 61 6d |to write program| 00000260 73 20 20 74 6f 20 20 63 6f 6d 6d 75 6e 69 63 61 |s to communica| 00000270 74 65 20 20 77 69 74 68 20 20 74 68 65 20 0d 54 |te with the .T| 00000280 45 4c 45 54 45 58 54 2d 53 45 52 56 45 52 20 20 |ELETEXT-SERVER | 00000290 75 73 69 6e 67 20 20 74 68 65 73 65 20 70 6f 72 |using these por| 000002a0 74 73 20 62 75 74 20 69 74 20 63 6f 75 6c 64 20 |ts but it could | 000002b0 62 65 20 74 68 61 74 20 75 70 64 61 74 65 73 20 |be that updates | 000002c0 6f 66 20 74 68 65 20 73 65 72 76 65 72 20 0d 73 |of the server .s| 000002d0 6f 66 74 77 61 72 65 20 6d 61 79 20 75 73 65 20 |oftware may use | 000002e0 61 20 64 69 66 66 65 72 65 6e 74 20 62 61 73 65 |a different base| 000002f0 20 70 6f 72 74 20 6e 75 6d 62 65 72 2c 20 69 6e | port number, in| 00000300 20 20 77 68 69 63 68 20 20 63 61 73 65 20 20 73 | which case s| 00000310 75 63 68 20 20 70 72 6f 67 72 61 6d 73 20 0d 77 |uch programs .w| 00000320 69 6c 6c 20 63 65 61 73 65 20 74 6f 20 77 6f 72 |ill cease to wor| 00000330 6b 2e 20 0d 20 20 20 20 20 20 20 20 20 20 20 20 |k. . | 00000340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000350 20 20 20 20 20 20 20 20 20 20 20 20 0d 20 20 20 | . | 00000360 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000370 20 20 20 20 20 20 20 20 20 20 54 68 65 20 54 45 | The TE| 00000380 4c 45 54 45 58 54 20 70 72 6f 67 72 61 6d 20 0d |LETEXT program .| 00000390 20 0d 54 68 69 73 20 20 6c 6f 63 61 74 65 73 20 | .This locates | 000003a0 20 61 74 20 26 46 46 46 46 36 45 30 30 20 61 6e | at &FFFF6E00 an| 000003b0 64 20 73 6f 20 73 68 6f 75 6c 64 20 6e 6f 74 20 |d so should not | 000003c0 63 6f 72 72 75 70 74 20 61 6e 79 20 42 41 53 49 |corrupt any BASI| 000003d0 43 20 70 72 6f 67 72 61 6d 20 69 6e 20 74 68 65 |C program in the| 000003e0 20 0d 43 4c 49 45 4e 54 27 73 20 6d 65 6d 6f 72 | .CLIENT's memor| 000003f0 79 2e 20 49 74 20 77 69 6c 6c 20 77 6f 72 6b 20 |y. It will work | 00000400 77 69 74 68 20 61 6c 6c 20 76 65 72 73 69 6f 6e |with all version| 00000410 73 20 6f 66 20 74 68 65 20 42 42 43 20 42 2c 20 |s of the BBC B, | 00000420 42 2b 2c 20 20 4d 41 53 54 45 52 20 20 61 6e 64 |B+, MASTER and| 00000430 20 0d 45 54 2e 20 20 54 68 65 20 20 70 72 6f 67 | .ET. The prog| 00000440 72 61 6d 20 77 69 6c 6c 20 61 6c 73 6f 20 63 6f |ram will also co| 00000450 6d 6d 75 6e 69 63 61 74 65 20 77 69 74 68 20 61 |mmunicate with a| 00000460 20 53 45 52 56 45 52 20 61 63 72 6f 73 73 20 61 | SERVER across a| 00000470 20 62 72 69 64 67 65 20 61 6c 74 68 6f 75 67 68 | bridge although| 00000480 20 0d 73 6f 6d 65 20 6f 66 20 74 68 65 20 68 65 | .some of the he| 00000490 61 64 65 72 73 20 6d 61 79 20 62 65 20 6c 6f 73 |aders may be los| 000004a0 74 20 20 61 73 20 20 74 68 65 73 65 20 20 61 72 |t as these ar| 000004b0 65 20 20 62 72 6f 61 64 63 61 73 74 20 20 61 6e |e broadcast an| 000004c0 64 20 20 74 68 65 72 65 20 20 69 73 20 20 6e 6f |d there is no| 000004d0 20 0d 63 6f 6c 6c 69 73 69 6f 6e 20 64 65 74 65 | .collision dete| 000004e0 63 74 20 61 63 72 6f 73 73 20 61 20 62 72 69 64 |ct across a brid| 000004f0 67 65 2e 20 0d 20 0d 20 0d 31 2e 20 20 54 68 65 |ge. . . .1. The| 00000500 20 66 69 72 73 74 20 61 63 74 69 6f 6e 20 69 73 | first action is| 00000510 20 74 6f 20 6f 70 65 6e 20 61 20 72 65 63 65 69 | to open a recei| 00000520 76 65 20 62 6c 6f 63 6b 20 74 6f 20 72 65 63 65 |ve block to rece| 00000530 69 76 65 20 61 20 54 45 4c 45 54 45 58 54 2d 53 |ive a TELETEXT-S| 00000540 45 52 56 45 52 27 73 20 0d 20 20 20 20 72 65 70 |ERVER's . rep| 00000550 6c 79 20 74 6f 20 61 20 66 69 6e 64 20 73 65 72 |ly to a find ser| 00000560 76 65 72 20 72 65 71 75 65 73 74 2e 20 54 68 69 |ver request. Thi| 00000570 73 20 72 65 63 65 69 76 65 20 62 6c 6f 63 6b 20 |s receive block | 00000580 6c 69 73 74 65 6e 73 20 6f 6e 20 70 6f 72 74 20 |listens on port | 00000590 26 42 31 20 20 74 6f 20 0d 20 20 20 20 61 6c 6c |&B1 to . all| 000005a0 20 73 74 61 74 69 6f 6e 73 2c 20 61 73 20 61 74 | stations, as at| 000005b0 20 74 68 69 73 20 73 74 61 67 65 20 74 68 65 20 | this stage the | 000005c0 43 4c 49 45 4e 54 20 64 6f 65 73 20 6e 6f 74 20 |CLIENT does not | 000005d0 6b 6e 6f 77 20 74 68 65 20 73 74 61 74 69 6f 6e |know the station| 000005e0 20 6e 75 6d 62 65 72 20 0d 20 20 20 20 6f 66 20 | number . of | 000005f0 74 68 65 20 53 45 52 56 45 52 2e 20 0d 20 0d 32 |the SERVER. . .2| 00000600 2e 20 20 54 68 65 20 43 4c 49 45 4e 54 20 62 72 |. The CLIENT br| 00000610 6f 61 64 63 61 73 74 73 20 74 6f 20 61 6c 6c 20 |oadcasts to all | 00000620 73 74 61 74 69 6f 6e 73 20 20 6f 6e 20 20 70 6f |stations on po| 00000630 72 74 20 20 26 42 30 20 20 77 69 74 68 20 20 61 |rt &B0 with a| 00000640 20 20 64 61 74 61 20 20 66 69 65 6c 64 20 0d 20 | data field . | 00000650 20 20 20 63 6f 6e 74 61 69 6e 69 6e 67 20 20 27 | containing '| 00000660 54 45 4c 45 54 45 58 54 27 20 74 68 69 73 20 62 |TELETEXT' this b| 00000670 65 69 6e 67 20 74 68 65 20 6e 61 6d 65 20 74 6f |eing the name to| 00000680 20 77 68 69 63 68 20 61 20 54 45 4c 45 54 45 58 | which a TELETEX| 00000690 54 2d 53 45 52 56 45 52 20 77 69 6c 6c 20 0d 20 |T-SERVER will . | 000006a0 20 20 20 72 65 73 70 6f 6e 64 2e 20 54 68 65 20 | respond. The | 000006b0 66 69 72 73 74 20 53 45 52 56 45 52 20 74 6f 20 |first SERVER to | 000006c0 72 65 73 70 6f 6e 64 20 77 69 6c 6c 20 62 65 20 |respond will be | 000006d0 74 68 65 20 6f 6e 65 20 77 69 74 68 20 77 68 69 |the one with whi| 000006e0 63 68 20 74 68 65 20 43 4c 49 45 4e 54 20 0d 20 |ch the CLIENT . | 000006f0 20 20 20 73 75 62 73 65 71 75 65 6e 74 6c 79 20 | subsequently | 00000700 20 69 6e 74 65 72 61 63 74 73 2e 20 20 53 68 6f | interacts. Sho| 00000710 75 6c 64 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e |uld more than on| 00000720 65 20 73 65 72 76 65 72 20 62 65 20 61 76 61 69 |e server be avai| 00000730 6c 61 62 6c 65 20 74 68 65 6e 20 69 74 20 0d 20 |lable then it . | 00000740 20 20 20 69 73 20 70 6f 73 73 69 62 6c 65 20 74 | is possible t| 00000750 6f 20 63 6f 6e 6e 65 63 74 20 74 6f 20 61 20 73 |o connect to a s| 00000760 70 65 63 69 66 69 63 20 73 65 72 76 65 72 20 62 |pecific server b| 00000770 79 20 75 73 69 6e 67 20 69 74 73 20 73 74 61 74 |y using its stat| 00000780 69 6f 6e 20 6e 75 6d 62 65 72 20 65 67 20 0d 20 |ion number eg . | 00000790 20 20 20 2a 54 45 4c 45 54 45 58 54 20 20 32 2e | *TELETEXT 2.| 000007a0 34 35 2e 20 20 59 6f 75 20 20 6d 61 79 20 20 77 |45. You may w| 000007b0 69 73 68 20 20 74 6f 20 20 64 6f 20 20 74 68 69 |ish to do thi| 000007c0 73 20 69 66 20 79 6f 75 20 6b 6e 6f 77 20 74 68 |s if you know th| 000007d0 61 74 20 6f 6e 65 20 73 65 72 76 65 72 20 0d 20 |at one server . | 000007e0 20 20 20 72 65 63 65 69 76 65 73 20 61 20 62 65 | receives a be| 000007f0 74 74 65 72 20 73 69 67 6e 61 6c 20 74 68 61 6e |tter signal than| 00000800 20 61 6e 6f 74 68 65 72 2c 20 6f 6e 20 74 68 65 | another, on the| 00000810 20 63 68 61 6e 6e 65 6c 20 79 6f 75 20 77 69 73 | channel you wis| 00000820 68 20 74 6f 20 75 73 65 2e 20 0d 20 0d 33 2e 20 |h to use. . .3. | 00000830 20 54 68 65 20 43 4c 49 45 4e 54 20 70 6f 6c 6c | The CLIENT poll| 00000840 73 20 74 68 65 20 72 65 63 65 69 76 65 20 62 6c |s the receive bl| 00000850 6f 63 6b 20 75 6e 74 69 6c 20 61 20 53 45 52 56 |ock until a SERV| 00000860 45 52 20 72 65 73 70 6f 6e 64 73 20 6f 72 20 3c |ER responds or <| 00000870 45 53 43 41 50 45 3e 20 20 69 73 20 0d 20 20 20 |ESCAPE> is . | 00000880 20 70 72 65 73 73 65 64 2e 20 0d 20 0d 34 2e 20 | pressed. . .4. | 00000890 20 54 68 65 20 20 43 4c 49 45 4e 54 20 20 72 65 | The CLIENT re| 000008a0 61 64 73 20 20 74 68 65 20 53 45 52 56 45 52 27 |ads the SERVER'| 000008b0 73 20 72 65 70 6c 79 20 61 6e 64 20 73 74 6f 72 |s reply and stor| 000008c0 65 73 20 74 68 65 20 53 45 52 56 45 52 27 73 20 |es the SERVER's | 000008d0 73 74 61 74 69 6f 6e 20 61 6e 64 20 0d 20 20 20 |station and . | 000008e0 20 6e 65 74 77 6f 72 6b 20 6e 75 6d 62 65 72 2e | network number.| 000008f0 20 54 68 65 20 62 61 73 65 20 70 6f 72 74 20 6e | The base port n| 00000900 75 6d 62 65 72 20 28 26 42 32 29 20 69 73 20 75 |umber (&B2) is u| 00000910 73 65 64 20 74 6f 20 63 61 6c 63 75 6c 61 74 65 |sed to calculate| 00000920 20 74 68 65 20 20 70 6f 72 74 73 20 0d 20 20 20 | the ports . | 00000930 20 66 6f 72 20 20 66 75 72 74 68 65 72 20 63 6f | for further co| 00000940 6d 6d 75 6e 69 63 61 74 69 6f 6e 2e 20 54 68 65 |mmunication. The| 00000950 20 43 4c 49 45 4e 54 20 73 65 6c 65 63 74 73 20 | CLIENT selects | 00000960 4d 4f 44 45 20 37 2c 20 70 72 69 6e 74 73 20 74 |MODE 7, prints t| 00000970 68 65 20 53 45 52 56 45 52 27 73 20 0d 20 20 20 |he SERVER's . | 00000980 20 73 74 61 74 69 6f 6e 20 6e 75 6d 62 65 72 20 | station number | 00000990 28 73 75 70 70 72 65 73 73 69 6e 67 20 74 68 65 |(suppressing the| 000009a0 20 6e 65 74 77 6f 72 6b 20 6e 75 6d 62 65 72 20 | network number | 000009b0 69 66 20 69 74 20 69 73 20 7a 65 72 6f 29 20 61 |if it is zero) a| 000009c0 6e 64 20 61 6c 73 6f 20 74 68 65 20 0d 20 20 20 |nd also the . | 000009d0 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 65 72 2e | version number.| 000009e0 20 0d 20 0d 35 2e 20 20 54 68 65 20 20 43 4c 49 | . .5. The CLI| 000009f0 45 4e 54 20 20 6f 70 65 6e 73 20 74 68 72 65 65 |ENT opens three| 00000a00 20 72 65 63 65 69 76 65 20 62 6c 6f 63 6b 73 2e | receive blocks.| 00000a10 20 4f 6e 65 20 6f 6e 20 70 6f 72 74 20 26 42 35 | One on port &B5| 00000a20 20 28 62 61 73 65 2b 33 29 20 72 65 61 64 79 20 | (base+3) ready | 00000a30 74 6f 20 0d 20 20 20 20 72 65 63 65 69 76 65 20 |to . receive | 00000a40 61 6e 79 20 70 61 67 65 20 68 65 61 64 65 72 73 |any page headers| 00000a50 20 77 68 69 63 68 20 61 72 72 69 76 65 2c 20 6f | which arrive, o| 00000a60 6e 65 20 6f 6e 20 70 6f 72 74 20 20 26 42 32 20 |ne on port &B2 | 00000a70 20 28 62 61 73 65 29 20 20 72 65 61 64 79 20 20 | (base) ready | 00000a80 74 6f 20 0d 20 20 20 20 72 65 63 65 69 76 65 20 |to . receive | 00000a90 20 61 6e 79 20 20 53 45 52 56 45 52 20 20 72 65 | any SERVER re| 00000aa0 70 6c 69 65 73 20 20 61 6e 64 20 6f 6e 65 20 6f |plies and one o| 00000ab0 6e 20 70 6f 72 74 20 26 42 34 20 28 62 61 73 65 |n port &B4 (base| 00000ac0 2b 32 29 20 74 6f 20 72 65 63 65 69 76 65 20 61 |+2) to receive a| 00000ad0 6e 79 20 0d 20 20 20 20 70 61 67 65 73 2e 20 0d |ny . pages. .| 00000ae0 20 0d 36 2e 20 20 54 68 65 20 43 4c 49 45 4e 54 | .6. The CLIENT| 00000af0 20 73 65 6e 64 73 20 61 20 72 65 71 75 65 73 74 | sends a request| 00000b00 20 66 6f 72 20 70 61 67 65 20 31 31 30 30 20 28 | for page 1100 (| 00000b10 74 68 65 20 66 69 72 73 74 20 20 64 69 67 69 74 |the first digit| 00000b20 20 20 69 6e 64 69 63 61 74 65 73 20 20 74 68 65 | indicates the| 00000b30 20 0d 20 20 20 20 63 68 61 6e 6e 65 6c 20 20 6e | . channel n| 00000b40 75 6d 62 65 72 29 2e 20 54 68 69 73 20 69 73 20 |umber). This is | 00000b50 6f 6e 20 70 6f 72 74 20 26 42 33 20 28 62 61 73 |on port &B3 (bas| 00000b60 65 2b 31 29 20 77 69 74 68 20 61 20 63 6f 6e 74 |e+1) with a cont| 00000b70 72 6f 6c 20 62 79 74 65 20 6f 66 20 26 38 31 2e |rol byte of &81.| 00000b80 20 0d 20 20 20 20 54 68 65 20 72 65 70 6c 79 20 | . The reply | 00000b90 72 65 63 65 69 76 65 20 62 6c 6f 63 6b 20 69 73 |receive block is| 00000ba0 20 74 68 65 6e 20 70 6f 6c 6c 65 64 20 20 75 6e | then polled un| 00000bb0 74 69 6c 20 20 74 68 65 20 20 53 45 52 56 45 52 |til the SERVER| 00000bc0 20 20 72 65 73 70 6f 6e 64 73 2e 20 20 54 68 65 | responds. The| 00000bd0 20 0d 20 20 20 20 70 6f 73 69 74 69 6f 6e 20 20 | . position | 00000be0 69 6e 20 20 74 68 65 20 71 75 65 75 65 20 72 65 |in the queue re| 00000bf0 74 75 72 6e 65 64 20 62 79 20 74 68 65 20 53 45 |turned by the SE| 00000c00 52 56 45 52 20 69 73 20 70 72 69 6e 74 65 64 20 |RVER is printed | 00000c10 61 74 20 74 68 65 20 62 6f 74 74 6f 6d 20 6f 66 |at the bottom of| 00000c20 20 0d 20 20 20 20 74 68 65 20 70 61 67 65 2e 20 | . the page. | 00000c30 41 20 6e 65 77 20 72 65 63 65 69 76 65 20 62 6c |A new receive bl| 00000c40 6f 63 6b 20 66 6f 72 20 72 65 70 6c 69 65 73 20 |ock for replies | 00000c50 6f 6e 20 70 6f 72 74 20 26 42 32 20 69 73 20 20 |on port &B2 is | 00000c60 73 65 74 20 20 75 70 2e 20 20 49 66 20 20 61 6e |set up. If an| 00000c70 20 0d 20 20 20 20 65 72 72 6f 72 20 20 6f 63 63 | . error occ| 00000c80 75 72 73 20 20 74 68 65 6e 20 20 74 68 65 20 20 |urs then the | 00000c90 65 72 72 6f 72 20 20 6d 65 73 73 61 67 65 20 69 |error message i| 00000ca0 73 20 64 69 73 70 6c 61 79 65 64 20 61 74 20 74 |s displayed at t| 00000cb0 68 65 20 62 6f 74 74 6f 6d 20 6f 66 20 74 68 65 |he bottom of the| 00000cc0 20 0d 20 20 20 20 73 63 72 65 65 6e 20 61 6e 64 | . screen and| 00000cd0 20 74 68 65 20 70 61 67 65 20 69 6e 70 75 74 20 | the page input | 00000ce0 72 6f 75 74 69 6e 65 20 69 73 20 65 6e 74 65 72 |routine is enter| 00000cf0 65 64 20 6f 72 20 69 66 20 74 68 65 20 65 72 72 |ed or if the err| 00000d00 6f 72 20 20 77 61 73 20 20 61 20 20 27 42 61 64 |or was a 'Bad| 00000d10 20 0d 20 20 20 20 63 68 61 6e 6e 65 6c 27 20 65 | . channel' e| 00000d20 72 72 6f 72 20 74 68 65 6e 20 74 68 65 20 63 68 |rror then the ch| 00000d30 61 6e 6e 65 6c 20 69 6e 70 75 74 20 72 6f 75 74 |annel input rout| 00000d40 69 6e 65 20 69 73 20 65 6e 74 65 72 65 64 2e 20 |ine is entered. | 00000d50 0d 20 0d 37 2e 20 20 54 68 65 20 20 43 4c 49 45 |. .7. The CLIE| 00000d60 4e 54 20 20 70 6f 6c 6c 73 20 20 62 6f 74 68 20 |NT polls both | 00000d70 20 72 65 63 65 69 76 65 20 20 62 6c 6f 63 6b 73 | receive blocks| 00000d80 20 20 66 6f 72 20 61 20 70 61 67 65 20 28 70 6f | for a page (po| 00000d90 72 74 20 26 42 34 29 20 61 6e 64 20 66 6f 72 20 |rt &B4) and for | 00000da0 61 20 0d 20 20 20 20 68 65 61 64 65 72 20 28 70 |a . header (p| 00000db0 6f 72 74 20 26 42 35 29 2c 20 75 6e 74 69 6c 20 |ort &B5), until | 00000dc0 6f 6e 65 20 6f 72 20 74 68 65 20 6f 74 68 65 72 |one or the other| 00000dd0 20 72 65 63 65 69 76 65 73 20 61 20 74 72 61 6e | receives a tran| 00000de0 73 6d 69 73 73 69 6f 6e 2e 20 0d 20 0d 38 2e 20 |smission. . .8. | 00000df0 20 49 66 20 61 20 70 61 67 65 20 68 65 61 64 65 | If a page heade| 00000e00 72 20 69 73 20 72 65 63 65 69 76 65 64 20 74 68 |r is received th| 00000e10 65 6e 20 20 74 68 65 20 20 63 75 72 73 6f 72 20 |en the cursor | 00000e20 20 69 73 20 20 6d 6f 76 65 64 20 20 74 6f 20 20 | is moved to | 00000e30 74 68 65 20 20 68 65 61 64 65 72 20 0d 20 20 20 |the header . | 00000e40 20 70 6f 73 69 74 69 6f 6e 20 20 61 6e 64 20 69 | position and i| 00000e50 74 20 69 73 20 70 72 69 6e 74 65 64 20 6f 75 74 |t is printed out| 00000e60 2e 20 41 6e 20 69 64 65 6e 74 69 63 61 6c 20 72 |. An identical r| 00000e70 65 63 65 69 76 65 20 62 6c 6f 63 6b 20 69 73 20 |eceive block is | 00000e80 74 68 65 6e 20 73 65 74 20 75 70 20 0d 20 20 20 |then set up . | 00000e90 20 74 6f 20 72 65 70 6c 61 63 65 20 74 68 65 20 | to replace the | 00000ea0 6f 6e 65 20 77 68 69 63 68 20 68 61 73 20 62 65 |one which has be| 00000eb0 65 6e 20 75 73 65 64 2e 20 0d 20 0d 39 2e 20 20 |en used. . .9. | 00000ec0 49 66 20 61 20 72 65 71 75 65 73 74 65 64 20 70 |If a requested p| 00000ed0 61 67 65 20 69 73 20 72 65 63 65 69 76 65 64 20 |age is received | 00000ee0 74 68 65 20 66 69 72 73 74 20 61 63 74 69 6f 6e |the first action| 00000ef0 20 69 73 20 74 6f 20 20 74 65 73 74 20 20 74 68 | is to test th| 00000f00 65 20 20 63 6f 6e 74 72 6f 6c 20 0d 20 20 20 20 |e control . | 00000f10 62 79 74 65 2e 20 20 49 66 20 20 74 68 69 73 20 |byte. If this | 00000f20 69 73 20 26 38 30 20 74 68 65 6e 20 69 74 20 69 |is &80 then it i| 00000f30 6e 64 69 63 61 74 65 73 20 74 68 65 20 70 61 67 |ndicates the pag| 00000f40 65 20 68 61 73 20 62 65 65 6e 20 66 6f 75 6e 64 |e has been found| 00000f50 20 61 6e 64 20 69 73 20 69 6e 20 0d 20 20 20 20 | and is in . | 00000f60 74 68 65 20 72 65 63 65 69 76 65 20 62 6c 6f 63 |the receive bloc| 00000f70 6b 20 62 75 66 66 65 72 20 72 65 61 64 79 20 74 |k buffer ready t| 00000f80 6f 20 62 65 20 74 72 61 6e 73 66 65 72 72 65 64 |o be transferred| 00000f90 20 74 6f 20 20 74 68 65 20 20 73 63 72 65 65 6e | to the screen| 00000fa0 2e 20 20 49 66 20 20 74 68 65 20 0d 20 20 20 20 |. If the . | 00000fb0 63 6f 6e 74 72 6f 6c 20 20 62 79 74 65 20 20 69 |control byte i| 00000fc0 73 20 26 38 31 20 74 68 65 6e 20 74 68 69 73 20 |s &81 then this | 00000fd0 69 6e 64 69 63 61 74 65 73 20 73 6f 6d 65 20 65 |indicates some e| 00000fe0 72 72 6f 72 20 68 61 73 20 6f 63 63 75 72 72 65 |rror has occurre| 00000ff0 64 20 61 6e 64 20 74 68 61 74 20 0d 20 20 20 20 |d and that . | 00001000 61 6e 20 65 72 72 6f 72 20 6d 65 73 73 61 67 65 |an error message| 00001010 20 69 73 20 69 6e 20 74 68 65 20 72 65 63 65 69 | is in the recei| 00001020 76 65 20 62 6c 6f 63 6b 20 62 75 66 66 65 72 20 |ve block buffer | 00001030 77 61 69 74 69 6e 67 20 74 6f 20 62 65 20 70 72 |waiting to be pr| 00001040 69 6e 74 65 64 2e 20 0d 0d 31 30 2e 20 49 66 20 |inted. ..10. If | 00001050 20 61 6e 20 20 65 72 72 6f 72 20 68 61 73 20 6f | an error has o| 00001060 63 63 75 72 72 65 64 20 74 68 65 6e 20 74 68 65 |ccurred then the| 00001070 20 65 72 72 6f 72 20 6d 65 73 73 61 67 65 20 69 | error message i| 00001080 73 20 70 72 69 6e 74 65 64 20 61 74 20 74 68 65 |s printed at the| 00001090 20 62 6f 74 74 6f 6d 20 0d 20 20 20 20 6f 66 20 | bottom . of | 000010a0 74 68 65 20 73 63 72 65 65 6e 20 61 6e 64 20 74 |the screen and t| 000010b0 68 65 20 43 4c 49 45 4e 54 20 20 70 72 6f 67 72 |he CLIENT progr| 000010c0 61 6d 20 20 6a 75 6d 70 73 20 20 74 6f 20 20 74 |am jumps to t| 000010d0 68 65 20 20 70 61 67 65 20 20 6e 75 6d 62 65 72 |he page number| 000010e0 20 20 69 6e 70 75 74 20 0d 20 20 20 20 72 6f 75 | input . rou| 000010f0 74 69 6e 65 20 20 74 6f 20 67 65 74 20 61 6e 6f |tine to get ano| 00001100 74 68 65 72 20 70 61 67 65 20 6e 75 6d 62 65 72 |ther page number| 00001110 2e 20 41 20 6e 65 77 20 72 65 63 65 69 76 65 20 |. A new receive | 00001120 62 6c 6f 63 6b 20 66 6f 72 20 61 20 70 61 67 65 |block for a page| 00001130 20 69 73 20 73 65 74 20 0d 20 20 20 20 75 70 2e | is set . up.| 00001140 20 0d 20 0d 31 31 2e 20 49 66 20 61 20 70 61 67 | . .11. If a pag| 00001150 65 20 69 73 20 73 75 63 63 65 73 73 66 75 6c 6c |e is successfull| 00001160 79 20 72 65 63 65 69 76 65 64 20 74 68 65 6e 20 |y received then | 00001170 69 74 20 69 73 20 20 64 69 73 70 6c 61 79 65 64 |it is displayed| 00001180 2e 20 20 41 20 20 6e 65 77 20 20 72 65 63 65 69 |. A new recei| 00001190 76 65 20 0d 20 20 20 20 62 6c 6f 63 6b 20 20 66 |ve . block f| 000011a0 6f 72 20 20 61 20 20 70 61 67 65 20 20 69 73 20 |or a page is | 000011b0 20 73 65 74 20 20 75 70 2e 20 54 68 65 20 68 65 | set up. The he| 000011c0 61 64 65 72 20 72 65 63 65 69 76 65 20 62 6c 6f |ader receive blo| 000011d0 63 6b 20 63 6f 6e 74 69 6e 75 65 73 20 74 6f 20 |ck continues to | 000011e0 62 65 20 0d 20 20 20 20 70 6f 6c 6c 65 64 20 61 |be . polled a| 000011f0 6e 64 20 64 69 73 70 6c 61 79 65 64 20 75 6e 74 |nd displayed unt| 00001200 69 6c 20 61 20 6b 65 79 20 69 73 20 70 72 65 73 |il a key is pres| 00001210 73 65 64 2e 20 0d 20 0d 31 32 2e 20 41 6c 6c 20 |sed. . .12. All | 00001220 20 74 68 65 20 20 74 69 6d 65 20 74 68 65 20 72 | the time the r| 00001230 65 63 65 69 76 65 20 62 6c 6f 63 6b 73 20 61 72 |eceive blocks ar| 00001240 65 20 62 65 69 6e 67 20 70 6f 6c 6c 65 64 20 74 |e being polled t| 00001250 68 65 20 43 4c 49 45 4e 54 20 70 72 6f 67 72 61 |he CLIENT progra| 00001260 6d 20 61 6c 73 6f 20 0d 20 20 20 20 74 65 73 74 |m also . test| 00001270 73 20 74 6f 20 73 65 65 20 69 66 20 61 20 6b 65 |s to see if a ke| 00001280 79 20 68 61 73 20 62 65 65 6e 20 70 72 65 73 73 |y has been press| 00001290 65 64 2e 20 49 66 20 61 20 6b 65 79 20 69 73 20 |ed. If a key is | 000012a0 70 72 65 73 73 65 64 20 74 68 69 73 20 69 73 20 |pressed this is | 000012b0 20 74 61 6b 65 6e 20 0d 20 20 20 20 74 6f 20 20 | taken . to | 000012c0 6d 65 61 6e 20 20 74 68 61 74 20 79 6f 75 20 61 |mean that you a| 000012d0 72 65 20 61 62 6f 75 74 20 74 6f 20 72 65 71 75 |re about to requ| 000012e0 65 73 74 20 61 20 6e 65 77 20 70 61 67 65 2e 20 |est a new page. | 000012f0 49 66 20 27 43 27 20 69 73 20 70 72 65 73 73 65 |If 'C' is presse| 00001300 64 20 74 68 65 6e 20 0d 20 20 20 20 74 68 65 20 |d then . the | 00001310 69 6e 70 75 74 20 63 68 61 6e 6e 65 6c 20 72 6f |input channel ro| 00001320 75 74 69 6e 65 20 69 73 20 65 6e 74 65 72 65 64 |utine is entered| 00001330 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 74 68 65 | followed by the| 00001340 20 69 6e 70 75 74 20 20 70 61 67 65 20 20 72 6f | input page ro| 00001350 75 74 69 6e 65 2e 20 0d 20 20 20 20 49 66 20 20 |utine. . If | 00001360 3c 52 45 54 55 52 4e 3e 20 20 69 73 20 20 70 72 |<RETURN> is pr| 00001370 65 73 73 65 64 20 20 74 68 65 6e 20 20 74 68 65 |essed then the| 00001380 20 20 6c 61 73 74 20 70 61 67 65 20 79 6f 75 20 | last page you | 00001390 72 65 71 75 65 73 74 65 64 20 69 73 20 72 65 71 |requested is req| 000013a0 75 65 73 74 65 64 20 0d 20 20 20 20 61 67 61 69 |uested . agai| 000013b0 6e 2e 20 49 66 20 27 52 27 20 69 73 20 70 72 65 |n. If 'R' is pre| 000013c0 73 73 65 64 20 74 68 65 20 27 52 45 56 45 41 4c |ssed the 'REVEAL| 000013d0 27 20 72 6f 75 74 69 6e 65 20 69 73 20 63 61 6c |' routine is cal| 000013e0 6c 65 64 20 61 6e 64 20 20 74 68 69 73 20 20 74 |led and this t| 000013f0 6f 67 67 6c 65 73 20 0d 20 20 20 20 62 65 74 77 |oggles . betw| 00001400 65 65 6e 20 20 72 65 76 65 61 6c 69 6e 67 20 61 |een revealing a| 00001410 6e 64 20 63 6f 6e 63 65 61 6c 69 6e 67 2e 20 49 |nd concealing. I| 00001420 66 20 27 2a 27 20 69 73 20 70 72 65 73 73 65 64 |f '*' is pressed| 00001430 20 74 68 65 6e 20 74 68 65 20 73 74 61 72 20 63 | then the star c| 00001440 6f 6d 6d 61 6e 64 20 0d 20 20 20 20 72 6f 75 74 |ommand . rout| 00001450 69 6e 65 20 69 73 20 65 6e 74 65 72 65 64 2e 20 |ine is entered. | 00001460 54 68 69 73 20 61 6c 6c 6f 77 73 20 74 68 65 20 |This allows the | 00001470 43 4c 49 45 4e 54 20 74 6f 20 20 2a 53 41 56 45 |CLIENT to *SAVE| 00001480 20 20 70 61 67 65 73 20 20 65 74 63 2e 20 20 49 | pages etc. I| 00001490 66 20 20 61 6e 79 20 0d 20 20 20 20 6f 74 68 65 |f any . othe| 000014a0 72 20 6b 65 79 20 69 73 20 70 72 65 73 73 65 64 |r key is pressed| 000014b0 20 74 68 65 20 70 61 67 65 20 69 6e 70 75 74 20 | the page input | 000014c0 72 6f 75 74 69 6e 65 20 69 73 20 65 6e 74 65 72 |routine is enter| 000014d0 65 64 2e 20 0d 20 0d 31 33 2e 20 54 68 65 20 20 |ed. . .13. The | 000014e0 66 69 72 73 74 20 20 61 63 74 69 6f 6e 20 74 61 |first action ta| 000014f0 6b 65 6e 20 62 79 20 62 6f 74 68 20 74 68 65 20 |ken by both the | 00001500 63 68 61 6e 6e 65 6c 20 69 6e 70 75 74 20 61 6e |channel input an| 00001510 64 20 70 61 67 65 20 69 6e 70 75 74 20 72 6f 75 |d page input rou| 00001520 74 69 6e 65 73 20 0d 20 20 20 20 69 73 20 74 6f |tines . is to| 00001530 20 73 65 6e 64 20 61 20 27 63 61 6e 63 65 6c 20 | send a 'cancel | 00001540 70 61 67 65 20 72 65 71 75 65 73 74 27 20 74 6f |page request' to| 00001550 20 20 74 68 65 20 20 53 45 52 56 45 52 20 20 61 | the SERVER a| 00001560 6e 64 20 20 74 68 65 6e 20 20 64 65 6c 65 74 65 |nd then delete| 00001570 20 20 74 68 65 20 0d 20 20 20 20 63 75 72 72 65 | the . curre| 00001580 6e 74 20 20 70 61 67 65 20 20 72 65 63 65 69 76 |nt page receiv| 00001590 65 20 62 6c 6f 63 6b 2e 20 54 68 69 73 20 6d 65 |e block. This me| 000015a0 61 6e 73 20 74 68 65 20 53 45 52 56 45 52 20 77 |ans the SERVER w| 000015b0 69 6c 6c 20 6e 6f 20 6c 6f 6e 67 65 72 20 68 61 |ill no longer ha| 000015c0 76 65 20 74 6f 20 0d 20 20 20 20 62 6f 74 68 65 |ve to . bothe| 000015d0 72 20 74 72 79 69 6e 67 20 74 6f 20 66 69 6e 64 |r trying to find| 000015e0 20 79 6f 75 72 20 6c 61 73 74 20 72 65 71 75 65 | your last reque| 000015f0 73 74 65 64 20 70 61 67 65 2e 20 54 68 65 20 70 |sted page. The p| 00001600 72 6f 6d 70 74 20 66 6f 72 20 20 61 20 20 63 68 |rompt for a ch| 00001610 61 6e 6e 65 6c 20 0d 20 20 20 20 69 6e 70 75 74 |annel . input| 00001620 20 69 73 20 27 43 27 20 61 6e 64 20 66 6f 72 20 | is 'C' and for | 00001630 61 20 70 61 67 65 20 69 6e 70 75 74 20 69 73 20 |a page input is | 00001640 27 50 27 2e 20 42 6f 74 68 20 72 6f 75 74 69 6e |'P'. Both routin| 00001650 65 73 20 6d 61 6b 65 20 75 73 65 20 6f 66 20 4f |es make use of O| 00001660 53 57 4f 52 44 20 0d 20 20 20 20 30 20 74 6f 20 |SWORD . 0 to | 00001670 72 65 61 64 20 61 20 6c 69 6e 65 20 6f 66 20 69 |read a line of i| 00001680 6e 70 75 74 20 61 6e 64 20 73 6f 20 20 62 6f 74 |nput and so bot| 00001690 68 20 20 6e 65 65 64 20 20 74 6f 20 20 62 65 20 |h need to be | 000016a0 20 65 78 69 74 65 64 20 20 62 79 20 20 70 72 65 | exited by pre| 000016b0 73 73 69 6e 67 20 0d 20 20 20 20 3c 52 45 54 55 |ssing . <RETU| 000016c0 52 4e 3e 2e 20 20 41 20 6e 65 77 20 72 65 63 65 |RN>. A new rece| 000016d0 69 76 65 20 70 61 67 65 20 62 6c 6f 63 6b 20 69 |ive page block i| 000016e0 73 20 73 65 74 20 75 70 20 61 6e 64 20 74 68 65 |s set up and the| 000016f0 6e 20 74 68 65 20 6e 65 77 20 70 61 67 65 20 6e |n the new page n| 00001700 75 6d 62 65 72 20 0d 20 20 20 20 69 73 20 74 72 |umber . is tr| 00001710 61 6e 73 6d 69 74 74 65 64 20 74 6f 20 74 68 65 |ansmitted to the| 00001720 20 53 45 52 56 45 52 2e 20 0d 20 0d 31 34 2e 20 | SERVER. . .14. | 00001730 54 68 65 20 65 73 63 61 70 65 20 66 6c 61 67 20 |The escape flag | 00001740 69 73 20 63 6f 6e 74 69 6e 75 61 6c 6c 79 20 70 |is continually p| 00001750 6f 6c 6c 65 64 20 73 6f 20 74 68 61 74 20 74 68 |olled so that th| 00001760 65 20 43 4c 49 45 4e 54 20 63 61 6e 20 65 78 69 |e CLIENT can exi| 00001770 74 20 20 61 74 20 20 61 6e 79 20 0d 20 20 20 20 |t at any . | 00001780 74 69 6d 65 20 20 62 79 20 20 70 72 65 73 73 69 |time by pressi| 00001790 6e 67 20 20 3c 45 53 43 41 50 45 3e 2e 20 20 54 |ng <ESCAPE>. T| 000017a0 68 69 73 20 20 77 69 6c 6c 20 73 65 6e 64 20 61 |his will send a| 000017b0 20 6c 6f 67 6f 66 66 20 69 6e 73 74 72 75 63 74 | logoff instruct| 000017c0 69 6f 6e 20 74 6f 20 74 68 65 20 0d 20 20 20 20 |ion to the . | 000017d0 53 45 52 56 45 52 20 77 68 69 63 68 20 73 74 6f |SERVER which sto| 000017e0 70 73 20 69 74 20 6c 6f 6f 6b 69 6e 67 20 66 6f |ps it looking fo| 000017f0 72 20 61 6e 79 20 6d 6f 72 65 20 20 70 61 67 65 |r any more page| 00001800 73 20 20 66 6f 72 20 20 79 6f 75 2e 20 20 41 6c |s for you. Al| 00001810 6c 20 20 72 65 63 65 69 76 65 20 0d 20 20 20 20 |l receive . | 00001820 62 6c 6f 63 6b 73 20 61 72 65 20 64 65 6c 65 74 |blocks are delet| 00001830 65 64 2e 20 0d 20 0d 0d 20 20 20 20 20 20 20 20 |ed. . .. | 00001840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001850 20 20 20 20 20 20 20 20 20 20 53 75 62 2d 70 61 | Sub-pa| 00001860 67 65 73 20 0d 20 0d 20 0d 4f 6e 65 20 20 6f 66 |ges . . .One of| 00001870 20 20 74 68 65 20 66 65 61 74 75 72 65 73 20 6f | the features o| 00001880 66 20 74 68 65 20 6e 6f 72 6d 61 6c 20 75 73 65 |f the normal use| 00001890 20 6f 66 20 74 65 6c 65 74 65 78 74 20 69 73 20 | of teletext is | 000018a0 74 68 61 74 20 70 61 67 65 73 20 77 69 6c 6c 20 |that pages will | 000018b0 72 6f 6c 6c 20 73 6f 20 0d 74 68 61 74 20 74 68 |roll so .that th| 000018c0 65 79 20 61 72 65 20 63 6f 6e 73 74 61 6e 74 6c |ey are constantl| 000018d0 79 20 75 70 64 61 74 65 64 20 65 67 2e 20 66 6f |y updated eg. fo| 000018e0 72 20 63 72 69 63 6b 65 74 20 73 63 6f 72 65 73 |r cricket scores| 000018f0 20 20 6f 72 20 20 70 61 67 65 73 20 20 77 69 74 | or pages wit| 00001900 68 20 20 6d 6f 72 65 20 0d 74 68 61 6e 20 6f 6e |h more .than on| 00001910 65 20 73 63 72 65 65 6e 20 6f 66 20 69 6e 66 6f |e screen of info| 00001920 72 6d 61 74 69 6f 6e 2e 20 41 6e 20 61 70 70 72 |rmation. An appr| 00001930 6f 78 69 6d 61 74 69 6f 6e 20 74 6f 20 74 68 69 |oximation to thi| 00001940 73 20 66 61 63 69 6c 69 74 79 20 69 73 20 61 76 |s facility is av| 00001950 61 69 6c 61 62 6c 65 20 0d 66 72 6f 6d 20 74 68 |ailable .from th| 00001960 65 20 53 45 52 56 45 52 2e 20 50 72 65 73 73 69 |e SERVER. Pressi| 00001970 6e 67 20 27 53 27 20 77 69 6c 6c 20 65 6e 61 62 |ng 'S' will enab| 00001980 6c 65 20 74 68 65 20 61 75 74 6f 6d 61 74 69 63 |le the automatic| 00001990 20 72 6f 6c 6c 69 6e 67 20 6f 66 20 20 73 75 62 | rolling of sub| 000019a0 2d 70 61 67 65 73 2e 20 0d 54 68 69 73 20 20 69 |-pages. .This i| 000019b0 73 20 20 64 6f 6e 65 20 20 62 79 20 20 61 20 63 |s done by a c| 000019c0 61 6c 6c 20 74 6f 20 74 68 65 20 53 45 52 56 45 |all to the SERVE| 000019d0 52 20 77 68 69 63 68 20 73 69 67 6e 61 6c 73 20 |R which signals | 000019e0 74 68 61 74 20 74 68 65 20 72 65 71 75 65 73 74 |that the request| 000019f0 65 64 20 70 61 67 65 20 0d 6d 75 73 74 20 6e 6f |ed page .must no| 00001a00 74 20 62 65 20 73 65 6e 74 20 75 6e 74 69 6c 20 |t be sent until | 00001a10 61 74 20 6c 65 61 73 74 20 30 2e 35 20 6f 66 20 |at least 0.5 of | 00001a20 74 68 65 20 63 79 63 6c 65 20 74 69 6d 65 20 68 |the cycle time h| 00001a30 61 73 20 20 65 6c 61 70 73 65 64 2e 20 20 41 75 |as elapsed. Au| 00001a40 74 6f 6d 61 74 69 63 20 0d 72 6f 6c 6c 69 6e 67 |tomatic .rolling| 00001a50 20 20 6f 66 20 20 73 75 62 2d 70 61 67 65 73 20 | of sub-pages | 00001a60 20 63 61 6e 20 20 62 65 20 20 64 69 73 61 62 6c | can be disabl| 00001a70 65 64 20 20 62 79 20 20 70 72 65 73 73 69 6e 67 |ed by pressing| 00001a80 20 27 53 27 20 61 67 61 69 6e 2e 20 45 6e 61 62 | 'S' again. Enab| 00001a90 6c 69 6e 67 20 69 73 20 0d 73 69 67 6e 61 6c 6c |ling is .signall| 00001aa0 65 64 20 62 79 20 61 20 68 69 67 68 20 62 65 65 |ed by a high bee| 00001ab0 70 20 61 6e 64 20 64 69 73 61 62 6c 69 6e 67 20 |p and disabling | 00001ac0 62 79 20 61 20 6c 6f 77 20 62 65 65 70 2e 20 54 |by a low beep. T| 00001ad0 68 65 20 72 6f 6c 6c 69 6e 67 20 69 73 20 20 64 |he rolling is d| 00001ae0 69 73 61 62 6c 65 64 20 0d 77 68 65 6e 65 76 65 |isabled .wheneve| 00001af0 72 20 61 20 6e 65 77 20 70 61 67 65 20 69 73 20 |r a new page is | 00001b00 72 65 71 75 65 73 74 65 64 2e 20 0d 20 0d 54 68 |requested. . .Th| 00001b10 69 73 20 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 |is implementati| 00001b20 6f 6e 20 20 6f 66 20 73 75 62 2d 70 61 67 65 73 |on of sub-pages| 00001b30 20 69 73 20 61 20 63 6f 6d 70 72 6f 6d 69 73 65 | is a compromise| 00001b40 20 69 6e 20 74 68 61 74 20 61 73 20 6d 6f 72 65 | in that as more| 00001b50 20 63 6c 69 65 6e 74 73 20 75 73 65 20 0d 74 68 | clients use .th| 00001b60 69 73 20 66 65 61 74 75 72 65 20 74 68 65 20 6d |is feature the m| 00001b70 6f 72 65 20 66 75 6c 6c 20 77 69 6c 6c 20 62 65 |ore full will be| 00001b80 20 74 68 65 20 20 71 75 65 75 65 73 20 20 61 6e | the queues an| 00001b90 64 20 20 69 74 20 20 69 73 20 20 66 6f 72 20 20 |d it is for | 00001ba0 74 68 69 73 20 20 72 65 61 73 6f 6e 20 0d 61 75 |this reason .au| 00001bb0 74 6f 6d 61 74 69 63 20 72 6f 6c 6c 69 6e 67 20 |tomatic rolling | 00001bc0 6d 75 73 74 20 62 65 20 64 65 6c 69 62 65 72 61 |must be delibera| 00001bd0 74 65 6c 79 20 73 65 6c 65 63 74 65 64 20 66 6f |tely selected fo| 00001be0 72 20 65 76 65 72 79 20 6e 65 77 20 70 61 67 65 |r every new page| 00001bf0 2e 20 49 74 20 69 73 20 61 6c 73 6f 20 0d 6e 6f |. It is also .no| 00001c00 74 20 70 6f 73 73 69 62 6c 65 20 74 6f 20 67 75 |t possible to gu| 00001c10 61 72 61 6e 74 65 65 20 74 68 61 74 20 79 6f 75 |arantee that you| 00001c20 20 77 69 6c 6c 20 67 65 74 20 74 68 65 20 69 6d | will get the im| 00001c30 6d 65 64 69 61 74 65 6c 79 20 66 6f 6c 6c 6f 77 |mediately follow| 00001c40 69 6e 67 20 73 75 62 2d 70 61 67 65 20 0d 69 6e |ing sub-page .in| 00001c50 20 74 68 65 20 73 65 71 75 65 6e 63 65 2e 20 0d | the sequence. .| 00001c60 20 0d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | . | 00001c70 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001c80 20 54 68 65 20 54 46 53 20 70 72 6f 67 72 61 6d | The TFS program| 00001c90 20 0d 20 0d 54 68 69 73 20 70 72 6f 67 72 61 6d | . .This program| 00001ca0 20 6d 61 6b 65 73 20 61 73 20 66 75 6c 6c 20 75 | makes as full u| 00001cb0 73 65 20 61 73 20 70 6f 73 73 69 62 6c 65 20 6f |se as possible o| 00001cc0 66 20 74 68 65 20 41 54 46 53 20 72 6f 6d 27 73 |f the ATFS rom's| 00001cd0 20 61 62 69 6c 69 74 79 20 74 6f 20 73 65 61 72 | ability to sear| 00001ce0 63 68 20 0d 66 6f 72 20 73 65 76 65 72 61 6c 20 |ch .for several | 00001cf0 70 61 67 65 73 20 61 74 20 6f 6e 63 65 2e 20 54 |pages at once. T| 00001d00 68 65 20 74 68 65 6f 72 65 74 69 63 61 6c 20 6d |he theoretical m| 00001d10 61 78 69 6d 75 6d 20 69 73 20 32 30 20 61 74 20 |aximum is 20 at | 00001d20 6f 6e 63 65 20 62 75 74 20 74 68 65 20 20 73 69 |once but the si| 00001d30 7a 65 20 0d 6f 66 20 20 74 68 65 20 20 54 46 53 |ze .of the TFS| 00001d40 20 20 70 72 6f 67 72 61 6d 20 20 6c 69 6d 69 74 | program limit| 00001d50 73 20 74 68 69 73 20 74 6f 20 61 62 6f 75 74 20 |s this to about | 00001d60 31 30 2e 20 54 68 65 20 6d 61 69 6e 20 70 72 6f |10. The main pro| 00001d70 62 6c 65 6d 20 69 73 20 74 68 61 74 20 69 74 20 |blem is that it | 00001d80 69 73 20 0d 6f 6e 6c 79 20 70 6f 73 73 69 62 6c |is .only possibl| 00001d90 65 20 74 6f 20 73 65 61 72 63 68 20 66 6f 72 20 |e to search for | 00001da0 70 61 67 65 73 20 6f 6e 20 6f 6e 65 20 63 68 61 |pages on one cha| 00001db0 6e 6e 65 6c 20 61 74 20 61 20 74 69 6d 65 20 61 |nnel at a time a| 00001dc0 6e 64 20 73 6f 6d 65 20 77 61 79 20 68 61 73 20 |nd some way has | 00001dd0 74 6f 20 0d 62 65 20 66 6f 75 6e 64 20 74 6f 20 |to .be found to | 00001de0 64 65 61 6c 20 77 69 74 68 20 74 68 69 73 2e 20 |deal with this. | 00001df0 0d 20 0d 54 68 65 20 20 61 70 70 72 6f 61 63 68 |. .The approach| 00001e00 20 61 64 6f 70 74 65 64 20 69 73 20 74 6f 20 70 | adopted is to p| 00001e10 6c 61 63 65 20 61 20 70 61 67 65 20 72 65 71 75 |lace a page requ| 00001e20 65 73 74 20 69 6e 74 6f 20 6f 6e 65 20 6f 66 20 |est into one of | 00001e30 34 20 71 75 65 75 65 73 2c 20 6f 6e 65 20 66 6f |4 queues, one fo| 00001e40 72 20 0d 65 61 63 68 20 63 68 61 6e 6e 65 6c 2e |r .each channel.| 00001e50 20 49 66 20 74 68 65 20 6e 75 6d 62 65 72 20 6f | If the number o| 00001e60 66 20 70 61 67 65 73 20 69 6e 20 61 20 71 75 65 |f pages in a que| 00001e70 75 65 20 65 78 63 65 65 64 73 20 74 68 65 20 6d |ue exceeds the m| 00001e80 61 78 69 6d 75 6d 20 6e 75 6d 62 65 72 20 20 6f |aximum number o| 00001e90 66 20 0d 70 61 67 65 73 20 20 66 6f 72 20 20 77 |f .pages for w| 00001ea0 68 69 63 68 20 20 74 68 65 20 20 41 54 46 53 20 |hich the ATFS | 00001eb0 72 6f 6d 20 68 61 73 20 73 70 61 63 65 20 74 68 |rom has space th| 00001ec0 65 6e 20 61 20 27 43 68 61 6e 6e 65 6c 20 62 75 |en a 'Channel bu| 00001ed0 73 79 27 20 65 72 72 6f 72 20 77 69 6c 6c 20 62 |sy' error will b| 00001ee0 65 20 0d 72 65 74 75 72 6e 65 64 2e 20 54 68 69 |e .returned. Thi| 00001ef0 73 20 6d 61 78 69 6d 75 6d 20 6e 75 6d 62 65 72 |s maximum number| 00001f00 20 6f 66 20 70 61 67 65 73 20 69 73 20 74 68 65 | of pages is the| 00001f10 20 6e 75 6d 62 65 72 20 72 65 74 75 72 6e 65 64 | number returned| 00001f20 20 62 79 20 74 68 65 20 6d 61 78 20 75 73 65 72 | by the max user| 00001f30 73 20 0d 70 65 72 20 20 63 68 61 6e 6e 65 6c 20 |s .per channel | 00001f40 63 61 6c 6c 2e 20 41 20 72 65 63 6f 72 64 20 69 |call. A record i| 00001f50 73 20 6b 65 70 74 20 6f 66 20 74 68 65 20 74 6f |s kept of the to| 00001f60 74 61 6c 20 6e 75 6d 62 65 72 20 6f 66 20 70 61 |tal number of pa| 00001f70 67 65 73 20 72 65 71 75 65 73 74 65 64 20 61 6e |ges requested an| 00001f80 64 20 0d 74 68 69 73 20 69 73 20 74 68 65 20 71 |d .this is the q| 00001f90 75 65 75 65 20 70 6f 73 69 74 69 6f 6e 20 72 65 |ueue position re| 00001fa0 74 75 72 6e 65 64 20 74 6f 20 74 68 65 20 43 4c |turned to the CL| 00001fb0 49 45 4e 54 20 69 65 20 74 68 69 73 20 69 73 20 |IENT ie this is | 00001fc0 74 68 65 20 6f 76 65 72 61 6c 6c 20 71 75 65 75 |the overall queu| 00001fd0 65 20 0d 70 6f 73 69 74 69 6f 6e 20 61 6e 64 20 |e .position and | 00001fe0 6e 6f 74 20 74 68 65 20 70 6f 73 69 74 69 6f 6e |not the position| 00001ff0 20 69 6e 20 74 68 65 20 71 75 65 75 65 20 66 6f | in the queue fo| 00002000 72 20 61 20 70 61 72 74 69 63 75 6c 61 72 20 63 |r a particular c| 00002010 68 61 6e 6e 65 6c 2e 20 0d 57 68 65 6e 65 76 65 |hannel. .Wheneve| 00002020 72 20 61 20 70 61 67 65 20 72 65 71 75 65 73 74 |r a page request| 00002030 20 69 73 20 72 65 63 65 69 76 65 64 20 74 68 65 | is received the| 00002040 20 77 68 6f 6c 65 20 71 75 65 75 65 20 69 73 20 | whole queue is | 00002050 63 68 65 63 6b 65 64 20 74 6f 20 73 65 65 20 69 |checked to see i| 00002060 66 20 20 74 68 61 74 20 0d 43 4c 49 45 4e 54 20 |f that .CLIENT | 00002070 20 28 69 64 65 6e 74 69 66 69 65 64 20 20 62 79 | (identified by| 00002080 20 20 74 68 65 20 20 73 74 61 74 69 6f 6e 20 6e | the station n| 00002090 75 6d 62 65 72 29 20 68 61 73 20 61 6e 79 20 6f |umber) has any o| 000020a0 74 68 65 72 20 70 61 67 65 20 72 65 71 75 65 73 |ther page reques| 000020b0 74 65 64 2e 20 49 66 20 0d 74 68 69 73 20 69 73 |ted. If .this is| 000020c0 20 74 68 65 20 63 61 73 65 20 74 68 65 6e 20 74 | the case then t| 000020d0 68 61 74 20 70 61 67 65 20 69 73 20 64 72 6f 70 |hat page is drop| 000020e0 70 65 64 20 66 72 6f 6d 20 74 68 65 20 20 71 75 |ped from the qu| 000020f0 65 75 65 2e 20 20 54 68 75 73 20 20 69 74 20 20 |eue. Thus it | 00002100 69 73 20 20 6e 6f 74 20 0d 70 6f 73 73 69 62 6c |is not .possibl| 00002110 65 20 20 66 6f 72 20 20 61 20 20 43 4c 49 45 4e |e for a CLIEN| 00002120 54 20 20 74 6f 20 72 65 71 75 65 73 74 20 6d 6f |T to request mo| 00002130 72 65 20 74 68 61 6e 20 6f 6e 65 20 70 61 67 65 |re than one page| 00002140 20 61 74 20 6f 6e 63 65 2e 20 41 20 63 61 6e 63 | at once. A canc| 00002150 65 6c 20 70 61 67 65 20 0d 72 65 71 75 65 73 74 |el page .request| 00002160 20 6f 72 20 61 20 6c 6f 67 6f 66 66 20 77 69 6c | or a logoff wil| 00002170 6c 20 72 65 73 75 6c 74 20 69 6e 20 61 6c 6c 20 |l result in all | 00002180 70 61 67 65 20 72 65 71 75 65 73 74 73 20 20 66 |page requests f| 00002190 6f 72 20 20 74 68 61 74 20 20 43 4c 49 45 4e 54 |or that CLIENT| 000021a0 20 20 62 65 69 6e 67 20 0d 64 72 6f 70 70 65 64 | being .dropped| 000021b0 20 66 72 6f 6d 20 74 68 65 20 71 75 65 75 65 2e | from the queue.| 000021c0 20 0d 20 0d 54 68 65 20 20 77 61 79 20 20 74 68 | . .The way th| 000021d0 65 20 20 41 54 46 53 20 20 72 6f 6d 20 20 77 6f |e ATFS rom wo| 000021e0 72 6b 73 20 6d 65 61 6e 73 20 74 68 61 74 20 69 |rks means that i| 000021f0 66 20 79 6f 75 20 61 72 65 20 33 72 64 20 69 6e |f you are 3rd in| 00002200 20 74 68 65 20 71 75 65 75 65 20 79 6f 75 20 6d | the queue you m| 00002210 61 79 20 0d 73 74 69 6c 6c 20 72 65 63 65 69 76 |ay .still receiv| 00002220 65 20 79 6f 75 72 20 70 61 67 65 20 62 65 66 6f |e your page befo| 00002230 72 65 20 74 68 65 20 43 4c 49 45 4e 54 20 77 68 |re the CLIENT wh| 00002240 6f 20 69 73 20 20 69 6e 20 20 31 73 74 20 20 70 |o is in 1st p| 00002250 6f 73 69 74 69 6f 6e 2e 20 20 54 68 69 73 20 20 |osition. This | 00002260 69 73 20 0d 70 72 6f 62 61 62 6c 79 20 62 65 73 |is .probably bes| 00002270 74 20 69 6c 6c 75 73 74 72 61 74 65 64 20 62 79 |t illustrated by| 00002280 20 65 78 61 6d 70 6c 65 2e 20 0d 20 0d 53 75 70 | example. . .Sup| 00002290 70 6f 73 65 20 74 68 65 20 66 6f 6c 6c 6f 77 69 |pose the followi| 000022a0 6e 67 20 72 65 71 75 65 73 74 73 20 61 72 65 20 |ng requests are | 000022b0 69 73 73 75 65 64 20 3a 20 0d 20 0d 53 74 61 74 |issued : . .Stat| 000022c0 69 6f 6e 20 31 32 20 70 61 67 65 20 31 37 30 20 |ion 12 page 170 | 000022d0 6f 6e 20 63 68 61 6e 6e 65 6c 20 31 20 0d 53 74 |on channel 1 .St| 000022e0 61 74 69 6f 6e 20 31 34 20 70 61 67 65 20 34 30 |ation 14 page 40| 000022f0 30 20 6f 6e 20 63 68 61 6e 6e 65 6c 20 34 20 0d |0 on channel 4 .| 00002300 53 74 61 74 69 6f 6e 20 31 37 20 70 61 67 65 20 |Station 17 page | 00002310 31 32 33 20 6f 6e 20 63 68 61 6e 6e 65 6c 20 31 |123 on channel 1| 00002320 20 0d 20 0d 54 68 65 20 20 54 46 53 20 70 72 6f | . .The TFS pro| 00002330 67 72 61 6d 20 77 69 6c 6c 20 73 65 6c 65 63 74 |gram will select| 00002340 20 63 68 61 6e 6e 65 6c 20 31 20 61 73 20 74 68 | channel 1 as th| 00002350 69 73 20 69 73 20 74 68 65 20 68 69 67 68 65 73 |is is the highes| 00002360 74 20 70 72 69 6f 72 69 74 79 20 69 74 65 6d 20 |t priority item | 00002370 69 6e 20 0d 74 68 65 20 71 75 65 75 65 2e 20 57 |in .the queue. W| 00002380 68 65 6e 20 73 74 61 74 69 6f 6e 20 31 34 27 73 |hen station 14's| 00002390 20 72 65 71 75 65 73 74 20 61 72 72 69 76 65 73 | request arrives| 000023a0 20 69 74 20 77 69 6c 6c 20 62 65 20 73 74 6f 72 | it will be stor| 000023b0 65 64 20 20 69 6e 20 20 74 68 65 20 20 71 75 65 |ed in the que| 000023c0 75 65 20 0d 66 6f 72 20 20 63 68 61 6e 6e 65 6c |ue .for channel| 000023d0 20 34 2e 20 48 6f 77 65 76 65 72 20 77 68 65 6e | 4. However when| 000023e0 20 73 74 61 74 69 6f 6e 20 31 37 27 73 20 72 65 | station 17's re| 000023f0 71 75 65 73 74 20 61 72 72 69 76 65 73 20 6e 6f |quest arrives no| 00002400 74 20 6f 6e 6c 79 20 69 73 20 69 74 20 61 64 64 |t only is it add| 00002410 65 64 20 0d 74 6f 20 74 68 65 20 71 75 65 75 65 |ed .to the queue| 00002420 20 66 6f 72 20 63 68 61 6e 6e 65 6c 20 31 20 62 | for channel 1 b| 00002430 75 74 20 61 20 72 65 63 6f 72 64 20 69 73 20 73 |ut a record is s| 00002440 65 74 20 75 70 20 74 6f 20 72 65 63 65 69 76 65 |et up to receive| 00002450 20 74 68 65 20 70 61 67 65 20 69 66 20 69 74 20 | the page if it | 00002460 69 73 20 0d 74 72 61 6e 73 6d 69 74 74 65 64 2e |is .transmitted.| 00002470 20 53 75 70 70 6f 73 65 20 61 6c 6c 20 74 68 65 | Suppose all the| 00002480 73 65 20 74 68 72 65 65 20 72 65 71 75 65 73 74 |se three request| 00002490 73 20 61 72 72 69 76 65 20 61 6c 6d 6f 73 74 20 |s arrive almost | 000024a0 73 69 6d 75 6c 74 61 6e 65 6f 75 73 6c 79 20 61 |simultaneously a| 000024b0 6e 64 20 0d 61 74 20 74 68 65 20 6d 6f 6d 65 6e |nd .at the momen| 000024c0 74 20 74 68 65 20 54 46 53 20 70 72 6f 67 72 61 |t the TFS progra| 000024d0 6d 20 73 65 6c 65 63 74 73 20 63 68 61 6e 6e 65 |m selects channe| 000024e0 6c 20 31 20 74 68 65 20 70 61 67 65 20 62 65 69 |l 1 the page bei| 000024f0 6e 67 20 74 72 61 6e 73 6d 69 74 74 65 64 20 20 |ng transmitted | 00002500 69 73 20 0d 70 61 67 65 20 20 31 31 32 2e 20 20 |is .page 112. | 00002510 54 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 20 |This means that | 00002520 73 74 61 74 69 6f 6e 20 31 37 27 73 20 70 61 67 |station 17's pag| 00002530 65 20 28 31 32 33 29 20 77 69 6c 6c 20 61 72 72 |e (123) will arr| 00002540 69 76 65 20 62 65 66 6f 72 65 20 73 74 61 74 69 |ive before stati| 00002550 6f 6e 20 0d 31 32 27 73 20 70 61 67 65 28 31 37 |on .12's page(17| 00002560 30 29 2e 20 54 68 75 73 20 73 74 61 74 69 6f 6e |0). Thus station| 00002570 20 31 37 20 77 69 6c 6c 20 72 65 63 65 69 76 65 | 17 will receive| 00002580 20 69 74 27 73 20 70 61 67 65 20 66 69 72 73 74 | it's page first| 00002590 20 20 65 76 65 6e 20 20 74 68 6f 75 67 68 20 20 | even though | 000025a0 69 74 20 0d 77 61 73 20 20 33 72 64 20 20 69 6e |it .was 3rd in| 000025b0 20 74 68 65 20 71 75 65 75 65 2e 20 54 68 65 20 | the queue. The | 000025c0 6e 65 78 74 20 70 61 67 65 20 74 6f 20 62 65 20 |next page to be | 000025d0 73 65 6e 74 20 77 69 6c 6c 20 62 65 20 31 37 30 |sent will be 170| 000025e0 20 74 6f 20 73 74 61 74 69 6f 6e 20 31 32 20 61 | to station 12 a| 000025f0 6e 64 20 0d 73 74 61 74 69 6f 6e 20 31 34 20 77 |nd .station 14 w| 00002600 69 6c 6c 20 72 65 63 65 69 76 65 20 69 74 73 20 |ill receive its | 00002610 70 61 67 65 20 6c 61 73 74 20 65 76 65 6e 20 74 |page last even t| 00002620 68 6f 75 67 68 20 69 74 20 77 61 73 20 20 32 6e |hough it was 2n| 00002630 64 20 20 69 6e 20 20 74 68 65 20 20 71 75 65 75 |d in the queu| 00002640 65 2e 20 0d 54 68 69 73 20 20 69 73 20 20 6e 6f |e. .This is no| 00002650 74 20 64 69 73 61 73 74 65 72 20 61 73 20 69 6e |t disaster as in| 00002660 20 66 61 63 74 20 73 74 61 74 69 6f 6e 20 31 32 | fact station 12| 00002670 20 68 61 73 20 68 61 64 20 6e 6f 20 6c 6f 6e 67 | has had no long| 00002680 65 72 20 74 6f 20 77 61 69 74 20 74 68 61 6e 20 |er to wait than | 00002690 69 74 20 0d 77 6f 75 6c 64 20 68 61 76 65 20 68 |it .would have h| 000026a0 61 64 20 61 6e 79 77 61 79 2e 20 57 68 61 74 20 |ad anyway. What | 000026b0 77 65 20 68 61 76 65 20 6d 61 6e 61 67 65 64 20 |we have managed | 000026c0 74 6f 20 64 6f 20 69 73 20 61 6c 73 6f 20 64 65 |to do is also de| 000026d0 61 6c 20 77 69 74 68 20 73 74 61 74 69 6f 6e 20 |al with station | 000026e0 31 37 20 0d 61 73 20 61 20 73 70 69 6e 2d 6f 66 |17 .as a spin-of| 000026f0 66 20 66 72 6f 6d 20 73 74 61 74 69 6f 6e 20 31 |f from station 1| 00002700 27 73 20 72 65 71 75 65 73 74 2e 20 0d 20 0d 49 |'s request. . .I| 00002710 66 20 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 |f more than one| 00002720 20 73 74 61 74 69 6f 6e 20 72 65 71 75 65 73 74 | station request| 00002730 73 20 74 68 65 20 73 61 6d 65 20 70 61 67 65 20 |s the same page | 00002740 74 68 65 6e 20 74 68 69 73 20 69 73 20 73 70 6f |then this is spo| 00002750 74 74 65 64 20 61 6e 64 20 6f 6e 6c 79 20 0d 6f |tted and only .o| 00002760 6e 65 20 6f 66 20 74 68 65 20 41 54 46 53 20 72 |ne of the ATFS r| 00002770 65 63 6f 72 64 73 20 69 73 20 75 73 65 64 2e 20 |ecords is used. | 00002780 54 68 69 73 20 6d 65 61 6e 73 20 74 68 61 74 20 |This means that | 00002790 69 74 20 69 73 20 70 6f 73 73 69 62 6c 65 20 74 |it is possible t| 000027a0 6f 20 20 68 61 76 65 20 20 6d 6f 72 65 20 0d 74 |o have more .t| 000027b0 68 61 6e 20 20 74 68 65 20 20 6d 61 78 69 6d 75 |han the maximu| 000027c0 6d 20 20 6e 75 6d 62 65 72 20 20 6f 66 20 75 73 |m number of us| 000027d0 65 72 73 20 70 65 72 20 63 68 61 6e 6e 65 6c 20 |ers per channel | 000027e0 71 75 65 75 65 64 20 69 66 20 74 68 61 74 20 63 |queued if that c| 000027f0 68 61 6e 6e 65 6c 20 69 73 20 74 68 65 20 0d 63 |hannel is the .c| 00002800 75 72 72 65 6e 74 6c 79 20 73 65 6c 65 63 74 65 |urrently selecte| 00002810 64 20 6f 6e 65 2e 20 0d 20 0d 57 68 65 6e 20 61 |d one. . .When a| 00002820 6e 20 41 54 46 53 20 72 65 63 6f 72 64 20 68 61 |n ATFS record ha| 00002830 73 20 62 65 65 6e 20 75 73 65 64 20 74 68 65 20 |s been used the | 00002840 70 61 67 65 20 69 74 20 77 61 73 20 6c 6f 6f 6b |page it was look| 00002850 69 6e 67 20 20 66 6f 72 20 20 69 73 20 20 72 65 |ing for is re| 00002860 6d 65 6d 62 65 72 65 64 20 0d 61 6e 64 20 20 6f |membered .and o| 00002870 6e 63 65 20 20 74 68 61 74 20 70 61 67 65 20 68 |nce that page h| 00002880 61 73 20 62 65 65 6e 20 66 6f 75 6e 64 20 74 68 |as been found th| 00002890 65 20 72 65 63 6f 72 64 20 69 73 20 6e 6f 74 20 |e record is not | 000028a0 63 6c 65 61 72 65 64 2e 20 54 68 69 73 20 6d 65 |cleared. This me| 000028b0 61 6e 73 20 74 68 61 74 20 0d 70 72 6f 76 69 64 |ans that .provid| 000028c0 65 64 20 74 68 65 20 63 68 61 6e 6e 65 6c 20 69 |ed the channel i| 000028d0 73 20 6e 6f 74 20 63 68 61 6e 67 65 64 20 74 68 |s not changed th| 000028e0 69 73 20 70 61 67 65 20 77 69 6c 6c 20 63 6f 6e |is page will con| 000028f0 74 69 6e 75 65 20 74 6f 20 62 65 20 75 70 64 61 |tinue to be upda| 00002900 74 65 64 20 20 61 6e 64 20 0d 77 69 6c 6c 20 62 |ted and .will b| 00002910 65 20 70 65 72 6d 61 6e 65 6e 74 6c 79 20 61 76 |e permanently av| 00002920 61 69 6c 61 62 6c 65 2e 20 53 75 70 70 6f 73 65 |ailable. Suppose| 00002930 20 61 20 43 4c 49 45 4e 54 20 72 65 71 75 65 73 | a CLIENT reques| 00002940 74 73 20 70 61 67 65 20 31 37 31 3b 20 74 68 65 |ts page 171; the| 00002950 20 70 61 67 65 20 69 73 20 0d 72 65 63 65 69 76 | page is .receiv| 00002960 65 64 20 61 6e 64 20 74 68 65 6e 20 74 72 61 6e |ed and then tran| 00002970 73 6d 69 74 74 65 64 2e 20 49 66 20 61 6e 6f 74 |smitted. If anot| 00002980 68 65 72 20 43 4c 49 45 4e 54 20 20 28 6f 72 20 |her CLIENT (or | 00002990 20 69 6e 64 65 65 64 20 20 74 68 65 20 20 73 61 | indeed the sa| 000029a0 6d 65 20 20 6f 6e 65 29 20 0d 72 65 71 75 65 73 |me one) .reques| 000029b0 74 73 20 20 74 68 65 20 20 73 61 6d 65 20 20 70 |ts the same p| 000029c0 61 67 65 20 74 68 65 6e 20 69 74 20 69 73 20 69 |age then it is i| 000029d0 6e 73 74 61 6e 74 6c 79 20 61 76 61 69 6c 61 62 |nstantly availab| 000029e0 6c 65 2e 20 54 68 69 73 20 69 73 20 70 61 72 74 |le. This is part| 000029f0 69 63 75 6c 61 72 6c 79 20 0d 75 73 65 66 75 6c |icularly .useful| 00002a00 20 69 66 20 79 6f 75 20 68 61 70 70 65 6e 20 74 | if you happen t| 00002a10 6f 20 62 65 20 74 68 65 20 6f 6e 6c 79 20 43 4c |o be the only CL| 00002a20 49 45 4e 54 20 75 73 69 6e 67 20 74 68 65 20 73 |IENT using the s| 00002a30 79 73 74 65 6d 20 61 73 20 69 74 20 20 6d 65 61 |ystem as it mea| 00002a40 6e 73 20 20 74 68 61 74 20 0d 74 68 65 20 20 6c |ns that .the l| 00002a50 61 73 74 20 20 31 30 20 20 6f 72 20 20 73 6f 20 |ast 10 or so | 00002a60 70 61 67 65 73 20 79 6f 75 20 68 61 76 65 20 72 |pages you have r| 00002a70 65 71 75 65 73 74 65 64 20 6f 6e 20 61 20 67 69 |equested on a gi| 00002a80 76 65 6e 20 63 68 61 6e 6e 65 6c 20 61 72 65 20 |ven channel are | 00002a90 6e 6f 74 20 6f 6e 6c 79 20 0d 62 75 66 66 65 72 |not only .buffer| 00002aa0 65 64 20 62 79 20 74 68 65 20 54 46 53 20 70 72 |ed by the TFS pr| 00002ab0 6f 67 72 61 6d 2c 20 62 75 74 20 61 6c 73 6f 20 |ogram, but also | 00002ac0 75 70 64 61 74 65 64 20 61 6e 64 20 69 6e 73 74 |updated and inst| 00002ad0 61 6e 74 6c 79 20 61 76 61 69 6c 61 62 6c 65 2e |antly available.| 00002ae0 20 0d 20 0d 54 68 65 20 54 46 53 20 70 72 6f 67 | . .The TFS prog| 00002af0 72 61 6d 20 62 72 6f 61 64 63 61 73 74 73 20 77 |ram broadcasts w| 00002b00 68 61 74 65 76 65 72 20 70 61 67 65 20 6e 75 6d |hatever page num| 00002b10 62 65 72 20 69 73 20 63 75 72 72 65 6e 74 6c 79 |ber is currently| 00002b20 20 61 74 20 74 68 65 20 74 6f 70 20 6f 66 20 74 | at the top of t| 00002b30 68 65 20 0d 73 63 72 65 65 6e 20 62 79 20 75 73 |he .screen by us| 00002b40 69 6e 67 20 74 68 65 20 74 69 6d 65 72 20 63 72 |ing the timer cr| 00002b50 6f 73 73 69 6e 67 20 7a 65 72 6f 20 65 76 65 6e |ossing zero even| 00002b60 74 2e 20 54 68 69 73 20 6f 63 63 75 72 73 20 65 |t. This occurs e| 00002b70 76 65 72 79 20 68 61 6c 66 20 73 65 63 6f 6e 64 |very half second| 00002b80 2e 20 0d 20 0d 4f 76 65 72 61 6c 6c 20 20 74 68 |. . .Overall th| 00002b90 65 20 20 72 65 73 70 6f 6e 73 65 20 20 74 69 6d |e response tim| 00002ba0 65 20 20 6f 66 20 20 74 68 65 20 20 73 79 73 74 |e of the syst| 00002bb0 65 6d 20 20 69 73 20 20 76 65 72 79 20 20 66 61 |em is very fa| 00002bc0 73 74 20 61 6c 74 68 6f 75 67 68 20 69 74 20 77 |st although it w| 00002bd0 69 6c 6c 20 0d 6f 62 76 69 6f 75 73 6c 79 20 62 |ill .obviously b| 00002be0 65 20 73 6c 6f 77 65 64 20 64 6f 77 6e 20 69 66 |e slowed down if| 00002bf0 20 43 4c 49 45 4e 54 73 20 20 72 65 71 75 65 73 | CLIENTs reques| 00002c00 74 20 20 6e 6f 6e 2d 65 78 69 73 74 65 6e 74 20 |t non-existent | 00002c10 20 70 61 67 65 73 2e 20 20 54 68 65 20 20 63 79 | pages. The cy| 00002c20 63 6c 65 20 0d 74 69 6d 65 73 20 20 66 6f 72 20 |cle .times for | 00002c30 20 74 68 65 20 20 64 69 66 66 65 72 65 6e 74 20 | the different | 00002c40 63 68 61 6e 6e 65 6c 73 20 61 72 65 20 69 6d 70 |channels are imp| 00002c50 6f 72 74 61 6e 74 20 74 6f 20 74 68 65 20 65 66 |ortant to the ef| 00002c60 66 69 63 69 65 6e 63 79 20 6f 66 20 74 68 65 20 |ficiency of the | 00002c70 54 46 53 20 0d 70 72 6f 67 72 61 6d 20 61 6e 64 |TFS .program and| 00002c80 20 61 73 20 74 68 65 73 65 20 74 69 6d 65 73 20 | as these times | 00002c90 6d 61 79 20 62 65 20 73 75 62 6a 65 63 74 20 74 |may be subject t| 00002ca0 6f 20 63 68 61 6e 67 65 20 74 68 65 79 20 68 61 |o change they ha| 00002cb0 76 65 20 62 65 65 6e 20 69 6e 63 6c 75 64 65 64 |ve been included| 00002cc0 20 69 6e 20 0d 61 20 20 44 41 54 41 20 20 73 74 | in .a DATA st| 00002cd0 61 74 65 6d 65 6e 74 20 61 74 20 74 68 65 20 76 |atement at the v| 00002ce0 65 72 79 20 65 6e 64 20 6f 66 20 74 68 65 20 70 |ery end of the p| 00002cf0 72 6f 67 72 61 6d 2e 20 54 68 65 20 66 69 72 73 |rogram. The firs| 00002d00 74 20 44 41 54 41 20 73 74 61 74 65 6d 65 6e 74 |t DATA statement| 00002d10 20 69 73 20 0d 74 68 65 20 66 72 61 63 74 69 6f | is .the fractio| 00002d20 6e 20 6f 66 20 74 68 65 20 63 79 63 6c 65 20 74 |n of the cycle t| 00002d30 69 6d 65 20 66 6f 72 20 77 68 69 63 68 20 74 68 |ime for which th| 00002d40 65 20 20 54 46 53 20 20 70 72 6f 67 72 61 6d 20 |e TFS program | 00002d50 20 77 69 6c 6c 20 20 77 61 69 74 20 20 62 65 66 | will wait bef| 00002d60 6f 72 65 20 0d 73 65 6e 64 69 6e 67 20 20 61 20 |ore .sending a | 00002d70 73 75 62 2d 70 61 67 65 2e 20 54 68 69 73 20 69 |sub-page. This i| 00002d80 73 20 63 75 72 72 65 6e 74 6c 79 20 30 2e 35 2e |s currently 0.5.| 00002d90 20 54 68 65 20 73 65 63 6f 6e 64 20 44 41 54 41 | The second DATA| 00002da0 20 73 74 61 74 65 6d 65 6e 74 20 63 6f 6e 73 69 | statement consi| 00002db0 73 74 73 20 0d 6f 66 20 74 68 65 20 63 79 63 6c |sts .of the cycl| 00002dc0 65 20 74 69 6d 65 73 20 66 6f 72 20 74 68 65 20 |e times for the | 00002dd0 66 6f 75 72 20 63 68 61 6e 6e 65 6c 73 20 69 6e |four channels in| 00002de0 20 68 75 6e 64 72 65 64 74 68 73 20 6f 66 20 61 | hundredths of a| 00002df0 20 73 65 63 6f 6e 64 2e 20 20 54 68 65 79 20 20 | second. They | 00002e00 61 72 65 20 0d 63 75 72 72 65 6e 74 6c 79 20 73 |are .currently s| 00002e10 65 74 20 74 6f 20 34 30 20 73 65 63 6f 6e 64 73 |et to 40 seconds| 00002e20 20 65 61 63 68 2e 20 0d 20 0d 20 0d 20 20 20 20 | each. . . . | 00002e30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002e40 20 20 20 20 20 20 20 49 6e 73 74 61 6c 6c 69 6e | Installin| 00002e50 67 20 74 68 65 20 70 72 6f 67 72 61 6d 73 20 0d |g the programs .| 00002e60 20 0d 20 0d 31 2e 20 20 50 6c 61 63 65 20 27 54 | . .1. Place 'T| 00002e70 45 4c 45 54 45 58 54 27 20 70 72 6f 67 72 61 6d |ELETEXT' program| 00002e80 20 69 6e 20 24 2e 4c 49 42 52 41 52 59 20 0d 20 | in $.LIBRARY . | 00002e90 0d 32 2e 20 20 50 75 74 20 20 27 54 46 53 27 20 |.2. Put 'TFS' | 00002ea0 20 61 6e 64 20 27 63 6f 64 65 27 20 69 6e 20 61 | and 'code' in a| 00002eb0 20 64 69 72 65 63 74 6f 72 79 20 6f 66 20 74 68 | directory of th| 00002ec0 65 69 72 20 6f 77 6e 2e 20 54 68 69 73 20 6d 69 |eir own. This mi| 00002ed0 67 68 74 20 62 65 20 74 68 65 20 72 6f 6f 74 20 |ght be the root | 00002ee0 0d 20 20 20 20 64 69 72 65 63 74 6f 72 79 20 6f |. directory o| 00002ef0 66 20 61 20 75 73 65 72 20 54 46 53 2e 20 49 66 |f a user TFS. If| 00002f00 20 74 68 69 73 20 75 73 65 72 20 68 61 73 20 61 | this user has a| 00002f10 20 21 42 4f 4f 54 20 66 69 6c 65 20 20 77 68 69 | !BOOT file whi| 00002f20 63 68 20 20 43 48 41 49 4e 73 20 20 74 68 65 20 |ch CHAINs the | 00002f30 0d 20 20 20 20 27 54 46 53 27 20 20 70 72 6f 67 |. 'TFS' prog| 00002f40 72 61 6d 20 20 74 68 65 6e 20 20 74 68 65 20 77 |ram then the w| 00002f50 68 6f 6c 65 20 73 79 73 74 65 6d 20 63 61 6e 20 |hole system can | 00002f60 62 65 20 69 6e 69 74 69 61 6c 69 73 65 64 20 62 |be initialised b| 00002f70 79 20 73 69 6d 70 6c 79 20 74 79 70 69 6e 67 20 |y simply typing | 00002f80 0d 20 20 20 20 2a 49 20 41 4d 20 54 46 53 2e 20 |. *I AM TFS. | 00002f90 54 68 65 20 6d 61 63 68 69 6e 65 20 72 75 6e 6e |The machine runn| 00002fa0 69 6e 67 20 74 68 65 20 54 46 53 20 70 72 6f 67 |ing the TFS prog| 00002fb0 72 61 6d 20 6d 75 73 74 20 6e 6f 74 20 75 73 65 |ram must not use| 00002fc0 20 73 68 61 64 6f 77 20 73 63 72 65 65 6e 73 20 | shadow screens | 00002fd0 0d 20 20 20 20 61 73 20 20 74 68 65 20 68 65 61 |. as the hea| 00002fe0 64 65 72 20 69 73 20 50 4f 4b 45 44 20 69 6e 20 |der is POKED in | 00002ff0 74 6f 20 6d 65 6d 6f 72 79 20 61 74 20 26 37 43 |to memory at &7C| 00003000 30 30 20 62 79 20 74 68 65 20 41 54 46 53 20 52 |00 by the ATFS R| 00003010 6f 6d 2e 20 54 68 65 20 70 72 6f 67 72 61 6d 20 |om. The program | 00003020 0d 20 20 20 20 6d 61 79 20 72 75 6e 20 69 6e 20 |. may run in | 00003030 61 20 73 65 63 6f 6e 64 20 20 70 72 6f 63 65 73 |a second proces| 00003040 73 6f 72 2c 20 20 69 6e 20 20 77 68 69 63 68 20 |sor, in which | 00003050 20 63 61 73 65 20 20 74 68 65 20 20 77 68 6f 6c | case the whol| 00003060 65 20 20 6f 66 20 20 74 68 65 20 20 49 2f 4f 20 |e of the I/O | 00003070 0d 20 20 20 20 70 72 6f 63 65 73 73 6f 72 20 20 |. processor | 00003080 6d 65 6d 6f 72 79 20 20 62 65 63 6f 6d 65 73 20 |memory becomes | 00003090 61 76 61 69 6c 61 62 6c 65 20 66 6f 72 20 62 75 |available for bu| 000030a0 66 66 65 72 69 6e 67 20 70 61 67 65 73 20 61 6e |ffering pages an| 000030b0 64 20 74 68 65 72 65 20 77 69 6c 6c 20 62 65 20 |d there will be | 000030c0 0d 20 20 20 20 61 6e 20 61 73 73 6f 63 69 61 74 |. an associat| 000030d0 65 64 20 69 6e 63 72 65 61 73 65 20 69 6e 20 70 |ed increase in p| 000030e0 65 72 66 6f 72 6d 61 6e 63 65 2e 20 54 68 65 72 |erformance. Ther| 000030f0 65 20 20 69 73 20 20 6e 6f 20 20 61 64 76 61 6e |e is no advan| 00003100 74 61 67 65 20 20 69 6e 20 20 75 73 69 6e 67 20 |tage in using | 00003110 0d 20 20 20 20 48 49 42 41 53 49 43 20 61 73 20 |. HIBASIC as | 00003120 74 68 65 20 70 61 67 65 73 20 61 72 65 20 62 75 |the pages are bu| 00003130 66 66 65 72 65 64 20 69 6e 20 74 68 65 20 49 2f |ffered in the I/| 00003140 4f 20 70 72 6f 63 65 73 73 6f 72 2e 20 0d 20 0d |O processor. . .| 00003150 0d 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 6d |. Com| 00003160 70 61 74 69 62 69 6c 69 74 79 20 77 69 74 68 20 |patibility with | 00003170 74 68 65 20 47 49 53 20 61 64 61 70 74 65 72 20 |the GIS adapter | 00003180 75 6e 64 65 72 20 41 54 53 2b 20 56 65 72 73 69 |under ATS+ Versi| 00003190 6f 6e 20 31 2e 30 30 0d 20 0d 54 68 65 20 73 6f |on 1.00. .The so| 000031a0 66 74 77 61 72 65 20 69 73 20 63 6f 6d 70 61 74 |ftware is compat| 000031b0 69 62 6c 65 20 77 69 74 68 20 74 68 65 20 6e 65 |ible with the ne| 000031c0 77 20 47 49 53 20 74 65 6c 65 74 65 78 74 20 61 |w GIS teletext a| 000031d0 64 61 70 74 65 72 20 61 6c 74 68 6f 75 67 68 20 |dapter although | 000031e0 61 73 20 20 74 68 69 73 20 0d 63 6f 6e 6e 65 63 |as this .connec| 000031f0 74 73 20 20 74 6f 20 20 74 68 65 20 20 75 73 65 |ts to the use| 00003200 72 20 70 6f 72 74 20 72 61 74 68 65 72 20 74 68 |r port rather th| 00003210 61 6e 20 74 68 65 20 31 4d 48 7a 20 42 75 73 20 |an the 1MHz Bus | 00003220 74 68 65 20 73 70 65 65 64 20 6f 66 20 72 65 73 |the speed of res| 00003230 70 6f 6e 73 65 20 69 73 20 0d 73 6c 69 67 68 74 |ponse is .slight| 00003240 6c 79 20 73 6c 6f 77 65 72 2e 20 54 68 65 72 65 |ly slower. There| 00003250 20 61 70 70 65 61 72 73 20 74 6f 20 62 65 20 61 | appears to be a| 00003260 20 70 72 6f 62 6c 65 6d 20 77 69 74 68 20 74 68 | problem with th| 00003270 65 20 72 6f 75 74 69 6e 65 20 20 74 6f 20 20 63 |e routine to c| 00003280 61 6c 63 75 6c 61 74 65 20 0d 74 68 65 20 20 63 |alculate .the c| 00003290 68 65 63 6b 73 75 6d 20 6f 66 20 61 20 70 61 67 |hecksum of a pag| 000032a0 65 20 69 6e 20 74 68 61 74 20 74 68 65 20 47 49 |e in that the GI| 000032b0 53 20 52 6f 6d 20 67 65 74 73 20 69 74 20 77 72 |S Rom gets it wr| 000032c0 6f 6e 67 20 69 66 20 61 20 70 61 67 65 20 68 65 |ong if a page he| 000032d0 61 64 65 72 20 77 61 73 20 0d 62 72 6f 61 64 63 |ader was .broadc| 000032e0 61 73 74 20 77 68 69 6c 65 20 70 65 72 66 6f 72 |ast while perfor| 000032f0 6d 69 6e 67 20 74 68 65 20 63 68 65 63 6b 2e 20 |ming the check. | 00003300 54 68 65 72 65 20 64 6f 65 73 20 73 65 65 6d 20 |There does seem | 00003310 74 6f 20 62 65 20 61 20 70 72 6f 62 6c 65 6d 20 |to be a problem | 00003320 77 69 74 68 20 74 68 65 20 0d 4d 41 53 54 45 52 |with the .MASTER| 00003330 20 31 32 38 20 61 6e 64 20 74 68 65 20 54 55 42 | 128 and the TUB| 00003340 45 20 69 6e 20 74 68 61 74 20 74 68 65 20 73 6f |E in that the so| 00003350 66 74 77 61 72 65 20 77 69 6c 6c 20 6e 6f 74 20 |ftware will not | 00003360 77 6f 72 6b 20 77 69 74 68 20 65 69 74 68 65 72 |work with either| 00003370 20 61 64 61 70 74 65 72 20 0d 69 6e 20 74 68 69 | adapter .in thi| 00003380 73 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2e |s configuration.| 00003390 20 54 68 69 73 20 6c 6f 6f 6b 73 20 6c 69 6b 65 | This looks like| 000033a0 20 69 74 20 6d 61 79 20 62 65 20 61 20 70 72 6f | it may be a pro| 000033b0 62 6c 65 6d 20 77 69 74 68 20 74 68 65 20 41 4e |blem with the AN| 000033c0 46 53 2e 20 0d 20 0d 20 20 20 20 20 20 20 20 20 |FS. . . | 000033d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000033e0 20 57 72 69 74 69 6e 67 20 79 6f 75 72 20 6f 77 | Writing your ow| 000033f0 6e 20 73 6f 66 74 77 61 72 65 20 0d 20 0d 42 65 |n software . .Be| 00003400 6c 6f 77 20 69 73 20 61 6e 20 65 78 61 6d 70 6c |low is an exampl| 00003410 65 20 6f 66 20 61 20 42 41 53 49 43 20 70 72 6f |e of a BASIC pro| 00003420 67 72 61 6d 20 77 68 69 63 68 20 69 6c 6c 75 73 |gram which illus| 00003430 74 72 61 74 65 73 20 68 6f 77 20 74 6f 20 77 72 |trates how to wr| 00003440 69 74 65 20 79 6f 75 72 20 6f 77 6e 20 0d 73 6f |ite your own .so| 00003450 66 74 77 61 72 65 20 20 75 73 69 6e 67 20 20 74 |ftware using t| 00003460 68 65 20 20 53 45 52 56 45 52 20 70 72 6f 74 6f |he SERVER proto| 00003470 63 6f 6c 73 2e 20 55 73 69 6e 67 20 74 68 69 73 |cols. Using this| 00003480 20 70 72 69 6e 63 69 70 6c 65 20 69 74 20 69 73 | principle it is| 00003490 20 70 6f 73 73 69 62 6c 65 20 74 6f 20 0d 77 72 | possible to .wr| 000034a0 69 74 65 20 70 72 6f 67 72 61 6d 73 20 66 6f 72 |ite programs for| 000034b0 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 72 | automatically r| 000034c0 65 63 65 69 76 69 6e 67 20 61 6e 64 20 73 61 76 |eceiving and sav| 000034d0 69 6e 67 20 70 61 67 65 73 2e 20 0d 20 0d 52 65 |ing pages. . .Re| 000034e0 61 64 20 74 68 65 20 74 69 6d 65 20 66 72 6f 6d |ad the time from| 000034f0 20 61 20 54 45 4c 45 54 45 58 54 20 73 65 72 76 | a TELETEXT serv| 00003500 65 72 20 0d 20 0d 20 20 31 30 20 6f 73 77 6f 72 |er . . 10 oswor| 00003510 64 3d 26 46 46 46 31 3a 6f 73 62 79 74 65 3d 26 |d=&FFF1:osbyte=&| 00003520 46 46 46 34 20 0d 20 20 32 30 20 44 49 4d 20 62 |FFF4 . 20 DIM b| 00003530 6c 6b 25 20 26 31 30 30 2c 62 75 66 66 20 26 31 |lk% &100,buff &1| 00003540 30 30 20 0d 20 20 33 30 20 52 45 50 45 41 54 20 |00 . 30 REPEAT | 00003550 0d 20 20 34 30 20 20 20 20 20 20 20 20 20 20 20 |. 40 | 00003560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003570 20 20 20 20 20 20 20 3a 52 45 4d 20 53 65 74 20 | :REM Set | 00003580 75 70 20 72 65 63 65 69 76 65 20 62 6c 6b 20 66 |up receive blk f| 00003590 6f 72 20 53 45 52 56 45 52 20 72 65 70 6c 79 20 |or SERVER reply | 000035a0 0d 20 20 35 30 20 72 78 5f 6e 6f 3d 46 4e 73 65 |. 50 rx_no=FNse| 000035b0 74 5f 75 70 5f 72 78 28 26 42 31 2c 30 2c 62 75 |t_up_rx(&B1,0,bu| 000035c0 66 66 2c 26 32 30 29 3a 52 45 4d 20 4c 69 73 74 |ff,&20):REM List| 000035d0 65 6e 20 66 6f 72 20 61 6c 6c 20 73 74 61 74 69 |en for all stati| 000035e0 6f 6e 73 20 61 73 20 77 65 20 64 6f 6e 27 74 20 |ons as we don't | 000035f0 0d 20 20 36 30 20 20 20 20 20 20 20 20 20 20 20 |. 60 | 00003600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003610 20 20 20 20 20 20 20 3a 52 45 4d 20 20 20 6b 6e | :REM kn| 00003620 6f 77 20 74 68 65 20 73 65 72 76 65 72 20 73 74 |ow the server st| 00003630 61 74 69 6f 6e 20 6e 75 6d 62 65 72 20 0d 20 20 |ation number . | 00003640 37 30 20 52 45 50 45 41 54 20 0d 20 20 38 30 20 |70 REPEAT . 80 | 00003650 50 52 4f 43 62 63 61 73 74 28 26 42 30 2c 26 38 |PROCbcast(&B0,&8| 00003660 30 2c 22 54 45 4c 45 54 45 58 54 22 29 20 20 20 |0,"TELETEXT") | 00003670 20 3a 52 45 4d 20 42 72 6f 61 64 63 61 73 74 20 | :REM Broadcast | 00003680 66 6f 72 20 61 20 54 45 4c 45 54 45 58 54 20 73 |for a TELETEXT s| 00003690 65 72 76 65 72 20 0d 20 20 39 30 20 54 49 4d 45 |erver . 90 TIME| 000036a0 3d 30 20 0d 20 31 30 30 20 52 45 50 45 41 54 20 |=0 . 100 REPEAT | 000036b0 55 4e 54 49 4c 20 54 49 4d 45 3e 35 30 20 20 20 |UNTIL TIME>50 | 000036c0 20 20 20 20 20 20 20 20 20 20 3a 52 45 4d 20 57 | :REM W| 000036d0 61 69 74 20 66 6f 72 20 61 20 77 68 69 6c 65 20 |ait for a while | 000036e0 62 65 66 6f 72 65 20 72 65 74 72 79 69 6e 67 20 |before retrying | 000036f0 0d 20 31 31 30 20 55 4e 54 49 4c 20 46 4e 70 6f |. 110 UNTIL FNpo| 00003700 6c 6c 5f 72 78 28 72 78 5f 6e 6f 29 3e 31 32 37 |ll_rx(rx_no)>127| 00003710 20 20 20 20 20 20 20 3a 52 45 4d 20 4b 65 65 70 | :REM Keep| 00003720 20 74 72 79 69 6e 67 20 75 6e 74 69 6c 20 61 20 | trying until a | 00003730 72 65 70 6c 79 20 72 65 63 65 69 76 65 64 20 0d |reply received .| 00003740 20 31 32 30 20 20 0d 20 31 33 30 20 50 52 4f 43 | 120 . 130 PROC| 00003750 72 65 61 64 5f 72 78 28 72 78 5f 6e 6f 29 20 20 |read_rx(rx_no) | 00003760 20 20 20 20 20 20 20 20 20 20 20 20 20 3a 52 45 | :RE| 00003770 4d 20 52 65 61 64 20 74 68 65 20 72 65 63 65 69 |M Read the recei| 00003780 76 65 20 62 6c 6f 63 6b 20 0d 20 31 34 30 20 62 |ve block . 140 b| 00003790 75 66 66 3f 31 31 3d 31 33 20 20 20 20 20 20 20 |uff?11=13 | 000037a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000037b0 3a 52 45 4d 20 43 68 65 63 6b 20 74 68 61 74 20 |:REM Check that | 000037c0 69 74 20 72 65 61 6c 6c 79 20 77 61 73 20 61 20 |it really was a | 000037d0 54 45 4c 45 54 45 58 54 20 0d 20 31 35 30 20 55 |TELETEXT . 150 U| 000037e0 4e 54 49 4c 20 24 28 62 75 66 66 2b 33 29 3d 22 |NTIL $(buff+3)="| 000037f0 54 45 4c 45 54 45 58 54 22 20 20 20 20 20 20 20 |TELETEXT" | 00003800 3a 52 45 4d 20 20 20 73 65 72 76 65 72 20 77 68 |:REM server wh| 00003810 69 63 68 20 72 65 73 70 6f 6e 64 65 64 20 0d 20 |ich responded . | 00003820 31 36 30 20 73 65 72 76 65 72 25 3d 62 6c 6b 25 |160 server%=blk%| 00003830 21 33 20 41 4e 44 20 26 46 46 46 46 20 20 20 20 |!3 AND &FFFF | 00003840 20 20 20 20 20 3a 52 45 4d 20 52 65 61 64 20 74 | :REM Read t| 00003850 68 65 20 73 65 72 76 65 72 27 73 20 6e 75 6d 62 |he server's numb| 00003860 65 72 20 0d 20 31 37 30 20 62 61 73 65 5f 70 6f |er . 170 base_po| 00003870 72 74 3d 62 75 66 66 3f 31 20 20 20 20 20 20 20 |rt=buff?1 | 00003880 20 20 20 20 20 20 20 20 20 20 3a 52 45 4d 20 52 | :REM R| 00003890 65 61 64 20 74 68 65 20 62 61 73 65 20 70 6f 72 |ead the base por| 000038a0 74 20 6e 75 6d 62 65 72 20 0d 20 31 38 30 20 72 |t number . 180 r| 000038b0 78 5f 6e 6f 3d 46 4e 73 65 74 5f 75 70 5f 72 78 |x_no=FNset_up_rx| 000038c0 28 62 61 73 65 5f 70 6f 72 74 2c 73 65 72 76 65 |(base_port,serve| 000038d0 72 25 2c 62 75 66 66 2c 26 32 30 29 20 3a 52 45 |r%,buff,&20) :RE| 000038e0 4d 20 53 65 74 20 75 70 20 61 20 72 65 63 65 69 |M Set up a recei| 000038f0 76 65 20 62 6c 6b 20 0d 20 31 39 30 20 52 45 50 |ve blk . 190 REP| 00003900 45 41 54 20 20 20 20 20 20 20 20 20 20 20 20 20 |EAT | 00003910 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003920 20 20 20 20 20 20 20 20 20 20 20 3a 52 45 4d 20 | :REM | 00003930 20 20 66 6f 72 20 74 68 65 20 74 69 6d 65 20 0d | for the time .| 00003940 20 32 30 30 20 52 45 50 45 41 54 20 0d 20 32 31 | 200 REPEAT . 21| 00003950 30 20 50 52 4f 43 74 78 28 26 38 34 2c 62 61 73 |0 PROCtx(&84,bas| 00003960 65 5f 70 6f 72 74 2b 31 2c 73 65 72 76 65 72 25 |e_port+1,server%| 00003970 2c 62 75 66 66 2c 31 29 20 3a 52 45 4d 20 54 72 |,buff,1) :REM Tr| 00003980 61 6e 73 6d 69 74 20 72 65 71 75 65 73 74 20 66 |ansmit request f| 00003990 6f 72 20 74 68 65 20 74 69 6d 65 20 0d 20 32 32 |or the time . 22| 000039a0 30 20 54 49 4d 45 3d 30 20 20 20 20 20 20 20 20 |0 TIME=0 | 000039b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000039c0 20 20 20 3a 52 45 4d 20 57 61 69 74 20 66 6f 72 | :REM Wait for| 000039d0 20 61 20 77 68 69 6c 65 20 62 65 66 6f 72 65 20 | a while before | 000039e0 72 65 74 72 79 69 6e 67 20 0d 20 32 33 30 20 52 |retrying . 230 R| 000039f0 45 50 45 41 54 20 55 4e 54 49 4c 20 54 49 4d 45 |EPEAT UNTIL TIME| 00003a00 3e 35 30 20 0d 20 32 34 30 20 72 65 73 75 6c 74 |>50 . 240 result| 00003a10 25 3d 46 4e 70 6f 6c 6c 5f 74 78 20 0d 20 32 35 |%=FNpoll_tx . 25| 00003a20 30 20 55 4e 54 49 4c 20 72 65 73 75 6c 74 25 3d |0 UNTIL result%=| 00003a30 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |0 | 00003a40 20 20 20 3a 52 45 4d 20 4b 65 65 70 20 74 72 79 | :REM Keep try| 00003a50 69 6e 67 20 75 6e 74 69 6c 20 74 72 61 6e 73 6d |ing until transm| 00003a60 69 74 20 73 75 63 63 65 65 64 73 20 0d 20 32 36 |it succeeds . 26| 00003a70 30 20 55 4e 54 49 4c 20 46 4e 70 6f 6c 6c 5f 72 |0 UNTIL FNpoll_r| 00003a80 78 28 72 78 5f 6e 6f 29 3e 31 32 37 20 20 20 20 |x(rx_no)>127 | 00003a90 20 20 20 3a 52 45 4d 20 4b 65 65 70 20 74 72 79 | :REM Keep try| 00003aa0 69 6e 67 20 75 6e 74 69 6c 20 77 65 20 67 65 74 |ing until we get| 00003ab0 20 61 20 72 65 70 6c 79 20 0d 20 32 37 30 20 50 | a reply . 270 P| 00003ac0 52 4f 43 72 65 61 64 5f 72 78 28 72 78 5f 6e 6f |ROCread_rx(rx_no| 00003ad0 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |) | 00003ae0 3a 52 45 4d 20 52 65 61 64 20 74 68 65 20 72 65 |:REM Read the re| 00003af0 63 65 69 76 65 20 62 6c 6f 63 6b 20 0d 20 32 38 |ceive block . 28| 00003b00 30 20 20 0d 20 32 39 30 20 62 75 66 66 3f 31 39 |0 . 290 buff?19| 00003b10 3d 31 33 20 0d 20 33 30 30 20 64 61 74 65 24 3d |=13 . 300 date$=| 00003b20 24 28 62 75 66 66 2b 39 29 20 20 20 20 20 20 20 |$(buff+9) | 00003b30 20 20 20 20 20 20 20 20 20 20 20 3a 52 45 4d 20 | :REM | 00003b40 52 65 61 64 20 74 68 65 20 64 61 74 65 20 0d 20 |Read the date . | 00003b50 33 31 30 20 62 75 66 66 3f 39 3d 31 33 20 0d 20 |310 buff?9=13 . | 00003b60 33 32 30 20 74 69 6d 65 24 3d 24 28 62 75 66 66 |320 time$=$(buff| 00003b70 2b 31 29 20 20 20 20 20 20 20 20 20 20 20 20 20 |+1) | 00003b80 20 20 20 20 20 3a 52 45 4d 20 52 65 61 64 20 74 | :REM Read t| 00003b90 68 65 20 74 69 6d 65 20 0d 20 33 33 30 20 50 52 |he time . 330 PR| 00003ba0 49 4e 54 22 54 68 65 20 74 69 6d 65 20 69 73 20 |INT"The time is | 00003bb0 22 3b 74 69 6d 65 24 3b 22 20 6f 6e 20 22 3b 64 |";time$;" on ";d| 00003bc0 61 74 65 24 20 0d 20 33 34 30 20 45 4e 44 20 0d |ate$ . 340 END .| 00003bd0 20 33 35 30 20 20 0d 20 33 36 30 20 44 45 46 50 | 350 . 360 DEFP| 00003be0 52 4f 43 62 63 61 73 74 28 70 25 2c 63 62 25 2c |ROCbcast(p%,cb%,| 00003bf0 73 65 72 76 65 72 24 29 20 0d 20 33 37 30 20 3f |server$) . 370 ?| 00003c00 62 6c 6b 25 3d 63 62 25 20 0d 20 33 38 30 20 62 |blk%=cb% . 380 b| 00003c10 6c 6b 25 3f 31 3d 70 25 20 0d 20 33 39 30 20 62 |lk%?1=p% . 390 b| 00003c20 6c 6b 25 21 32 3d 26 46 46 46 46 20 0d 20 34 30 |lk%!2=&FFFF . 40| 00003c30 30 20 24 28 62 6c 6b 25 2b 34 29 3d 73 65 72 76 |0 $(blk%+4)=serv| 00003c40 65 72 24 20 0d 20 34 31 30 20 58 25 3d 62 6c 6b |er$ . 410 X%=blk| 00003c50 25 3a 59 25 3d 58 25 20 44 49 56 20 32 35 36 3a |%:Y%=X% DIV 256:| 00003c60 41 25 3d 26 31 30 20 0d 20 34 32 30 20 43 41 4c |A%=&10 . 420 CAL| 00003c70 4c 20 6f 73 77 6f 72 64 20 0d 20 34 33 30 20 45 |L osword . 430 E| 00003c80 4e 44 50 52 4f 43 20 0d 20 34 34 30 20 20 0d 20 |NDPROC . 440 . | 00003c90 34 35 30 20 44 45 46 46 4e 73 65 74 5f 75 70 5f |450 DEFFNset_up_| 00003ca0 72 78 28 70 25 2c 73 74 25 2c 62 25 2c 6c 25 29 |rx(p%,st%,b%,l%)| 00003cb0 20 0d 20 34 36 30 20 3f 62 6c 6b 25 3d 30 20 0d | . 460 ?blk%=0 .| 00003cc0 20 34 37 30 20 62 6c 6b 25 3f 31 3d 26 37 46 20 | 470 blk%?1=&7F | 00003cd0 0d 20 34 38 30 20 62 6c 6b 25 3f 32 3d 70 25 20 |. 480 blk%?2=p% | 00003ce0 0d 20 34 39 30 20 62 6c 6b 25 21 33 3d 73 74 25 |. 490 blk%!3=st%| 00003cf0 20 0d 20 35 30 30 20 62 6c 6b 25 21 35 3d 62 25 | . 500 blk%!5=b%| 00003d00 20 0d 20 35 31 30 20 62 6c 6b 25 21 39 3d 62 25 | . 510 blk%!9=b%| 00003d10 2b 6c 25 20 0d 20 35 32 30 20 58 25 3d 62 6c 6b |+l% . 520 X%=blk| 00003d20 25 3a 59 25 3d 58 25 20 44 49 56 20 32 35 36 3a |%:Y%=X% DIV 256:| 00003d30 41 25 3d 26 31 31 20 0d 20 35 33 30 20 43 41 4c |A%=&11 . 530 CAL| 00003d40 4c 20 6f 73 77 6f 72 64 20 0d 20 35 34 30 20 3d |L osword . 540 =| 00003d50 3f 62 6c 6b 25 20 0d 20 35 35 30 20 20 0d 20 35 |?blk% . 550 . 5| 00003d60 36 30 20 44 45 46 46 4e 70 6f 6c 6c 5f 72 78 28 |60 DEFFNpoll_rx(| 00003d70 72 25 29 20 0d 20 35 37 30 20 41 25 3d 26 33 33 |r%) . 570 A%=&33| 00003d80 3a 58 25 3d 72 25 20 0d 20 35 38 30 20 3d 55 53 |:X%=r% . 580 =US| 00003d90 52 28 6f 73 62 79 74 65 29 20 41 4e 44 20 26 38 |R(osbyte) AND &8| 00003da0 30 30 30 20 0d 20 35 39 30 20 20 0d 20 36 30 30 |000 . 590 . 600| 00003db0 20 44 45 46 50 52 4f 43 72 65 61 64 5f 72 78 28 | DEFPROCread_rx(| 00003dc0 72 25 29 20 0d 20 36 31 30 20 3f 62 6c 6b 25 3d |r%) . 610 ?blk%=| 00003dd0 72 25 20 0d 20 36 32 30 20 58 25 3d 62 6c 6b 25 |r% . 620 X%=blk%| 00003de0 3a 59 25 3d 58 25 20 44 49 56 20 32 35 36 3a 41 |:Y%=X% DIV 256:A| 00003df0 25 3d 26 31 31 20 0d 20 36 33 30 20 43 41 4c 4c |%=&11 . 630 CALL| 00003e00 20 6f 73 77 6f 72 64 20 0d 20 36 34 30 20 45 4e | osword . 640 EN| 00003e10 44 50 52 4f 43 20 0d 20 36 35 30 20 20 0d 20 36 |DPROC . 650 . 6| 00003e20 36 30 20 44 45 46 50 52 4f 43 74 78 28 63 62 25 |60 DEFPROCtx(cb%| 00003e30 2c 70 25 2c 73 74 25 2c 62 25 2c 6c 25 29 20 0d |,p%,st%,b%,l%) .| 00003e40 20 36 37 30 20 3f 62 6c 6b 25 3d 63 62 25 20 0d | 670 ?blk%=cb% .| 00003e50 20 36 38 30 20 62 6c 6b 25 3f 31 3d 70 25 20 0d | 680 blk%?1=p% .| 00003e60 20 36 39 30 20 62 6c 6b 25 21 32 3d 73 74 25 20 | 690 blk%!2=st% | 00003e70 0d 20 37 30 30 20 62 6c 6b 25 21 34 3d 62 25 20 |. 700 blk%!4=b% | 00003e80 0d 20 37 31 30 20 62 6c 6b 25 21 38 3d 62 25 2b |. 710 blk%!8=b%+| 00003e90 6c 25 20 0d 20 37 32 30 20 58 25 3d 62 6c 6b 25 |l% . 720 X%=blk%| 00003ea0 3a 59 25 3d 58 25 20 44 49 56 20 32 35 36 3a 41 |:Y%=X% DIV 256:A| 00003eb0 25 3d 26 31 30 20 0d 20 37 33 30 20 43 41 4c 4c |%=&10 . 730 CALL| 00003ec0 20 6f 73 77 6f 72 64 20 0d 20 37 34 30 20 45 4e | osword . 740 EN| 00003ed0 44 50 52 4f 43 20 0d 20 37 35 30 20 20 0d 20 37 |DPROC . 750 . 7| 00003ee0 36 30 20 44 45 46 46 4e 70 6f 6c 6c 5f 74 78 20 |60 DEFFNpoll_tx | 00003ef0 0d 20 37 37 30 20 52 45 50 45 41 54 20 0d 20 37 |. 770 REPEAT . 7| 00003f00 38 30 20 41 25 3d 26 33 32 20 0d 20 37 39 30 20 |80 A%=&32 . 790 | 00003f10 74 65 73 74 25 3d 28 55 53 52 28 6f 73 62 79 74 |test%=(USR(osbyt| 00003f20 65 29 20 41 4e 44 20 26 46 46 30 30 29 20 44 49 |e) AND &FF00) DI| 00003f30 56 20 26 31 30 30 20 0d 20 38 30 30 20 55 4e 54 |V &100 . 800 UNT| 00003f40 49 4c 20 74 65 73 74 25 3c 31 32 38 20 0d 20 38 |IL test%<128 . 8| 00003f50 31 30 20 3d 74 65 73 74 25 20 0d 20 0d 20 0d 20 |10 =test% . . . | 00003f60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003f70 20 20 20 20 20 20 20 20 20 20 20 20 20 53 45 52 | SER| 00003f80 56 45 52 20 45 78 74 65 6e 73 69 6f 6e 73 20 0d |VER Extensions .| 00003f90 20 0d 41 73 20 79 6f 75 20 20 77 69 6c 6c 20 20 | .As you will | 00003fa0 66 69 6e 64 20 20 69 6e 20 20 74 68 65 20 20 70 |find in the p| 00003fb0 72 6f 74 6f 63 6f 6c 73 20 20 73 65 63 74 69 6f |rotocols sectio| 00003fc0 6e 20 20 6f 66 20 20 74 68 69 73 20 20 61 72 74 |n of this art| 00003fd0 69 63 6c 65 20 20 61 20 20 66 75 72 74 68 65 72 |icle a further| 00003fe0 20 0d 6e 6f 6e 2d 74 65 6c 65 74 65 78 74 20 20 | .non-teletext | 00003ff0 72 65 6c 61 74 65 64 20 20 63 61 6c 6c 20 68 61 |related call ha| 00004000 73 20 62 65 65 6e 20 69 6e 63 6c 75 64 65 64 20 |s been included | 00004010 69 6e 20 74 68 65 20 53 45 52 56 45 52 2e 20 54 |in the SERVER. T| 00004020 68 69 73 20 63 61 6c 6c 20 72 65 74 75 72 6e 73 |his call returns| 00004030 20 0d 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 | .the value of t| 00004040 68 65 20 61 6e 61 6c 6f 67 75 65 20 70 6f 72 74 |he analogue port| 00004050 73 2e 20 54 68 69 73 20 6d 65 61 6e 73 20 76 61 |s. This means va| 00004060 72 69 6f 75 73 20 64 65 76 69 63 65 73 20 63 61 |rious devices ca| 00004070 6e 20 62 65 20 61 74 74 61 63 68 65 64 20 74 6f |n be attached to| 00004080 20 0d 74 68 65 20 20 61 6e 61 6c 6f 67 75 65 20 | .the analogue | 00004090 20 70 6f 72 74 20 20 6f 66 20 20 74 68 65 20 20 | port of the | 000040a0 53 45 52 56 45 52 20 20 61 6e 64 20 20 63 61 6e |SERVER and can| 000040b0 20 62 65 20 73 61 6d 70 6c 65 64 20 66 72 6f 6d | be sampled from| 000040c0 20 61 6e 79 77 68 65 72 65 20 6f 6e 20 74 68 65 | anywhere on the| 000040d0 20 0d 6e 65 74 77 6f 72 6b 2e 20 57 65 20 61 72 | .network. We ar| 000040e0 65 20 75 73 69 6e 67 20 74 68 69 73 20 74 6f 20 |e using this to | 000040f0 6d 6f 6e 69 74 6f 72 20 74 68 65 20 6f 75 74 73 |monitor the outs| 00004100 69 64 65 20 74 65 6d 70 65 72 61 74 75 72 65 2e |ide temperature.| 00004110 20 0d 20 0d 20 0d 20 20 20 20 20 20 20 20 20 20 | . . . | 00004120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00004130 54 45 4c 45 54 45 58 54 20 53 45 52 56 45 52 20 |TELETEXT SERVER | 00004140 50 52 4f 54 4f 43 4f 4c 53 20 0d 20 0d 41 6c 6c |PROTOCOLS . .All| 00004150 20 63 6f 6d 6d 75 6e 69 63 61 74 69 6f 6e 73 20 | communications | 00004160 62 65 74 77 65 65 6e 20 20 74 65 6c 65 73 65 72 |between teleser| 00004170 76 65 72 20 20 61 6e 64 20 20 63 6c 69 65 6e 74 |ver and client| 00004180 20 20 61 72 65 20 20 63 6f 6e 64 75 63 74 65 64 | are conducted| 00004190 20 20 6f 6e 20 20 70 6f 72 74 73 20 0d 62 61 73 | on ports .bas| 000041a0 65 2d 62 61 73 65 2b 33 20 20 28 63 75 72 72 65 |e-base+3 (curre| 000041b0 6e 74 6c 79 20 20 26 42 32 2d 26 42 35 29 2e 20 |ntly &B2-&B5). | 000041c0 20 54 72 61 6e 73 6d 69 73 73 69 6f 6e 73 20 66 | Transmissions f| 000041d0 72 6f 6d 20 63 6c 69 65 6e 74 20 74 6f 20 73 65 |rom client to se| 000041e0 72 76 65 72 20 61 72 65 20 6f 6e 20 0d 70 6f 72 |rver are on .por| 000041f0 74 20 26 42 33 20 61 6e 64 20 72 65 70 6c 69 65 |t &B3 and replie| 00004200 73 20 66 72 6f 6d 20 74 68 65 20 73 65 72 76 65 |s from the serve| 00004210 72 20 61 72 65 20 6f 6e 20 70 6f 72 74 20 26 42 |r are on port &B| 00004220 32 2e 20 50 6f 72 74 20 26 42 35 20 69 73 20 72 |2. Port &B5 is r| 00004230 65 73 65 72 76 65 64 20 66 6f 72 20 0d 62 72 6f |eserved for .bro| 00004240 61 64 63 61 73 74 69 6e 67 20 20 74 68 65 20 20 |adcasting the | 00004250 63 75 72 72 65 6e 74 20 20 70 61 67 65 20 6e 75 |current page nu| 00004260 6d 62 65 72 20 62 65 69 6e 67 20 70 69 63 6b 65 |mber being picke| 00004270 64 20 75 70 20 62 79 20 74 68 65 20 73 65 72 76 |d up by the serv| 00004280 65 72 20 61 6e 64 20 70 6f 72 74 20 0d 26 42 34 |er and port .&B4| 00004290 20 69 73 20 75 73 65 64 20 66 6f 72 20 74 72 61 | is used for tra| 000042a0 6e 73 6d 69 74 74 69 6e 67 20 74 68 65 20 70 61 |nsmitting the pa| 000042b0 67 65 20 69 74 73 65 6c 66 2e 20 0d 20 0d 49 74 |ge itself. . .It| 000042c0 20 69 73 20 6e 65 63 65 73 73 61 72 79 20 74 6f | is necessary to| 000042d0 20 75 73 65 20 66 6f 75 72 20 70 6f 72 74 73 20 | use four ports | 000042e0 62 65 63 61 75 73 65 20 74 68 65 20 63 6c 69 65 |because the clie| 000042f0 6e 74 20 6d 61 79 20 77 69 73 68 20 20 74 6f 20 |nt may wish to | 00004300 20 68 61 76 65 20 20 74 68 72 65 65 20 0d 72 65 | have three .re| 00004310 63 65 69 76 65 20 20 62 6c 6f 63 6b 73 20 20 6f |ceive blocks o| 00004320 70 65 6e 20 20 61 74 20 20 74 68 65 20 20 73 61 |pen at the sa| 00004330 6d 65 20 20 74 69 6d 65 2e 20 4f 6e 65 20 74 6f |me time. One to| 00004340 20 63 6f 6e 74 69 6e 75 61 6c 6c 79 20 75 70 64 | continually upd| 00004350 61 74 65 20 74 68 65 20 70 61 67 65 20 0d 68 65 |ate the page .he| 00004360 61 64 65 72 2c 20 6f 6e 65 20 74 6f 20 72 65 71 |ader, one to req| 00004370 75 65 73 74 20 6f 74 68 65 72 20 69 6e 66 6f 72 |uest other infor| 00004380 6d 61 74 69 6f 6e 20 61 6e 64 20 6f 6e 65 20 74 |mation and one t| 00004390 6f 20 72 65 63 65 69 76 65 20 74 68 65 20 70 61 |o receive the pa| 000043a0 67 65 20 69 74 73 65 6c 66 2e 20 0d 20 0d 54 68 |ge itself. . .Th| 000043b0 65 20 70 61 67 65 20 63 75 72 72 65 6e 74 6c 79 |e page currently| 000043c0 20 62 65 69 6e 67 20 72 65 63 65 69 76 65 64 20 | being received | 000043d0 69 73 20 62 72 6f 61 64 63 61 73 74 20 6f 6e 20 |is broadcast on | 000043e0 70 6f 72 74 20 26 42 35 20 61 6e 64 20 63 6f 6e |port &B5 and con| 000043f0 73 69 73 74 73 20 6f 66 20 34 20 0d 62 79 74 65 |sists of 4 .byte| 00004400 73 3a 20 0d 20 0d 42 79 74 65 20 31 20 20 20 20 |s: . .Byte 1 | 00004410 20 20 43 68 61 6e 6e 65 6c 20 6e 75 6d 62 65 72 | Channel number| 00004420 20 69 6e 20 41 53 43 49 49 20 0d 42 79 74 65 73 | in ASCII .Bytes| 00004430 20 32 2d 34 20 20 20 50 61 67 65 20 6e 75 6d 62 | 2-4 Page numb| 00004440 65 72 20 69 6e 20 41 53 43 49 49 20 0d 20 0d 41 |er in ASCII . .A| 00004450 6c 6c 20 74 72 61 6e 73 6d 69 73 73 69 6f 6e 73 |ll transmissions| 00004460 20 74 6f 20 74 68 65 20 74 65 6c 65 73 65 72 76 | to the teleserv| 00004470 65 72 20 77 69 6c 6c 20 72 65 73 75 6c 74 20 69 |er will result i| 00004480 6e 20 61 20 20 72 65 70 6c 79 20 20 62 65 69 6e |n a reply bein| 00004490 67 20 20 73 65 6e 74 2e 20 20 54 68 65 20 0d 74 |g sent. The .t| 000044a0 65 6c 65 73 65 72 76 65 72 20 20 67 69 76 65 73 |eleserver gives| 000044b0 20 20 75 70 20 69 66 20 61 20 27 4e 6f 74 20 6c | up if a 'Not l| 000044c0 69 73 74 65 6e 69 6e 67 27 20 65 72 72 6f 72 20 |istening' error | 000044d0 6f 63 63 75 72 73 20 35 20 74 69 6d 65 73 2e 20 |occurs 5 times. | 000044e0 54 68 65 72 65 20 61 72 65 20 74 77 6f 20 0d 73 |There are two .s| 000044f0 74 61 6e 64 61 72 64 20 66 6f 72 6d 73 20 6f 66 |tandard forms of| 00004500 20 72 65 70 6c 79 2e 20 0d 20 0d 61 29 20 20 49 | reply. . .a) I| 00004510 66 20 20 61 6e 20 20 65 72 72 6f 72 20 20 68 61 |f an error ha| 00004520 73 20 20 6f 63 63 75 72 72 65 64 20 28 65 67 20 |s occurred (eg | 00004530 79 6f 75 20 68 61 76 65 20 72 65 71 75 65 73 74 |you have request| 00004540 65 64 20 61 20 73 69 6c 6c 79 20 70 61 67 65 20 |ed a silly page | 00004550 6e 75 6d 62 65 72 20 6f 72 20 0d 20 20 20 20 63 |number or . c| 00004560 68 61 6e 6e 65 6c 20 6e 75 6d 62 65 72 29 20 74 |hannel number) t| 00004570 68 65 6e 20 74 68 65 20 66 69 72 73 74 20 62 79 |hen the first by| 00004580 74 65 20 6f 66 20 74 68 65 20 72 65 70 6c 79 20 |te of the reply | 00004590 64 61 74 61 20 20 77 69 6c 6c 20 20 62 65 20 20 |data will be | 000045a0 61 6e 20 20 65 72 72 6f 72 20 0d 20 20 20 20 6e |an error . n| 000045b0 75 6d 62 65 72 20 20 61 6e 64 20 20 74 68 65 20 |umber and the | 000045c0 20 66 6f 6c 6c 6f 77 69 6e 67 20 62 79 74 65 73 | following bytes| 000045d0 20 77 69 6c 6c 20 62 65 20 61 6e 20 65 72 72 6f | will be an erro| 000045e0 72 20 6d 65 73 73 61 67 65 20 74 65 72 6d 69 6e |r message termin| 000045f0 61 74 65 64 20 62 79 20 61 20 0d 20 20 20 20 63 |ated by a . c| 00004600 61 72 72 69 61 67 65 20 72 65 74 75 72 6e 2e 20 |arriage return. | 00004610 0d 20 20 0d 62 29 20 20 49 66 20 6e 6f 20 65 72 |. .b) If no er| 00004620 72 6f 72 20 68 61 73 20 6f 63 63 75 72 72 65 64 |ror has occurred| 00004630 20 74 68 65 20 66 69 72 73 74 20 62 79 74 65 20 | the first byte | 00004640 6f 66 20 74 68 65 20 72 65 70 6c 79 20 64 61 74 |of the reply dat| 00004650 61 20 77 69 6c 6c 20 62 65 20 7a 65 72 6f 20 61 |a will be zero a| 00004660 6e 64 20 0d 20 20 20 20 74 68 65 20 73 75 62 73 |nd . the subs| 00004670 65 71 75 65 6e 74 20 62 79 74 65 73 20 77 69 6c |equent bytes wil| 00004680 6c 20 62 65 20 64 65 70 65 6e 64 65 6e 74 20 6f |l be dependent o| 00004690 6e 20 74 68 65 20 63 61 6c 6c 20 69 73 73 75 65 |n the call issue| 000046a0 64 2e 20 0d 20 0d 72 65 61 64 20 74 65 6c 65 73 |d. . .read teles| 000046b0 65 72 76 65 72 20 76 65 72 73 69 6f 6e 20 6e 75 |erver version nu| 000046c0 6d 62 65 72 20 0d 20 0d 31 2f 63 6c 69 65 6e 74 |mber . .1/client| 000046d0 20 74 6f 20 74 65 6c 65 73 65 72 76 65 72 20 0d | to teleserver .| 000046e0 20 0d 70 6f 72 74 20 20 20 20 20 20 20 20 20 20 | .port | 000046f0 20 26 42 33 20 0d 63 6f 6e 74 72 6f 6c 20 62 79 | &B3 .control by| 00004700 74 65 20 20 20 26 38 30 20 0d 64 61 74 61 20 20 |te &80 .data | 00004710 20 20 20 20 20 20 20 20 20 6e 69 6c 20 0d 20 0d | nil . .| 00004720 32 2f 74 65 6c 65 73 65 72 76 65 72 20 74 6f 20 |2/teleserver to | 00004730 63 6c 69 65 6e 74 20 0d 20 0d 70 6f 72 74 20 20 |client . .port | 00004740 20 20 20 20 20 20 20 20 20 26 42 32 20 0d 63 6f | &B2 .co| 00004750 6e 74 72 6f 6c 20 62 79 74 65 20 20 20 26 38 30 |ntrol byte &80| 00004760 20 0d 64 61 74 61 20 20 20 20 20 20 20 20 20 20 | .data | 00004770 20 30 20 6f 72 20 65 72 72 6f 72 20 6e 75 6d 62 | 0 or error numb| 00004780 65 72 20 0d 64 61 74 61 2b 31 20 20 20 20 20 20 |er .data+1 | 00004790 20 20 20 76 65 72 73 69 6f 6e 20 20 6e 75 6d 62 | version numb| 000047a0 65 72 20 20 61 73 20 20 63 68 61 72 61 63 74 65 |er as characte| 000047b0 72 20 20 73 74 72 69 6e 67 20 20 74 65 72 6d 69 |r string termi| 000047c0 6e 61 74 65 64 20 20 62 79 20 63 61 72 72 69 61 |nated by carria| 000047d0 67 65 20 0d 20 20 20 20 20 20 20 20 20 20 20 20 |ge . | 000047e0 20 20 20 72 65 74 75 72 6e 2e 20 0d 0d 69 73 73 | return. ..iss| 000047f0 75 65 20 70 61 67 65 20 72 65 71 75 65 73 74 20 |ue page request | 00004800 0d 20 0d 31 2f 63 6c 69 65 6e 74 20 74 6f 20 74 |. .1/client to t| 00004810 65 6c 65 73 65 72 76 65 72 20 0d 20 0d 70 6f 72 |eleserver . .por| 00004820 74 20 20 20 20 20 20 20 20 20 20 20 26 42 33 20 |t &B3 | 00004830 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 20 20 |.control byte | 00004840 26 38 31 20 0d 64 61 74 61 20 20 20 20 20 20 20 |&81 .data | 00004850 20 20 20 20 63 68 61 6e 6e 65 6c 20 6e 75 6d 62 | channel numb| 00004860 65 72 20 69 6e 20 41 53 43 49 49 20 0d 64 61 74 |er in ASCII .dat| 00004870 61 2b 31 2d 64 61 74 61 2b 33 20 20 70 61 67 65 |a+1-data+3 page| 00004880 20 6e 75 6d 62 65 72 20 69 6e 20 41 53 43 49 49 | number in ASCII| 00004890 20 0d 20 0d 32 2f 74 65 6c 65 73 65 72 76 65 72 | . .2/teleserver| 000048a0 20 74 6f 20 63 6c 69 65 6e 74 20 0d 20 0d 70 6f | to client . .po| 000048b0 72 74 20 20 20 20 20 20 20 20 20 20 20 26 42 32 |rt &B2| 000048c0 20 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 20 | .control byte | 000048d0 20 26 38 31 20 0d 64 61 74 61 20 20 20 20 20 20 | &81 .data | 000048e0 20 20 20 20 20 30 20 6f 72 20 65 72 72 6f 72 20 | 0 or error | 000048f0 6e 75 6d 62 65 72 20 0d 64 61 74 61 2b 31 20 20 |number .data+1 | 00004900 20 20 20 20 20 20 20 70 6f 73 69 74 69 6f 6e 20 | position | 00004910 69 6e 20 71 75 65 75 65 20 0d 20 0d 63 61 6e 63 |in queue . .canc| 00004920 65 6c 20 70 61 67 65 20 72 65 71 75 65 73 74 20 |el page request | 00004930 0d 20 0d 31 2f 63 6c 69 65 6e 74 20 74 6f 20 74 |. .1/client to t| 00004940 65 6c 65 73 65 72 76 65 72 20 0d 20 0d 70 6f 72 |eleserver . .por| 00004950 74 20 20 20 20 20 20 20 20 20 20 20 26 42 33 20 |t &B3 | 00004960 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 20 20 |.control byte | 00004970 26 38 32 20 0d 64 61 74 61 20 20 20 20 20 20 20 |&82 .data | 00004980 20 20 20 20 6e 69 6c 20 0d 20 0d 32 2f 74 65 6c | nil . .2/tel| 00004990 65 73 65 72 76 65 72 20 74 6f 20 63 6c 69 65 6e |eserver to clien| 000049a0 74 20 0d 20 0d 70 6f 72 74 20 20 20 20 20 20 20 |t . .port | 000049b0 20 20 20 20 26 42 32 20 0d 63 6f 6e 74 72 6f 6c | &B2 .control| 000049c0 20 62 79 74 65 20 20 20 26 38 32 20 0d 64 61 74 | byte &82 .dat| 000049d0 61 20 20 20 20 20 20 20 20 20 20 20 30 20 6f 72 |a 0 or| 000049e0 20 65 72 72 6f 72 20 6e 75 6d 62 65 72 20 0d 64 | error number .d| 000049f0 61 74 61 2b 31 20 20 20 20 20 20 20 20 20 6e 69 |ata+1 ni| 00004a00 6c 20 0d 20 0d 72 65 61 64 20 6d 61 78 20 75 73 |l . .read max us| 00004a10 65 72 73 20 70 65 72 20 63 68 61 6e 6e 65 6c 20 |ers per channel | 00004a20 0d 20 0d 31 2f 63 6c 69 65 6e 74 20 74 6f 20 74 |. .1/client to t| 00004a30 65 6c 65 73 65 72 76 65 72 20 0d 20 0d 70 6f 72 |eleserver . .por| 00004a40 74 20 20 20 20 20 20 20 20 20 20 20 26 42 33 20 |t &B3 | 00004a50 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 20 20 |.control byte | 00004a60 26 38 33 20 0d 64 61 74 61 20 20 20 20 20 20 20 |&83 .data | 00004a70 20 20 20 20 6e 69 6c 20 0d 20 0d 32 2f 74 65 6c | nil . .2/tel| 00004a80 65 73 65 72 76 65 72 20 74 6f 20 63 6c 69 65 6e |eserver to clien| 00004a90 74 20 0d 20 0d 70 6f 72 74 20 20 20 20 20 20 20 |t . .port | 00004aa0 20 20 20 20 26 42 32 20 0d 63 6f 6e 74 72 6f 6c | &B2 .control| 00004ab0 20 62 79 74 65 20 20 20 26 38 33 20 0d 64 61 74 | byte &83 .dat| 00004ac0 61 20 20 20 20 20 20 20 20 20 20 20 30 20 6f 72 |a 0 or| 00004ad0 20 65 72 72 6f 72 20 6e 75 6d 62 65 72 20 0d 64 | error number .d| 00004ae0 61 74 61 2b 31 20 20 20 20 20 20 20 20 20 6d 61 |ata+1 ma| 00004af0 78 20 75 73 65 72 73 20 0d 20 0d 72 65 61 64 20 |x users . .read | 00004b00 64 61 74 65 20 61 6e 64 20 74 69 6d 65 20 0d 20 |date and time . | 00004b10 0d 31 2f 63 6c 69 65 6e 74 20 74 6f 20 74 65 6c |.1/client to tel| 00004b20 65 73 65 72 76 65 72 20 0d 20 0d 70 6f 72 74 20 |eserver . .port | 00004b30 20 20 20 20 20 20 20 20 20 20 26 42 33 20 0d 63 | &B3 .c| 00004b40 6f 6e 74 72 6f 6c 20 62 79 74 65 20 20 20 26 38 |ontrol byte &8| 00004b50 34 20 0d 64 61 74 61 20 20 20 20 20 20 20 20 20 |4 .data | 00004b60 20 20 6e 69 6c 20 0d 20 0d 32 2f 74 65 6c 65 73 | nil . .2/teles| 00004b70 65 72 76 65 72 20 74 6f 20 63 6c 69 65 6e 74 20 |erver to client | 00004b80 0d 20 0d 70 6f 72 74 20 20 20 20 20 20 20 20 20 |. .port | 00004b90 20 20 26 42 32 20 0d 63 6f 6e 74 72 6f 6c 20 62 | &B2 .control b| 00004ba0 79 74 65 20 20 20 26 38 34 20 0d 64 61 74 61 20 |yte &84 .data | 00004bb0 20 20 20 20 20 20 20 20 20 20 30 20 6f 72 20 65 | 0 or e| 00004bc0 72 72 6f 72 20 6e 75 6d 62 65 72 20 0d 64 61 74 |rror number .dat| 00004bd0 61 2b 31 20 20 20 20 20 20 20 20 20 74 69 6d 65 |a+1 time| 00004be0 20 61 6e 64 20 64 61 74 65 20 69 6e 20 41 53 43 | and date in ASC| 00004bf0 49 49 20 28 48 48 3a 4d 4d 3a 53 53 44 44 2f 4d |II (HH:MM:SSDD/M| 00004c00 4d 2f 59 59 59 59 29 20 0d 20 0d 6c 6f 67 6f 66 |M/YYYY) . .logof| 00004c10 66 20 0d 20 0d 31 2f 63 6c 69 65 6e 74 20 74 6f |f . .1/client to| 00004c20 20 74 65 6c 65 73 65 72 76 65 72 20 0d 20 0d 70 | teleserver . .p| 00004c30 6f 72 74 20 20 20 20 20 20 20 20 20 20 20 26 42 |ort &B| 00004c40 33 20 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 20 |3 .control byte | 00004c50 20 20 26 38 35 20 0d 64 61 74 61 20 20 20 20 20 | &85 .data | 00004c60 20 20 20 20 20 20 6e 69 6c 20 0d 20 0d 32 2f 74 | nil . .2/t| 00004c70 65 6c 65 73 65 72 76 65 72 20 74 6f 20 63 6c 69 |eleserver to cli| 00004c80 65 6e 74 20 0d 20 0d 70 6f 72 74 20 20 20 20 20 |ent . .port | 00004c90 20 20 20 20 20 20 26 42 32 20 0d 63 6f 6e 74 72 | &B2 .contr| 00004ca0 6f 6c 20 62 79 74 65 20 20 20 26 38 35 20 0d 64 |ol byte &85 .d| 00004cb0 61 74 61 20 20 20 20 20 20 20 20 20 20 20 30 20 |ata 0 | 00004cc0 6f 72 20 65 72 72 6f 72 20 6e 75 6d 62 65 72 20 |or error number | 00004cd0 0d 64 61 74 61 2b 31 20 20 20 20 20 20 20 20 20 |.data+1 | 00004ce0 6e 69 6c 20 0d 20 0d 70 61 67 65 20 72 65 71 75 |nil . .page requ| 00004cf0 65 73 74 20 77 69 74 68 20 74 69 6d 65 20 64 65 |est with time de| 00004d00 6c 61 79 20 0d 20 0d 31 2f 63 6c 69 65 6e 74 20 |lay . .1/client | 00004d10 74 6f 20 74 65 6c 65 73 65 72 76 65 72 20 0d 20 |to teleserver . | 00004d20 0d 70 6f 72 74 20 20 20 20 20 20 20 20 20 20 20 |.port | 00004d30 26 42 33 20 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 |&B3 .control byt| 00004d40 65 20 20 20 26 38 36 20 0d 64 61 74 61 20 20 20 |e &86 .data | 00004d50 20 20 20 20 20 20 20 20 63 68 61 6e 6e 65 6c 20 | channel | 00004d60 6e 75 6d 62 65 72 20 69 6e 20 41 53 43 49 49 20 |number in ASCII | 00004d70 0d 64 61 74 61 2b 31 2d 64 61 74 61 2b 33 20 20 |.data+1-data+3 | 00004d80 70 61 67 65 20 6e 75 6d 62 65 72 20 69 6e 20 41 |page number in A| 00004d90 53 43 49 49 20 0d 20 0d 32 2f 74 65 6c 65 73 65 |SCII . .2/telese| 00004da0 72 76 65 72 20 74 6f 20 63 6c 69 65 6e 74 20 0d |rver to client .| 00004db0 20 0d 70 6f 72 74 20 20 20 20 20 20 20 20 20 20 | .port | 00004dc0 20 26 42 32 20 0d 63 6f 6e 74 72 6f 6c 20 62 79 | &B2 .control by| 00004dd0 74 65 20 20 20 26 38 36 20 0d 64 61 74 61 20 20 |te &86 .data | 00004de0 20 20 20 20 20 20 20 20 20 30 20 6f 72 20 65 72 | 0 or er| 00004df0 72 6f 72 20 6e 75 6d 62 65 72 20 0d 64 61 74 61 |ror number .data| 00004e00 2b 31 20 20 20 20 20 20 20 20 20 70 6f 73 69 74 |+1 posit| 00004e10 69 6f 6e 20 69 6e 20 71 75 65 75 65 20 0d 20 0d |ion in queue . .| 00004e20 72 65 71 75 65 73 74 20 70 6f 72 74 20 76 61 6c |request port val| 00004e30 75 65 20 0d 20 0d 31 2f 63 6c 69 65 6e 74 20 74 |ue . .1/client t| 00004e40 6f 20 74 65 6c 65 73 65 72 76 65 72 20 0d 20 0d |o teleserver . .| 00004e50 70 6f 72 74 20 20 20 20 20 20 20 20 20 20 20 26 |port &| 00004e60 42 33 20 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 |B3 .control byte| 00004e70 20 20 20 26 38 37 20 0d 64 61 74 61 20 20 20 20 | &87 .data | 00004e80 20 20 20 20 20 20 20 70 6f 72 74 20 6e 75 6d 62 | port numb| 00004e90 65 72 20 69 6e 20 72 61 6e 67 65 20 30 20 74 6f |er in range 0 to| 00004ea0 20 33 20 0d 20 0d 32 2f 74 65 6c 65 73 65 72 76 | 3 . .2/teleserv| 00004eb0 65 72 20 74 6f 20 63 6c 69 65 6e 74 20 0d 20 0d |er to client . .| 00004ec0 70 6f 72 74 20 20 20 20 20 20 20 20 20 20 20 26 |port &| 00004ed0 42 32 20 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 |B2 .control byte| 00004ee0 20 20 20 26 38 37 20 0d 64 61 74 61 20 20 20 20 | &87 .data | 00004ef0 20 20 20 20 20 20 20 30 20 6f 72 20 65 72 72 6f | 0 or erro| 00004f00 72 20 6e 75 6d 62 65 72 20 0d 64 61 74 61 2b 31 |r number .data+1| 00004f10 2d 64 61 74 61 2b 32 20 20 70 6f 72 74 20 76 61 |-data+2 port va| 00004f20 6c 75 65 20 0d 20 0d 20 0d 52 65 63 65 70 74 69 |lue . . .Recepti| 00004f30 6f 6e 20 6f 66 20 74 68 65 20 74 65 6c 65 74 65 |on of the telete| 00004f40 78 74 20 70 61 67 65 20 0d 20 0d 54 68 65 20 20 |xt page . .The | 00004f50 74 65 6c 65 73 65 72 76 65 72 20 73 65 6e 64 73 |teleserver sends| 00004f60 20 74 68 65 20 70 61 67 65 20 6f 6e 20 70 6f 72 | the page on por| 00004f70 74 20 26 42 34 2e 20 54 68 65 20 63 6f 6e 74 72 |t &B4. The contr| 00004f80 6f 6c 20 62 79 74 65 20 77 69 6c 6c 20 62 65 20 |ol byte will be | 00004f90 26 38 30 20 69 66 20 6e 6f 20 0d 65 72 72 6f 72 |&80 if no .error| 00004fa0 20 68 61 73 20 6f 63 63 75 72 72 65 64 20 6f 74 | has occurred ot| 00004fb0 68 65 72 77 69 73 65 20 74 68 65 20 63 6f 6e 74 |herwise the cont| 00004fc0 72 6f 6c 20 62 79 74 65 20 77 69 6c 6c 20 62 65 |rol byte will be| 00004fd0 20 26 38 31 2e 20 54 68 65 20 6f 6e 6c 79 20 65 | &81. The only e| 00004fe0 72 72 6f 72 20 74 68 61 74 20 0d 77 69 6c 6c 20 |rror that .will | 00004ff0 20 6f 63 63 75 72 20 20 77 69 6c 6c 20 20 62 65 | occur will be| 00005000 20 20 61 20 20 27 54 69 6d 65 64 20 20 6f 75 74 | a 'Timed out| 00005010 27 20 20 65 72 72 6f 72 20 69 65 20 79 6f 75 20 |' error ie you | 00005020 68 61 76 65 20 70 72 6f 62 61 62 6c 79 20 61 73 |have probably as| 00005030 6b 65 64 20 66 6f 72 20 61 20 0d 6e 6f 6e 2d 65 |ked for a .non-e| 00005040 78 69 73 74 65 6e 74 20 70 61 67 65 2e 20 0d 54 |xistent page. .T| 00005050 68 65 20 64 61 74 61 20 69 6e 20 74 68 65 20 72 |he data in the r| 00005060 65 63 65 69 76 65 20 62 6c 6f 63 6b 20 62 75 66 |eceive block buf| 00005070 66 65 72 20 77 69 6c 6c 20 62 65 20 74 68 65 20 |fer will be the | 00005080 70 61 67 65 20 72 65 71 75 65 73 74 65 64 20 69 |page requested i| 00005090 66 20 74 68 65 72 65 20 69 73 20 6e 6f 20 0d 65 |f there is no .e| 000050a0 72 72 6f 72 2c 20 6f 74 68 65 72 77 69 73 65 20 |rror, otherwise | 000050b0 74 68 65 20 64 61 74 61 20 77 69 6c 6c 20 62 65 |the data will be| 000050c0 20 61 6e 20 65 72 72 6f 72 20 6d 65 73 73 61 67 | an error messag| 000050d0 65 20 74 65 72 6d 69 6e 61 74 65 64 20 20 62 79 |e terminated by| 000050e0 20 20 61 20 20 63 61 72 72 69 61 67 65 20 0d 72 | a carriage .r| 000050f0 65 74 75 72 6e 2e 49 66 20 20 79 6f 75 20 20 73 |eturn.If you s| 00005100 75 63 63 65 73 73 66 75 6c 6c 79 20 20 72 65 63 |uccessfully rec| 00005110 65 69 76 65 20 61 20 70 61 67 65 20 74 68 65 6e |eive a page then| 00005120 20 6c 6f 63 61 74 69 6f 6e 73 20 26 33 46 45 20 | locations &3FE | 00005130 61 6e 64 20 26 33 46 46 20 69 6e 74 6f 20 0d 74 |and &3FF into .t| 00005140 68 65 20 72 65 63 65 69 76 65 20 62 6c 6f 63 6b |he receive block| 00005150 20 62 75 66 66 65 72 20 77 69 6c 6c 20 63 6f 6e | buffer will con| 00005160 74 61 69 6e 20 74 68 65 20 73 75 62 20 70 61 67 |tain the sub pag| 00005170 65 20 6e 75 6d 62 65 72 20 69 6e 20 42 43 44 20 |e number in BCD | 00005180 66 6f 72 6d 61 74 2e 20 20 26 33 46 45 20 0d 63 |format. &3FE .c| 00005190 6f 6e 74 61 69 6e 73 20 74 68 65 20 68 69 2d 62 |ontains the hi-b| 000051a0 79 74 65 20 61 6e 64 20 26 33 46 46 20 63 6f 6e |yte and &3FF con| 000051b0 74 61 69 6e 73 20 74 68 65 20 6c 6f 2d 62 79 74 |tains the lo-byt| 000051c0 65 20 0d 20 0d 20 20 20 20 20 20 20 20 20 20 20 |e . . | 000051d0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00005200 3d 3d 3d 3d 3d 3d 3d 3d 20 0d 20 0d 45 52 52 4f |======== . .ERRO| 00005210 52 20 4e 55 4d 42 45 52 53 20 0d 20 0d 50 6f 73 |R NUMBERS . .Pos| 00005220 73 69 62 6c 65 20 65 72 72 6f 72 20 6e 75 6d 62 |sible error numb| 00005230 65 72 73 20 61 72 65 20 3a 20 0d 20 0d 31 20 20 |ers are : . .1 | 00005240 20 20 42 61 64 20 70 61 67 65 20 6e 75 6d 62 65 | Bad page numbe| 00005250 72 20 0d 32 20 20 20 20 42 61 64 20 63 68 61 6e |r .2 Bad chan| 00005260 6e 65 6c 20 0d 33 20 20 20 20 43 68 61 6e 6e 65 |nel .3 Channe| 00005270 6c 20 62 75 73 79 20 0d 34 20 20 20 20 54 69 6d |l busy .4 Tim| 00005280 65 20 75 6e 61 76 61 69 6c 61 62 6c 65 20 0d 35 |e unavailable .5| 00005290 20 20 20 20 42 61 64 20 70 6f 72 74 20 0d 20 0d | Bad port . .| 000052a0 49 66 20 61 6e 20 65 72 72 6f 72 20 69 73 20 72 |If an error is r| 000052b0 65 63 65 69 76 65 64 20 74 68 65 6e 20 61 6e 20 |eceived then an | 000052c0 65 72 72 6f 72 20 6d 65 73 73 61 67 65 20 74 65 |error message te| 000052d0 72 6d 69 6e 61 74 65 64 20 62 79 20 61 20 63 61 |rminated by a ca| 000052e0 72 72 69 61 67 65 20 20 72 65 74 75 72 6e 20 0d |rriage return .| 000052f0 77 69 6c 6c 20 62 65 20 72 65 74 75 72 6e 65 64 |will be returned| 00005300 20 69 6e 20 64 61 74 61 2b 31 2e 20 0d 20 0d 54 | in data+1. . .T| 00005310 68 65 20 53 45 52 56 45 52 27 73 20 72 65 63 65 |he SERVER's rece| 00005320 69 76 65 20 62 75 66 66 65 72 20 69 73 20 26 35 |ive buffer is &5| 00005330 30 20 62 79 74 65 73 2e 20 0d 20 0d 54 68 65 20 |0 bytes. . .The | 00005340 20 53 45 52 56 45 52 20 20 74 72 61 6e 73 6d 69 | SERVER transmi| 00005350 74 73 20 20 61 20 20 62 6c 6f 63 6b 20 6f 66 20 |ts a block of | 00005360 26 34 30 30 20 62 79 74 65 73 20 6f 6e 20 70 6f |&400 bytes on po| 00005370 72 74 20 26 42 33 20 77 68 65 6e 20 74 72 61 6e |rt &B3 when tran| 00005380 73 6d 69 74 74 69 6e 67 20 61 20 0d 70 61 67 65 |smitting a .page| 00005390 2e 20 49 74 20 74 72 61 6e 73 6d 69 74 73 20 61 |. It transmits a| 000053a0 20 62 6c 6f 63 6b 20 6f 66 20 26 32 30 20 62 79 | block of &20 by| 000053b0 74 65 73 20 69 6e 20 61 6c 6c 20 6f 74 68 65 72 |tes in all other| 000053c0 20 63 61 73 65 73 2e 20 0d 20 0d 20 20 20 20 20 | cases. . . | 000053d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000053e0 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d | --------------| 000053f0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00005400 2d 20 0d 0d 4c 6f 67 67 69 6e 67 20 6f 6e 20 74 |- ..Logging on t| 00005410 6f 20 74 68 65 20 73 65 72 76 65 72 20 0d 20 0d |o the server . .| 00005420 43 6c 69 65 6e 74 20 74 6f 20 53 65 72 76 65 72 |Client to Server| 00005430 20 0d 20 0d 70 6f 72 74 20 20 20 20 20 20 20 20 | . .port | 00005440 20 20 20 20 20 20 20 26 42 30 20 0d 20 0d 63 6f | &B0 . .co| 00005450 6e 74 72 6f 6c 20 62 79 74 65 20 20 20 20 20 20 |ntrol byte | 00005460 20 26 38 30 20 0d 20 0d 44 61 74 61 20 20 20 20 | &80 . .Data | 00005470 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 73 | The s| 00005480 74 72 69 6e 67 20 54 45 4c 45 54 45 58 54 20 61 |tring TELETEXT a| 00005490 73 20 73 74 61 6e 64 61 72 64 20 41 53 43 49 49 |s standard ASCII| 000054a0 20 28 74 68 65 20 73 65 72 76 65 72 20 74 79 70 | (the server typ| 000054b0 65 29 20 0d 20 0d 53 65 72 76 65 72 20 74 6f 20 |e) . .Server to | 000054c0 43 6c 69 65 6e 74 20 0d 20 0d 70 6f 72 74 20 20 |Client . .port | 000054d0 20 20 20 20 20 20 20 20 20 20 20 20 20 26 42 31 | &B1| 000054e0 20 0d 20 0d 63 6f 6e 74 72 6f 6c 20 62 79 74 65 | . .control byte| 000054f0 20 20 20 20 20 20 20 26 38 30 20 0d 20 0d 44 61 | &80 . .Da| 00005500 74 61 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |ta | 00005510 20 30 20 6f 72 20 65 72 72 6f 72 20 6e 75 6d 62 | 0 or error numb| 00005520 65 72 20 0d 44 61 74 61 2b 31 20 20 20 20 20 20 |er .Data+1 | 00005530 20 20 20 20 20 20 20 62 61 73 65 20 70 6f 72 74 | base port| 00005540 20 6e 75 6d 62 65 72 20 66 6f 72 20 66 75 72 74 | number for furt| 00005550 68 65 72 20 65 78 63 68 61 6e 67 65 73 20 0d 44 |her exchanges .D| 00005560 61 74 61 2b 32 20 20 20 20 20 20 20 20 20 20 20 |ata+2 | 00005570 20 20 62 69 6e 61 72 79 20 76 65 72 69 73 6f 6e | binary verison| 00005580 20 6e 75 6d 62 65 72 20 6f 66 20 74 68 65 20 73 | number of the s| 00005590 65 72 76 65 72 20 73 6f 66 74 77 61 72 65 20 0d |erver software .| 000055a0 44 61 74 61 2b 33 20 20 20 20 20 20 20 20 20 20 |Data+3 | 000055b0 20 20 20 53 65 72 76 65 72 20 74 79 70 65 20 28 | Server type (| 000055c0 38 20 63 68 61 72 73 2c 20 66 6f 72 6d 61 74 20 |8 chars, format | 000055d0 61 73 20 66 6f 72 20 43 6c 69 65 6e 74 20 74 6f |as for Client to| 000055e0 20 53 65 72 76 65 72 29 20 0d 44 61 74 61 2b 31 | Server) .Data+1| 000055f0 31 20 20 20 20 20 20 20 20 20 20 20 20 4c 65 6e |1 Len| 00005600 67 74 68 20 6f 66 20 73 65 72 76 65 72 20 6e 61 |gth of server na| 00005610 6d 65 20 28 3d 30 20 69 66 20 6e 6f 74 20 70 72 |me (=0 if not pr| 00005620 65 73 65 6e 74 29 20 0d 44 61 74 61 2b 31 32 20 |esent) .Data+12 | 00005630 20 20 20 20 20 20 20 20 20 20 20 53 65 72 76 65 | Serve| 00005640 72 20 6e 61 6d 65 20 28 6f 70 74 69 6f 6e 61 6c |r name (optional| 00005650 29 20 0d 44 61 74 61 2b 31 32 2b 4e 61 6d 65 4c |) .Data+12+NameL| 00005660 65 6e 20 20 20 20 53 65 72 76 65 72 20 74 79 70 |en Server typ| 00005670 65 20 64 65 70 65 6e 64 61 6e 74 20 4f 52 20 65 |e dependant OR e| 00005680 72 72 6f 72 20 73 74 72 69 6e 67 20 20 0d 20 0d |rror string . .| 00005690 20 0d 54 68 65 20 20 6c 65 6e 67 74 68 20 20 6f | .The length o| 000056a0 66 20 20 74 68 65 20 72 65 63 65 69 76 65 20 62 |f the receive b| 000056b0 6c 6f 63 6b 20 62 75 66 66 65 72 20 6e 65 65 64 |lock buffer need| 000056c0 65 64 20 74 6f 20 72 65 63 65 69 76 65 20 74 68 |ed to receive th| 000056d0 69 73 20 72 65 73 70 6f 6e 73 65 20 66 72 6f 6d |is response from| 000056e0 20 0d 74 68 65 20 73 65 72 76 65 72 20 77 69 6c | .the server wil| 000056f0 6c 20 6e 6f 74 20 65 78 63 65 65 64 20 26 32 30 |l not exceed &20| 00005700 20 62 79 74 65 73 2e 20 0d | bytes. .| 00005709
.