Home » CEEFAX disks » telesoftware5.adl » 22-01-88/TP\INF
22-01-88/TP\INF
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » CEEFAX disks » telesoftware5.adl |
Filename: | 22-01-88/TP\INF |
Read OK: | ✔ |
File size: | 40A2 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
TELEPRINTER Teletext pages can sometimes be frustrating, many information pages are broadcast twice and reading a magazine made up of rolling pages can involve more waiting than reading. Saving a series of pages to disc is excessively tedious, and unless you have ADFS only 31 pages can be saved on a disc, and even the ADFS is not hassle free. What is needed is a program that will :- a) Automatically save a series of pages to disc ready to be reloaded for viewing at the users normal reading speed. b) Give an instant hard copy at the press of a key. c) Save as many Teletext pages on disc as the available storage space will allow. d) Incorporate a built in printer buffer to avoid waiting for the next page to be displayed. e) Work quite happily with either the Teletext Filing System or the new ATS. f) Cope with data corruption because of poor reception without crashing. The program has taken me a little time to write and test, well to be honest quite a long time - far too long in fact. The final version (mark 7) now satisfies all my original requirements, and in two respects performs better than expected. When I started I never seriously thought it would be possible to cram more than 100 Teletext pages onto one 100K disc, and I did not envisage incorporating an editing routine. I am also quite smug about the amount of built in "idiot proofing", you can call it "user friendly" if you insist, I prefer the first phrase as I frequently need protection from my own idiocy. Satisfying the first requirement was my initial target which would not have been too hard but for the need to maintain compatibility with both the ATS and the TFS. Because the TFS is a filing system it is nescessary to select the DFS before saving and reselect the TFS afterwards, the problem is that changing the filing system appears to reset the ON ERROR pointer, and my original version relied heavily on disc error handling. Much cursing, swearing and kicking the waste paper basket round the room ensued before the penny finally dropped, the solution is to reset the ON ERROR statement when reselecting the TFS, see PROCtsoft. The second difficulty is that it is nescessary to detect which sub-page number is being downloaded. This information is "hamming encoded". Both systems provide Osword calls to do the decoding for you, but they are incompatible with each other. Much peaking, poking and experimenting was required before FNham could be written to replace these Osword calls. The final version can be left to download a complete series of rolling pages automatically, leaving you free to watch the telly. I use an amended version to save all the Telesoft magazine pages to disc every friday, ready for viewing when I come back from doing the shopping. The instant printout routine caused no compatibility difficulties, but the complexity of interpreting Teletext control codes in order to eliminate graphics and control characters resulted in a basic routine stuffed full of IF's and GOTO's. These commands are very slow and the need to test all 960 characters on the screen resulted in the printout being far from "instant". The solution is, of course, machine code and the decoding delay is now barely perceptable. This code also converts the pound, half, hash, quarter, three quarter and divide characters from the Teletext value into the appropriate printer codes. You may need to customise these codes to suit your printer, these are clearly marked with a REM statement in listing one. The method of disc storage has changed many times in the development of the TELEPRINTER program, I initially used a simple *SAVE routine and quickly hit the 31 file barrier. The initial answer to this was to read and write disc sectors directly, using Osword &7F and with sectors 0 and 1 set up as a customised directory. This increased the maximum number of pages on a 100K disc to 99 but this method has three serious drawbacks. Firstly it is a non standard disc format which cannot be *CATalogued, but more seriously it was totally inflexible, having a fixed storage capacity regardless of disc format. Also this Osword call can only handle whole 256 byte sectors four of which are needed for each screen, as a teletext screen can be stored in just 960 bytes this leaves the tail end of every four sectors unused. The ideal system would use the standard DFS commands to automatically expand itself to use the maximum storage capacity regardless of the disc format, and store screens continuously across sector boundaries. The final solution was to *SAVE a seperate index file "TPINDEX", which would be used to keep track of a random access file called "SCREENS". This file is initialised with OPENOUT and then extended by increasing the file pointer (PTR#) by 960 byte increments until a disc full error is generated, at which point the file is closed and the maximum number of files noted. This method takes greatest advantage of the available disc space and is compatible not only with 40 or 80 track systems and with single or double density but also with the ADFS, which treats both sides of a double sided disc as a continuous surface. An 80 track double sided disc using Acorn's own ADFS can store a maximum of 678 screens, other double density systems, using 18 sectors per track instead of 16, can achieve a massive 764 screens per disc (see fig. 1). The program has been split into two halves in order to leave the maximum space for a printer buffer. This is an ideal application for the I/O printer buffer broadcast last week. This buffer is 10.25K (prints 12 screens before stopping) with the TFS, or 12.75k (15 screens) using the ATS, the length being automatically adjusted according to the value of PAGE. This has been incorporated in listing one which also includes the printout code, note the alterations to the zero-page addresses, this is because the ATS uses the same area of memory originally allocated to the printer buffer. Although the ATS leaves these zero-page values as it finds them, the buffer code can interrupt the ATS and access these locations before the original values are restored. The amended buffer program will assemble the code, turn on the buffer and then chain the TELEPRINTER program. Alternatively you can use a sideways ram printer buffer, which should print at least 18 screens before finally grinding to a halt. The program contains no hardware specific commands, uses only well documented operating system calls and keeps all machine code above PAGE, as a result it is not only compatible with both teletext roms but also with the BBC, BBC+ and MASTER. It should also be possible to convert it to work with non-Acorn Teletext Adapters. It is most important to keep track of memory usage when devising this kind of program, not only to leave room for the buffer but also to ensure that the machine code and index areas are not overwritten. Fig 2 shows how the Beeb's memory has been allocated, note the area set aside for storing the program's variables, the temporary screen storage space and the index, the space between being used for the printer buffer. Those purists who advocate "structured programming" may well shudder at the number of GOTO's I have used, I take the view that if a command does the job with the minimum memory use, at the right speed for the application then use it. Too many people are wastimg time writing tortured PROCedures that are longer and more involved than nescessary merely to avoid the terrible blasphemy of using a GOTO. The logic of these programs are often more difficult to follow than the "primitive" IF THEN GOTO type, they are certainly not good programming practice. Of course you should avoid creating a maze of GOTO's, but it is wrong to be paranoid about the use of one little command. I live in an area where reception varies between excellent and hopeless, so any Teletext program has to be able to survive the worst that my aerial can throw at it. There are two possible data errors that could crash or confuse the program. Firstly the page number could be corrupted so that a series of pages would be saved with one or more sub pages missing, secondly the sub page number could be corrupted which would confuse the dehamming function, the latter is trapped by checking to see if FNham has run out of data when recognising a sub page number and skipping this sub page. These errors are detected by checking for gaps in the index and if any are found continuing the search past the end of the series until the index is complete. This method is also used to ensure that sub pages are not saved twice. The only way the program could become confused is if the last sub page number was corrupted, in which case the series would be saved one short and you would have to delete the whole series and resave. In my experience these errors are not common and in most cases you will be able to download the complete series at the first attempt. There is, however, no check for corruption in the page itself. This is partly because of incompatibility problems between the ATS and the TFS, but also because slightly corrupted pages are often perfectly readable. USING THE TELEPRINTER Having prattled on long enough about how the program was written, it is about time I explained how to use it. The program comes in two halves, simply CHAIN "TPRINT", this will assemble all the code before CHAINing "TPRINT2". First you will be prompted to insert either an empty disc or an already initialised Teleprinter disc, on pressing space it will search the disc for the index. If this cannot be found then it will set up a blank index and will try to initialise the largest "SCREENS" file that will fit onto the first available free space on the disc. It is best to use a blank disc to gain maximum storage space but as the Teleprinter program uses normal filing system commands it will not corrupt or overwrite any other file. If the disc is full then you will be prompted to insert another disc. Now you are ready to start downloading, simply enter the channel and page number and the program will do the rest. If the page you want has already been downloaded then the program will find it on the index and display it immediately with a printout option otherwise it will start searching for it "off air". If there are no sub pages then again it will be displayed with a printout option immediately on being found, entering anything other than "Y" or "y" will return you to the prompt screen. If there are sub pages then the whole series will be saved to disc (if not already saved) before being displayed in sequence. Note that the program does not wait for the first sub page in the series but instead saves them out of order. If there is insufficient room for all the screens then the program will save all the lower numbered screens that it has room for, and will then display only these lower numbers. On the right hand side of the prompt screen is shown the number of blank screen spaces left on the disc, if you try to download when this is nought then you will be asked to either load a new disc or to edit the existing file. Pressing <TAB> will enter the editor, this displays the channel and page number of all the screens saved so far in the order that they were saved, with an option to delete if required (entering anything other than "Y" or "y" will display the next channel and page number). If you are trying to delete a series of pages then you will be asked if you want to delete them all, answering anything other then "Y" or "y" will cause the sub pages to be displayed in turn with a delete option. This deletion operation removes the record from the index only and shuffles all the records down to leave a continuous space for any new screens, it does not erase or move the actual screens on the disc as this would take far too long. After several editing and resaving procedures the entries on the index will be in a logical order but the physical position on disc in the random access file "SCREENS" will be disordered. The program relies on the "TPINDEX" file to keep track of all the pages, if you erase this file then you will not be able to recover the screens saved so far. Pressing <ESCAPE> will return you to the prompt page at any time, though if you press <ESCAPE> part way through downloading a series of pages then none of those pages will be entered on the index as it is only updated at the end of the saving routine. PROCEDURES AND FUNCTIONS PROCprint : Display one page with printout option. FNham : De ham sub page number. PROCdis : Get screen from disc ready for display. PROCosc : Basic 1 version of OSCLI. PROCsave : Save one screen to disc. PROCscr : Setup prompt screen display. PROCtsoftl : Reselect telesoft system and reset ON ERROR. PROCinit : Load and read index. PROCnew : "Load new disc" message. PROCfull : "Disc full" message. PROCcat : Save index. PROCedit : Editor. PROCno : "No screens" message. PROCmsge : Display message. PROCspc : "Press space". PROCosg(x) : Load or save one screen using OSGPBP. PROCindx : Save index. FNget : Double height get routine. VARIABLES ch : Channel number. code : Call address for code. last : Last sub page number. d : Data. d$ : String data. divide : Printer code for divide character. found : Record number of screen found in search. half : Printer code for half character. hash : Printer code for hash character. hnl : File handle. high : Highest sub page number loaded. len : File length. L : General loop variable. L2 : General loop variable. next : Next free record number. one : Ones part of sub page number. p1,p2,p3,p4 : Parameters for FNget. pa : Page number. $page : String for storing page and sub p-age number. p : Assembler pass loop. pound : Printer code for pound character. quarter : Printer code for quarter character. scrns : Maximum number of screens. search : Combined channel and page number used in search routine. st : First sub-page number. pre : Previous sub-page number. store$ : String used to check for double height in PROCprint. tp : Temporary storage. threequart : Printer code for three quarter character. ten : tens part of sub page number. x : General input variable. FIG 1: Screens per disc ______________________________________________________ | | | | | | | | Filing System | DFS | DFS | DFS | ADFS | ADFS | | Density | S-D | D-D | D-D | D-D | D-D | | Sectors per Track | 10 | 16 | 18 | 16 | 18 | |___________________|______|______|______|______|______| | | | | | | | | 40T S-S | 102 | 166 | 188 | 166 | 188 | |___________________|______|______|______|______|______| | | | | | | | | 80T S-S | 209 | 337 | 380 | 337 | 380 | |___________________|______|______|______|______|______| | | | | | | | | 40T D-S | 102 | 166 | 188 | 337 | 380 | |___________________|______|______|______|______|______| | | | | | | | | 80T D-S | 209 | 337 | 380 | 678 | 764 | |___________________|______|______|______|______|______| FIG 2: Memory map TFS _____________ ATS | | | SCREEN | &7C00|_____________|&7C00 | | | SCREEN | | STORAGE | &7480|_____________|&7480 | | | INDEX | &6800|_____________|&6800 | | | PRINT CODE | &6700|_____________|&6700 | | | BUFFER CODE | &6600|_____________|&6600 | | | BUFFER | |_____________| &3D00| HIMEM |&3300 | | | VARIABLES | |_____________| | TOP | | | | BASIC | &2400|_____________|&1A00 PAGE
00000000 20 54 45 4c 45 50 52 49 4e 54 45 52 0d 0d 20 54 | TELEPRINTER.. T| 00000010 65 6c 65 74 65 78 74 20 70 61 67 65 73 20 63 61 |eletext pages ca| 00000020 6e 20 73 6f 6d 65 74 69 6d 65 73 20 62 65 20 66 |n sometimes be f| 00000030 72 75 73 74 72 61 74 69 6e 67 2c 20 6d 61 6e 79 |rustrating, many| 00000040 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 70 61 67 | information pag| 00000050 65 73 20 61 72 65 0d 62 72 6f 61 64 63 61 73 74 |es are.broadcast| 00000060 20 74 77 69 63 65 20 61 6e 64 20 72 65 61 64 69 | twice and readi| 00000070 6e 67 20 61 20 6d 61 67 61 7a 69 6e 65 20 6d 61 |ng a magazine ma| 00000080 64 65 20 75 70 20 6f 66 20 72 6f 6c 6c 69 6e 67 |de up of rolling| 00000090 20 70 61 67 65 73 20 63 61 6e 0d 69 6e 76 6f 6c | pages can.invol| 000000a0 76 65 20 6d 6f 72 65 20 77 61 69 74 69 6e 67 20 |ve more waiting | 000000b0 74 68 61 6e 20 72 65 61 64 69 6e 67 2e 20 53 61 |than reading. Sa| 000000c0 76 69 6e 67 20 61 20 73 65 72 69 65 73 20 6f 66 |ving a series of| 000000d0 20 70 61 67 65 73 20 74 6f 20 64 69 73 63 20 69 | pages to disc i| 000000e0 73 0d 65 78 63 65 73 73 69 76 65 6c 79 20 74 65 |s.excessively te| 000000f0 64 69 6f 75 73 2c 20 61 6e 64 20 75 6e 6c 65 73 |dious, and unles| 00000100 73 20 79 6f 75 20 68 61 76 65 20 41 44 46 53 20 |s you have ADFS | 00000110 6f 6e 6c 79 20 33 31 20 70 61 67 65 73 20 63 61 |only 31 pages ca| 00000120 6e 20 62 65 20 73 61 76 65 64 0d 6f 6e 20 61 20 |n be saved.on a | 00000130 64 69 73 63 2c 20 61 6e 64 20 65 76 65 6e 20 74 |disc, and even t| 00000140 68 65 20 41 44 46 53 20 69 73 20 6e 6f 74 20 68 |he ADFS is not h| 00000150 61 73 73 6c 65 20 66 72 65 65 2e 0d 0d 57 68 61 |assle free...Wha| 00000160 74 20 69 73 20 6e 65 65 64 65 64 20 69 73 20 61 |t is needed is a| 00000170 20 70 72 6f 67 72 61 6d 20 74 68 61 74 20 77 69 | program that wi| 00000180 6c 6c 20 3a 2d 0d 0d 20 61 29 20 41 75 74 6f 6d |ll :-.. a) Autom| 00000190 61 74 69 63 61 6c 6c 79 20 73 61 76 65 20 61 20 |atically save a | 000001a0 73 65 72 69 65 73 20 6f 66 20 70 61 67 65 73 20 |series of pages | 000001b0 74 6f 20 64 69 73 63 20 72 65 61 64 79 20 74 6f |to disc ready to| 000001c0 20 62 65 20 72 65 6c 6f 61 64 65 64 20 66 6f 72 | be reloaded for| 000001d0 0d 76 69 65 77 69 6e 67 20 61 74 20 74 68 65 20 |.viewing at the | 000001e0 75 73 65 72 73 20 6e 6f 72 6d 61 6c 20 72 65 61 |users normal rea| 000001f0 64 69 6e 67 20 73 70 65 65 64 2e 0d 20 0d 20 62 |ding speed.. . b| 00000200 29 20 47 69 76 65 20 61 6e 20 69 6e 73 74 61 6e |) Give an instan| 00000210 74 20 68 61 72 64 20 63 6f 70 79 20 61 74 20 74 |t hard copy at t| 00000220 68 65 20 70 72 65 73 73 20 6f 66 20 61 20 6b 65 |he press of a ke| 00000230 79 2e 0d 20 0d 20 63 29 20 53 61 76 65 20 61 73 |y.. . c) Save as| 00000240 20 6d 61 6e 79 20 54 65 6c 65 74 65 78 74 20 70 | many Teletext p| 00000250 61 67 65 73 20 6f 6e 20 64 69 73 63 20 61 73 20 |ages on disc as | 00000260 74 68 65 20 61 76 61 69 6c 61 62 6c 65 20 73 74 |the available st| 00000270 6f 72 61 67 65 20 73 70 61 63 65 0d 77 69 6c 6c |orage space.will| 00000280 20 61 6c 6c 6f 77 2e 0d 20 0d 20 64 29 20 49 6e | allow.. . d) In| 00000290 63 6f 72 70 6f 72 61 74 65 20 61 20 62 75 69 6c |corporate a buil| 000002a0 74 20 69 6e 20 70 72 69 6e 74 65 72 20 62 75 66 |t in printer buf| 000002b0 66 65 72 20 74 6f 20 61 76 6f 69 64 20 77 61 69 |fer to avoid wai| 000002c0 74 69 6e 67 20 66 6f 72 20 74 68 65 20 6e 65 78 |ting for the nex| 000002d0 74 0d 70 61 67 65 20 74 6f 20 62 65 20 64 69 73 |t.page to be dis| 000002e0 70 6c 61 79 65 64 2e 0d 20 0d 20 65 29 20 57 6f |played.. . e) Wo| 000002f0 72 6b 20 71 75 69 74 65 20 68 61 70 70 69 6c 79 |rk quite happily| 00000300 20 77 69 74 68 20 65 69 74 68 65 72 20 74 68 65 | with either the| 00000310 20 54 65 6c 65 74 65 78 74 20 46 69 6c 69 6e 67 | Teletext Filing| 00000320 20 53 79 73 74 65 6d 20 6f 72 20 74 68 65 20 6e | System or the n| 00000330 65 77 0d 41 54 53 2e 0d 20 0d 20 66 29 20 43 6f |ew.ATS.. . f) Co| 00000340 70 65 20 77 69 74 68 20 64 61 74 61 20 63 6f 72 |pe with data cor| 00000350 72 75 70 74 69 6f 6e 20 62 65 63 61 75 73 65 20 |ruption because | 00000360 6f 66 20 70 6f 6f 72 20 72 65 63 65 70 74 69 6f |of poor receptio| 00000370 6e 20 77 69 74 68 6f 75 74 20 63 72 61 73 68 69 |n without crashi| 00000380 6e 67 2e 0d 20 0d 20 54 68 65 20 70 72 6f 67 72 |ng.. . The progr| 00000390 61 6d 20 68 61 73 20 74 61 6b 65 6e 20 6d 65 20 |am has taken me | 000003a0 61 20 6c 69 74 74 6c 65 20 74 69 6d 65 20 74 6f |a little time to| 000003b0 20 77 72 69 74 65 20 61 6e 64 20 74 65 73 74 2c | write and test,| 000003c0 20 77 65 6c 6c 20 74 6f 20 62 65 0d 68 6f 6e 65 | well to be.hone| 000003d0 73 74 20 71 75 69 74 65 20 61 20 6c 6f 6e 67 20 |st quite a long | 000003e0 74 69 6d 65 20 2d 20 66 61 72 20 74 6f 6f 20 6c |time - far too l| 000003f0 6f 6e 67 20 69 6e 20 66 61 63 74 2e 20 54 68 65 |ong in fact. The| 00000400 20 66 69 6e 61 6c 20 76 65 72 73 69 6f 6e 20 28 | final version (| 00000410 6d 61 72 6b 0d 37 29 20 6e 6f 77 20 73 61 74 69 |mark.7) now sati| 00000420 73 66 69 65 73 20 61 6c 6c 20 6d 79 20 6f 72 69 |sfies all my ori| 00000430 67 69 6e 61 6c 20 72 65 71 75 69 72 65 6d 65 6e |ginal requiremen| 00000440 74 73 2c 20 61 6e 64 20 69 6e 20 74 77 6f 20 72 |ts, and in two r| 00000450 65 73 70 65 63 74 73 0d 70 65 72 66 6f 72 6d 73 |espects.performs| 00000460 20 62 65 74 74 65 72 20 74 68 61 6e 20 65 78 70 | better than exp| 00000470 65 63 74 65 64 2e 20 57 68 65 6e 20 49 20 73 74 |ected. When I st| 00000480 61 72 74 65 64 20 49 20 6e 65 76 65 72 20 73 65 |arted I never se| 00000490 72 69 6f 75 73 6c 79 20 74 68 6f 75 67 68 74 20 |riously thought | 000004a0 69 74 0d 77 6f 75 6c 64 20 62 65 20 70 6f 73 73 |it.would be poss| 000004b0 69 62 6c 65 20 74 6f 20 63 72 61 6d 20 6d 6f 72 |ible to cram mor| 000004c0 65 20 74 68 61 6e 20 31 30 30 20 54 65 6c 65 74 |e than 100 Telet| 000004d0 65 78 74 20 70 61 67 65 73 20 6f 6e 74 6f 20 6f |ext pages onto o| 000004e0 6e 65 20 31 30 30 4b 20 64 69 73 63 2c 0d 61 6e |ne 100K disc,.an| 000004f0 64 20 49 20 64 69 64 20 6e 6f 74 20 65 6e 76 69 |d I did not envi| 00000500 73 61 67 65 20 69 6e 63 6f 72 70 6f 72 61 74 69 |sage incorporati| 00000510 6e 67 20 61 6e 20 65 64 69 74 69 6e 67 20 72 6f |ng an editing ro| 00000520 75 74 69 6e 65 2e 20 49 20 61 6d 20 61 6c 73 6f |utine. I am also| 00000530 20 71 75 69 74 65 0d 73 6d 75 67 20 61 62 6f 75 | quite.smug abou| 00000540 74 20 74 68 65 20 61 6d 6f 75 6e 74 20 6f 66 20 |t the amount of | 00000550 62 75 69 6c 74 20 69 6e 20 22 69 64 69 6f 74 20 |built in "idiot | 00000560 70 72 6f 6f 66 69 6e 67 22 2c 20 79 6f 75 20 63 |proofing", you c| 00000570 61 6e 20 63 61 6c 6c 20 69 74 20 22 75 73 65 72 |an call it "user| 00000580 0d 66 72 69 65 6e 64 6c 79 22 20 69 66 20 79 6f |.friendly" if yo| 00000590 75 20 69 6e 73 69 73 74 2c 20 49 20 70 72 65 66 |u insist, I pref| 000005a0 65 72 20 74 68 65 20 66 69 72 73 74 20 70 68 72 |er the first phr| 000005b0 61 73 65 20 61 73 20 49 20 66 72 65 71 75 65 6e |ase as I frequen| 000005c0 74 6c 79 20 6e 65 65 64 0d 70 72 6f 74 65 63 74 |tly need.protect| 000005d0 69 6f 6e 20 66 72 6f 6d 20 6d 79 20 6f 77 6e 20 |ion from my own | 000005e0 69 64 69 6f 63 79 2e 0d 0d 20 53 61 74 69 73 66 |idiocy... Satisf| 000005f0 79 69 6e 67 20 74 68 65 20 66 69 72 73 74 20 72 |ying the first r| 00000600 65 71 75 69 72 65 6d 65 6e 74 20 77 61 73 20 6d |equirement was m| 00000610 79 20 69 6e 69 74 69 61 6c 20 74 61 72 67 65 74 |y initial target| 00000620 20 77 68 69 63 68 20 77 6f 75 6c 64 20 6e 6f 74 | which would not| 00000630 0d 68 61 76 65 20 62 65 65 6e 20 74 6f 6f 20 68 |.have been too h| 00000640 61 72 64 20 62 75 74 20 66 6f 72 20 74 68 65 20 |ard but for the | 00000650 6e 65 65 64 20 74 6f 20 6d 61 69 6e 74 61 69 6e |need to maintain| 00000660 20 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 20 77 | compatibility w| 00000670 69 74 68 20 62 6f 74 68 0d 74 68 65 20 41 54 53 |ith both.the ATS| 00000680 20 61 6e 64 20 74 68 65 20 54 46 53 2e 20 42 65 | and the TFS. Be| 00000690 63 61 75 73 65 20 74 68 65 20 54 46 53 20 69 73 |cause the TFS is| 000006a0 20 61 20 66 69 6c 69 6e 67 20 73 79 73 74 65 6d | a filing system| 000006b0 20 69 74 20 69 73 20 6e 65 73 63 65 73 73 61 72 | it is nescessar| 000006c0 79 0d 74 6f 20 73 65 6c 65 63 74 20 74 68 65 20 |y.to select the | 000006d0 44 46 53 20 62 65 66 6f 72 65 20 73 61 76 69 6e |DFS before savin| 000006e0 67 20 61 6e 64 20 72 65 73 65 6c 65 63 74 20 74 |g and reselect t| 000006f0 68 65 20 54 46 53 20 61 66 74 65 72 77 61 72 64 |he TFS afterward| 00000700 73 2c 20 74 68 65 0d 70 72 6f 62 6c 65 6d 20 69 |s, the.problem i| 00000710 73 20 74 68 61 74 20 63 68 61 6e 67 69 6e 67 20 |s that changing | 00000720 74 68 65 20 66 69 6c 69 6e 67 20 73 79 73 74 65 |the filing syste| 00000730 6d 20 61 70 70 65 61 72 73 20 74 6f 20 72 65 73 |m appears to res| 00000740 65 74 20 74 68 65 20 4f 4e 20 45 52 52 4f 52 0d |et the ON ERROR.| 00000750 70 6f 69 6e 74 65 72 2c 20 61 6e 64 20 6d 79 20 |pointer, and my | 00000760 6f 72 69 67 69 6e 61 6c 20 76 65 72 73 69 6f 6e |original version| 00000770 20 72 65 6c 69 65 64 20 68 65 61 76 69 6c 79 20 | relied heavily | 00000780 6f 6e 20 64 69 73 63 20 65 72 72 6f 72 20 68 61 |on disc error ha| 00000790 6e 64 6c 69 6e 67 2e 0d 4d 75 63 68 20 63 75 72 |ndling..Much cur| 000007a0 73 69 6e 67 2c 20 73 77 65 61 72 69 6e 67 20 61 |sing, swearing a| 000007b0 6e 64 20 6b 69 63 6b 69 6e 67 20 74 68 65 20 77 |nd kicking the w| 000007c0 61 73 74 65 20 70 61 70 65 72 20 62 61 73 6b 65 |aste paper baske| 000007d0 74 20 72 6f 75 6e 64 20 74 68 65 20 72 6f 6f 6d |t round the room| 000007e0 0d 65 6e 73 75 65 64 20 62 65 66 6f 72 65 20 74 |.ensued before t| 000007f0 68 65 20 70 65 6e 6e 79 20 66 69 6e 61 6c 6c 79 |he penny finally| 00000800 20 64 72 6f 70 70 65 64 2c 20 74 68 65 20 73 6f | dropped, the so| 00000810 6c 75 74 69 6f 6e 20 69 73 20 74 6f 20 72 65 73 |lution is to res| 00000820 65 74 20 74 68 65 20 4f 4e 0d 45 52 52 4f 52 20 |et the ON.ERROR | 00000830 73 74 61 74 65 6d 65 6e 74 20 77 68 65 6e 20 72 |statement when r| 00000840 65 73 65 6c 65 63 74 69 6e 67 20 74 68 65 20 54 |eselecting the T| 00000850 46 53 2c 20 73 65 65 20 50 52 4f 43 74 73 6f 66 |FS, see PROCtsof| 00000860 74 2e 20 54 68 65 20 73 65 63 6f 6e 64 0d 64 69 |t. The second.di| 00000870 66 66 69 63 75 6c 74 79 20 69 73 20 74 68 61 74 |fficulty is that| 00000880 20 69 74 20 69 73 20 6e 65 73 63 65 73 73 61 72 | it is nescessar| 00000890 79 20 74 6f 20 64 65 74 65 63 74 20 77 68 69 63 |y to detect whic| 000008a0 68 20 73 75 62 2d 70 61 67 65 20 6e 75 6d 62 65 |h sub-page numbe| 000008b0 72 20 69 73 0d 62 65 69 6e 67 20 64 6f 77 6e 6c |r is.being downl| 000008c0 6f 61 64 65 64 2e 20 54 68 69 73 20 69 6e 66 6f |oaded. This info| 000008d0 72 6d 61 74 69 6f 6e 20 69 73 20 22 68 61 6d 6d |rmation is "hamm| 000008e0 69 6e 67 20 65 6e 63 6f 64 65 64 22 2e 20 42 6f |ing encoded". Bo| 000008f0 74 68 20 73 79 73 74 65 6d 73 0d 70 72 6f 76 69 |th systems.provi| 00000900 64 65 20 4f 73 77 6f 72 64 20 63 61 6c 6c 73 20 |de Osword calls | 00000910 74 6f 20 64 6f 20 74 68 65 20 64 65 63 6f 64 69 |to do the decodi| 00000920 6e 67 20 66 6f 72 20 79 6f 75 2c 20 62 75 74 20 |ng for you, but | 00000930 74 68 65 79 20 61 72 65 20 69 6e 63 6f 6d 70 61 |they are incompa| 00000940 74 69 62 6c 65 0d 77 69 74 68 20 65 61 63 68 20 |tible.with each | 00000950 6f 74 68 65 72 2e 20 4d 75 63 68 20 70 65 61 6b |other. Much peak| 00000960 69 6e 67 2c 20 70 6f 6b 69 6e 67 20 61 6e 64 20 |ing, poking and | 00000970 65 78 70 65 72 69 6d 65 6e 74 69 6e 67 20 77 61 |experimenting wa| 00000980 73 20 72 65 71 75 69 72 65 64 0d 62 65 66 6f 72 |s required.befor| 00000990 65 20 46 4e 68 61 6d 20 63 6f 75 6c 64 20 62 65 |e FNham could be| 000009a0 20 77 72 69 74 74 65 6e 20 74 6f 20 72 65 70 6c | written to repl| 000009b0 61 63 65 20 74 68 65 73 65 20 4f 73 77 6f 72 64 |ace these Osword| 000009c0 20 63 61 6c 6c 73 2e 20 54 68 65 20 66 69 6e 61 | calls. The fina| 000009d0 6c 0d 76 65 72 73 69 6f 6e 20 63 61 6e 20 62 65 |l.version can be| 000009e0 20 6c 65 66 74 20 74 6f 20 64 6f 77 6e 6c 6f 61 | left to downloa| 000009f0 64 20 61 20 63 6f 6d 70 6c 65 74 65 20 73 65 72 |d a complete ser| 00000a00 69 65 73 20 6f 66 20 72 6f 6c 6c 69 6e 67 20 70 |ies of rolling p| 00000a10 61 67 65 73 0d 61 75 74 6f 6d 61 74 69 63 61 6c |ages.automatical| 00000a20 6c 79 2c 20 6c 65 61 76 69 6e 67 20 79 6f 75 20 |ly, leaving you | 00000a30 66 72 65 65 20 74 6f 20 77 61 74 63 68 20 74 68 |free to watch th| 00000a40 65 20 74 65 6c 6c 79 2e 20 49 20 75 73 65 20 61 |e telly. I use a| 00000a50 6e 20 61 6d 65 6e 64 65 64 0d 76 65 72 73 69 6f |n amended.versio| 00000a60 6e 20 74 6f 20 73 61 76 65 20 61 6c 6c 20 74 68 |n to save all th| 00000a70 65 20 54 65 6c 65 73 6f 66 74 20 6d 61 67 61 7a |e Telesoft magaz| 00000a80 69 6e 65 20 70 61 67 65 73 20 74 6f 20 64 69 73 |ine pages to dis| 00000a90 63 20 65 76 65 72 79 20 66 72 69 64 61 79 2c 0d |c every friday,.| 00000aa0 72 65 61 64 79 20 66 6f 72 20 76 69 65 77 69 6e |ready for viewin| 00000ab0 67 20 77 68 65 6e 20 49 20 63 6f 6d 65 20 62 61 |g when I come ba| 00000ac0 63 6b 20 66 72 6f 6d 20 64 6f 69 6e 67 20 74 68 |ck from doing th| 00000ad0 65 20 73 68 6f 70 70 69 6e 67 2e 0d 0d 20 54 68 |e shopping... Th| 00000ae0 65 20 69 6e 73 74 61 6e 74 20 70 72 69 6e 74 6f |e instant printo| 00000af0 75 74 20 72 6f 75 74 69 6e 65 20 63 61 75 73 65 |ut routine cause| 00000b00 64 20 6e 6f 20 63 6f 6d 70 61 74 69 62 69 6c 69 |d no compatibili| 00000b10 74 79 20 64 69 66 66 69 63 75 6c 74 69 65 73 2c |ty difficulties,| 00000b20 20 62 75 74 0d 74 68 65 20 63 6f 6d 70 6c 65 78 | but.the complex| 00000b30 69 74 79 20 6f 66 20 69 6e 74 65 72 70 72 65 74 |ity of interpret| 00000b40 69 6e 67 20 54 65 6c 65 74 65 78 74 20 63 6f 6e |ing Teletext con| 00000b50 74 72 6f 6c 20 63 6f 64 65 73 20 69 6e 20 6f 72 |trol codes in or| 00000b60 64 65 72 20 74 6f 0d 65 6c 69 6d 69 6e 61 74 65 |der to.eliminate| 00000b70 20 67 72 61 70 68 69 63 73 20 61 6e 64 20 63 6f | graphics and co| 00000b80 6e 74 72 6f 6c 20 63 68 61 72 61 63 74 65 72 73 |ntrol characters| 00000b90 20 72 65 73 75 6c 74 65 64 20 69 6e 20 61 20 62 | resulted in a b| 00000ba0 61 73 69 63 20 72 6f 75 74 69 6e 65 0d 73 74 75 |asic routine.stu| 00000bb0 66 66 65 64 20 66 75 6c 6c 20 6f 66 20 49 46 27 |ffed full of IF'| 00000bc0 73 20 61 6e 64 20 47 4f 54 4f 27 73 2e 20 54 68 |s and GOTO's. Th| 00000bd0 65 73 65 20 63 6f 6d 6d 61 6e 64 73 20 61 72 65 |ese commands are| 00000be0 20 76 65 72 79 20 73 6c 6f 77 20 61 6e 64 20 74 | very slow and t| 00000bf0 68 65 20 6e 65 65 64 0d 74 6f 20 74 65 73 74 20 |he need.to test | 00000c00 61 6c 6c 20 39 36 30 20 63 68 61 72 61 63 74 65 |all 960 characte| 00000c10 72 73 20 6f 6e 20 74 68 65 20 73 63 72 65 65 6e |rs on the screen| 00000c20 20 72 65 73 75 6c 74 65 64 20 69 6e 20 74 68 65 | resulted in the| 00000c30 20 70 72 69 6e 74 6f 75 74 20 62 65 69 6e 67 0d | printout being.| 00000c40 66 61 72 20 66 72 6f 6d 20 22 69 6e 73 74 61 6e |far from "instan| 00000c50 74 22 2e 20 54 68 65 20 73 6f 6c 75 74 69 6f 6e |t". The solution| 00000c60 20 69 73 2c 20 6f 66 20 63 6f 75 72 73 65 2c 20 | is, of course, | 00000c70 6d 61 63 68 69 6e 65 20 63 6f 64 65 20 61 6e 64 |machine code and| 00000c80 20 74 68 65 0d 64 65 63 6f 64 69 6e 67 20 64 65 | the.decoding de| 00000c90 6c 61 79 20 69 73 20 6e 6f 77 20 62 61 72 65 6c |lay is now barel| 00000ca0 79 20 70 65 72 63 65 70 74 61 62 6c 65 2e 20 54 |y perceptable. T| 00000cb0 68 69 73 20 63 6f 64 65 20 61 6c 73 6f 20 63 6f |his code also co| 00000cc0 6e 76 65 72 74 73 20 74 68 65 0d 70 6f 75 6e 64 |nverts the.pound| 00000cd0 2c 20 68 61 6c 66 2c 20 68 61 73 68 2c 20 71 75 |, half, hash, qu| 00000ce0 61 72 74 65 72 2c 20 74 68 72 65 65 20 71 75 61 |arter, three qua| 00000cf0 72 74 65 72 20 61 6e 64 20 64 69 76 69 64 65 20 |rter and divide | 00000d00 63 68 61 72 61 63 74 65 72 73 20 66 72 6f 6d 20 |characters from | 00000d10 74 68 65 0d 54 65 6c 65 74 65 78 74 20 76 61 6c |the.Teletext val| 00000d20 75 65 20 69 6e 74 6f 20 74 68 65 20 61 70 70 72 |ue into the appr| 00000d30 6f 70 72 69 61 74 65 20 70 72 69 6e 74 65 72 20 |opriate printer | 00000d40 63 6f 64 65 73 2e 20 59 6f 75 20 6d 61 79 20 6e |codes. You may n| 00000d50 65 65 64 20 74 6f 0d 63 75 73 74 6f 6d 69 73 65 |eed to.customise| 00000d60 20 74 68 65 73 65 20 63 6f 64 65 73 20 74 6f 20 | these codes to | 00000d70 73 75 69 74 20 79 6f 75 72 20 70 72 69 6e 74 65 |suit your printe| 00000d80 72 2c 20 74 68 65 73 65 20 61 72 65 20 63 6c 65 |r, these are cle| 00000d90 61 72 6c 79 20 6d 61 72 6b 65 64 20 77 69 74 68 |arly marked with| 00000da0 0d 61 20 52 45 4d 20 73 74 61 74 65 6d 65 6e 74 |.a REM statement| 00000db0 20 69 6e 20 6c 69 73 74 69 6e 67 20 6f 6e 65 2e | in listing one.| 00000dc0 0d 0d 20 54 68 65 20 6d 65 74 68 6f 64 20 6f 66 |.. The method of| 00000dd0 20 64 69 73 63 20 73 74 6f 72 61 67 65 20 68 61 | disc storage ha| 00000de0 73 20 63 68 61 6e 67 65 64 20 6d 61 6e 79 20 74 |s changed many t| 00000df0 69 6d 65 73 20 69 6e 20 74 68 65 20 64 65 76 65 |imes in the deve| 00000e00 6c 6f 70 6d 65 6e 74 20 6f 66 0d 74 68 65 20 54 |lopment of.the T| 00000e10 45 4c 45 50 52 49 4e 54 45 52 20 70 72 6f 67 72 |ELEPRINTER progr| 00000e20 61 6d 2c 20 49 20 69 6e 69 74 69 61 6c 6c 79 20 |am, I initially | 00000e30 75 73 65 64 20 61 20 73 69 6d 70 6c 65 20 2a 53 |used a simple *S| 00000e40 41 56 45 20 72 6f 75 74 69 6e 65 20 61 6e 64 0d |AVE routine and.| 00000e50 71 75 69 63 6b 6c 79 20 68 69 74 20 74 68 65 20 |quickly hit the | 00000e60 33 31 20 66 69 6c 65 20 62 61 72 72 69 65 72 2e |31 file barrier.| 00000e70 20 54 68 65 20 69 6e 69 74 69 61 6c 20 61 6e 73 | The initial ans| 00000e80 77 65 72 20 74 6f 20 74 68 69 73 20 77 61 73 20 |wer to this was | 00000e90 74 6f 20 72 65 61 64 0d 61 6e 64 20 77 72 69 74 |to read.and writ| 00000ea0 65 20 64 69 73 63 20 73 65 63 74 6f 72 73 20 64 |e disc sectors d| 00000eb0 69 72 65 63 74 6c 79 2c 20 75 73 69 6e 67 20 4f |irectly, using O| 00000ec0 73 77 6f 72 64 20 26 37 46 20 61 6e 64 20 77 69 |sword &7F and wi| 00000ed0 74 68 20 73 65 63 74 6f 72 73 20 30 20 61 6e 64 |th sectors 0 and| 00000ee0 20 31 0d 73 65 74 20 75 70 20 61 73 20 61 20 63 | 1.set up as a c| 00000ef0 75 73 74 6f 6d 69 73 65 64 20 64 69 72 65 63 74 |ustomised direct| 00000f00 6f 72 79 2e 20 54 68 69 73 20 69 6e 63 72 65 61 |ory. This increa| 00000f10 73 65 64 20 74 68 65 20 6d 61 78 69 6d 75 6d 20 |sed the maximum | 00000f20 6e 75 6d 62 65 72 20 6f 66 0d 70 61 67 65 73 20 |number of.pages | 00000f30 6f 6e 20 61 20 31 30 30 4b 20 64 69 73 63 20 74 |on a 100K disc t| 00000f40 6f 20 39 39 20 62 75 74 20 74 68 69 73 20 6d 65 |o 99 but this me| 00000f50 74 68 6f 64 20 68 61 73 20 74 68 72 65 65 20 73 |thod has three s| 00000f60 65 72 69 6f 75 73 20 64 72 61 77 62 61 63 6b 73 |erious drawbacks| 00000f70 2e 0d 46 69 72 73 74 6c 79 20 69 74 20 69 73 20 |..Firstly it is | 00000f80 61 20 6e 6f 6e 20 73 74 61 6e 64 61 72 64 20 64 |a non standard d| 00000f90 69 73 63 20 66 6f 72 6d 61 74 20 77 68 69 63 68 |isc format which| 00000fa0 20 63 61 6e 6e 6f 74 20 62 65 20 2a 43 41 54 61 | cannot be *CATa| 00000fb0 6c 6f 67 75 65 64 2c 20 62 75 74 0d 6d 6f 72 65 |logued, but.more| 00000fc0 20 73 65 72 69 6f 75 73 6c 79 20 69 74 20 77 61 | seriously it wa| 00000fd0 73 20 74 6f 74 61 6c 6c 79 20 69 6e 66 6c 65 78 |s totally inflex| 00000fe0 69 62 6c 65 2c 20 68 61 76 69 6e 67 20 61 20 66 |ible, having a f| 00000ff0 69 78 65 64 20 73 74 6f 72 61 67 65 20 63 61 70 |ixed storage cap| 00001000 61 63 69 74 79 0d 72 65 67 61 72 64 6c 65 73 73 |acity.regardless| 00001010 20 6f 66 20 64 69 73 63 20 66 6f 72 6d 61 74 2e | of disc format.| 00001020 20 41 6c 73 6f 20 74 68 69 73 20 4f 73 77 6f 72 | Also this Oswor| 00001030 64 20 63 61 6c 6c 20 63 61 6e 20 6f 6e 6c 79 20 |d call can only | 00001040 68 61 6e 64 6c 65 20 77 68 6f 6c 65 20 32 35 36 |handle whole 256| 00001050 0d 62 79 74 65 20 73 65 63 74 6f 72 73 20 66 6f |.byte sectors fo| 00001060 75 72 20 6f 66 20 77 68 69 63 68 20 61 72 65 20 |ur of which are | 00001070 6e 65 65 64 65 64 20 66 6f 72 20 65 61 63 68 20 |needed for each | 00001080 73 63 72 65 65 6e 2c 20 61 73 20 61 20 74 65 6c |screen, as a tel| 00001090 65 74 65 78 74 0d 73 63 72 65 65 6e 20 63 61 6e |etext.screen can| 000010a0 20 62 65 20 73 74 6f 72 65 64 20 69 6e 20 6a 75 | be stored in ju| 000010b0 73 74 20 39 36 30 20 62 79 74 65 73 20 74 68 69 |st 960 bytes thi| 000010c0 73 20 6c 65 61 76 65 73 20 74 68 65 20 74 61 69 |s leaves the tai| 000010d0 6c 20 65 6e 64 20 6f 66 20 65 76 65 72 79 0d 66 |l end of every.f| 000010e0 6f 75 72 20 73 65 63 74 6f 72 73 20 75 6e 75 73 |our sectors unus| 000010f0 65 64 2e 20 54 68 65 20 69 64 65 61 6c 20 73 79 |ed. The ideal sy| 00001100 73 74 65 6d 20 77 6f 75 6c 64 20 75 73 65 20 74 |stem would use t| 00001110 68 65 20 73 74 61 6e 64 61 72 64 20 44 46 53 20 |he standard DFS | 00001120 63 6f 6d 6d 61 6e 64 73 0d 74 6f 20 61 75 74 6f |commands.to auto| 00001130 6d 61 74 69 63 61 6c 6c 79 20 65 78 70 61 6e 64 |matically expand| 00001140 20 69 74 73 65 6c 66 20 74 6f 20 75 73 65 20 74 | itself to use t| 00001150 68 65 20 6d 61 78 69 6d 75 6d 20 73 74 6f 72 61 |he maximum stora| 00001160 67 65 20 63 61 70 61 63 69 74 79 0d 72 65 67 61 |ge capacity.rega| 00001170 72 64 6c 65 73 73 20 6f 66 20 74 68 65 20 64 69 |rdless of the di| 00001180 73 63 20 66 6f 72 6d 61 74 2c 20 61 6e 64 20 73 |sc format, and s| 00001190 74 6f 72 65 20 73 63 72 65 65 6e 73 20 63 6f 6e |tore screens con| 000011a0 74 69 6e 75 6f 75 73 6c 79 20 61 63 72 6f 73 73 |tinuously across| 000011b0 0d 73 65 63 74 6f 72 20 62 6f 75 6e 64 61 72 69 |.sector boundari| 000011c0 65 73 2e 20 0d 0d 20 54 68 65 20 66 69 6e 61 6c |es. .. The final| 000011d0 20 73 6f 6c 75 74 69 6f 6e 20 77 61 73 20 74 6f | solution was to| 000011e0 20 2a 53 41 56 45 20 61 20 73 65 70 65 72 61 74 | *SAVE a seperat| 000011f0 65 20 69 6e 64 65 78 20 66 69 6c 65 20 22 54 50 |e index file "TP| 00001200 49 4e 44 45 58 22 2c 20 77 68 69 63 68 0d 77 6f |INDEX", which.wo| 00001210 75 6c 64 20 62 65 20 75 73 65 64 20 74 6f 20 6b |uld be used to k| 00001220 65 65 70 20 74 72 61 63 6b 20 6f 66 20 61 20 72 |eep track of a r| 00001230 61 6e 64 6f 6d 20 61 63 63 65 73 73 20 66 69 6c |andom access fil| 00001240 65 20 63 61 6c 6c 65 64 20 22 53 43 52 45 45 4e |e called "SCREEN| 00001250 53 22 2e 20 54 68 69 73 0d 66 69 6c 65 20 69 73 |S". This.file is| 00001260 20 69 6e 69 74 69 61 6c 69 73 65 64 20 77 69 74 | initialised wit| 00001270 68 20 4f 50 45 4e 4f 55 54 20 61 6e 64 20 74 68 |h OPENOUT and th| 00001280 65 6e 20 65 78 74 65 6e 64 65 64 20 62 79 20 69 |en extended by i| 00001290 6e 63 72 65 61 73 69 6e 67 20 74 68 65 20 66 69 |ncreasing the fi| 000012a0 6c 65 0d 70 6f 69 6e 74 65 72 20 28 50 54 52 23 |le.pointer (PTR#| 000012b0 29 20 62 79 20 39 36 30 20 62 79 74 65 20 69 6e |) by 960 byte in| 000012c0 63 72 65 6d 65 6e 74 73 20 75 6e 74 69 6c 20 61 |crements until a| 000012d0 20 64 69 73 63 20 66 75 6c 6c 20 65 72 72 6f 72 | disc full error| 000012e0 20 69 73 0d 67 65 6e 65 72 61 74 65 64 2c 20 61 | is.generated, a| 000012f0 74 20 77 68 69 63 68 20 70 6f 69 6e 74 20 74 68 |t which point th| 00001300 65 20 66 69 6c 65 20 69 73 20 63 6c 6f 73 65 64 |e file is closed| 00001310 20 61 6e 64 20 74 68 65 20 6d 61 78 69 6d 75 6d | and the maximum| 00001320 20 6e 75 6d 62 65 72 20 6f 66 0d 66 69 6c 65 73 | number of.files| 00001330 20 6e 6f 74 65 64 2e 20 54 68 69 73 20 6d 65 74 | noted. This met| 00001340 68 6f 64 20 74 61 6b 65 73 20 67 72 65 61 74 65 |hod takes greate| 00001350 73 74 20 61 64 76 61 6e 74 61 67 65 20 6f 66 20 |st advantage of | 00001360 74 68 65 20 61 76 61 69 6c 61 62 6c 65 20 64 69 |the available di| 00001370 73 63 0d 73 70 61 63 65 20 61 6e 64 20 69 73 20 |sc.space and is | 00001380 63 6f 6d 70 61 74 69 62 6c 65 20 6e 6f 74 20 6f |compatible not o| 00001390 6e 6c 79 20 77 69 74 68 20 34 30 20 6f 72 20 38 |nly with 40 or 8| 000013a0 30 20 74 72 61 63 6b 20 73 79 73 74 65 6d 73 20 |0 track systems | 000013b0 61 6e 64 20 77 69 74 68 0d 73 69 6e 67 6c 65 20 |and with.single | 000013c0 6f 72 20 64 6f 75 62 6c 65 20 64 65 6e 73 69 74 |or double densit| 000013d0 79 20 62 75 74 20 61 6c 73 6f 20 77 69 74 68 20 |y but also with | 000013e0 74 68 65 20 41 44 46 53 2c 20 77 68 69 63 68 20 |the ADFS, which | 000013f0 74 72 65 61 74 73 20 62 6f 74 68 20 73 69 64 65 |treats both side| 00001400 73 0d 6f 66 20 61 20 64 6f 75 62 6c 65 20 73 69 |s.of a double si| 00001410 64 65 64 20 64 69 73 63 20 61 73 20 61 20 63 6f |ded disc as a co| 00001420 6e 74 69 6e 75 6f 75 73 20 73 75 72 66 61 63 65 |ntinuous surface| 00001430 2e 20 41 6e 20 38 30 20 74 72 61 63 6b 20 64 6f |. An 80 track do| 00001440 75 62 6c 65 20 73 69 64 65 64 0d 64 69 73 63 20 |uble sided.disc | 00001450 75 73 69 6e 67 20 41 63 6f 72 6e 27 73 20 6f 77 |using Acorn's ow| 00001460 6e 20 41 44 46 53 20 63 61 6e 20 73 74 6f 72 65 |n ADFS can store| 00001470 20 61 20 6d 61 78 69 6d 75 6d 20 6f 66 20 36 37 | a maximum of 67| 00001480 38 20 73 63 72 65 65 6e 73 2c 20 6f 74 68 65 72 |8 screens, other| 00001490 0d 64 6f 75 62 6c 65 20 64 65 6e 73 69 74 79 20 |.double density | 000014a0 73 79 73 74 65 6d 73 2c 20 75 73 69 6e 67 20 31 |systems, using 1| 000014b0 38 20 73 65 63 74 6f 72 73 20 70 65 72 20 74 72 |8 sectors per tr| 000014c0 61 63 6b 20 69 6e 73 74 65 61 64 20 6f 66 20 31 |ack instead of 1| 000014d0 36 2c 20 63 61 6e 0d 61 63 68 69 65 76 65 20 61 |6, can.achieve a| 000014e0 20 6d 61 73 73 69 76 65 20 37 36 34 20 73 63 72 | massive 764 scr| 000014f0 65 65 6e 73 20 70 65 72 20 64 69 73 63 20 28 73 |eens per disc (s| 00001500 65 65 20 66 69 67 2e 20 31 29 2e 0d 0d 20 54 68 |ee fig. 1)... Th| 00001510 65 20 70 72 6f 67 72 61 6d 20 68 61 73 20 62 65 |e program has be| 00001520 65 6e 20 73 70 6c 69 74 20 69 6e 74 6f 20 74 77 |en split into tw| 00001530 6f 20 68 61 6c 76 65 73 20 69 6e 20 6f 72 64 65 |o halves in orde| 00001540 72 20 74 6f 20 6c 65 61 76 65 20 74 68 65 20 6d |r to leave the m| 00001550 61 78 69 6d 75 6d 0d 73 70 61 63 65 20 66 6f 72 |aximum.space for| 00001560 20 61 20 70 72 69 6e 74 65 72 20 62 75 66 66 65 | a printer buffe| 00001570 72 2e 20 54 68 69 73 20 69 73 20 61 6e 20 69 64 |r. This is an id| 00001580 65 61 6c 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 |eal application | 00001590 66 6f 72 20 74 68 65 20 49 2f 4f 0d 70 72 69 6e |for the I/O.prin| 000015a0 74 65 72 20 62 75 66 66 65 72 20 62 72 6f 61 64 |ter buffer broad| 000015b0 63 61 73 74 20 6c 61 73 74 20 77 65 65 6b 2e 20 |cast last week. | 000015c0 54 68 69 73 20 62 75 66 66 65 72 20 69 73 20 31 |This buffer is 1| 000015d0 30 2e 32 35 4b 20 28 70 72 69 6e 74 73 20 31 32 |0.25K (prints 12| 000015e0 0d 73 63 72 65 65 6e 73 20 62 65 66 6f 72 65 20 |.screens before | 000015f0 73 74 6f 70 70 69 6e 67 29 20 77 69 74 68 20 74 |stopping) with t| 00001600 68 65 20 54 46 53 2c 20 6f 72 20 31 32 2e 37 35 |he TFS, or 12.75| 00001610 6b 20 28 31 35 20 73 63 72 65 65 6e 73 29 20 75 |k (15 screens) u| 00001620 73 69 6e 67 20 74 68 65 0d 41 54 53 2c 20 74 68 |sing the.ATS, th| 00001630 65 20 6c 65 6e 67 74 68 20 62 65 69 6e 67 20 61 |e length being a| 00001640 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 61 64 6a |utomatically adj| 00001650 75 73 74 65 64 20 61 63 63 6f 72 64 69 6e 67 20 |usted according | 00001660 74 6f 20 74 68 65 20 76 61 6c 75 65 20 6f 66 0d |to the value of.| 00001670 50 41 47 45 2e 20 54 68 69 73 20 68 61 73 20 62 |PAGE. This has b| 00001680 65 65 6e 20 69 6e 63 6f 72 70 6f 72 61 74 65 64 |een incorporated| 00001690 20 69 6e 20 6c 69 73 74 69 6e 67 20 6f 6e 65 20 | in listing one | 000016a0 77 68 69 63 68 20 61 6c 73 6f 20 69 6e 63 6c 75 |which also inclu| 000016b0 64 65 73 20 74 68 65 0d 70 72 69 6e 74 6f 75 74 |des the.printout| 000016c0 20 63 6f 64 65 2c 20 6e 6f 74 65 20 74 68 65 20 | code, note the | 000016d0 61 6c 74 65 72 61 74 69 6f 6e 73 20 74 6f 20 74 |alterations to t| 000016e0 68 65 20 7a 65 72 6f 2d 70 61 67 65 20 61 64 64 |he zero-page add| 000016f0 72 65 73 73 65 73 2c 20 74 68 69 73 20 69 73 0d |resses, this is.| 00001700 62 65 63 61 75 73 65 20 74 68 65 20 41 54 53 20 |because the ATS | 00001710 75 73 65 73 20 74 68 65 20 73 61 6d 65 20 61 72 |uses the same ar| 00001720 65 61 20 6f 66 20 6d 65 6d 6f 72 79 20 6f 72 69 |ea of memory ori| 00001730 67 69 6e 61 6c 6c 79 20 61 6c 6c 6f 63 61 74 65 |ginally allocate| 00001740 64 20 74 6f 20 74 68 65 0d 70 72 69 6e 74 65 72 |d to the.printer| 00001750 20 62 75 66 66 65 72 2e 20 41 6c 74 68 6f 75 67 | buffer. Althoug| 00001760 68 20 74 68 65 20 41 54 53 20 6c 65 61 76 65 73 |h the ATS leaves| 00001770 20 74 68 65 73 65 20 7a 65 72 6f 2d 70 61 67 65 | these zero-page| 00001780 20 76 61 6c 75 65 73 20 61 73 20 69 74 20 66 69 | values as it fi| 00001790 6e 64 73 0d 74 68 65 6d 2c 20 74 68 65 20 62 75 |nds.them, the bu| 000017a0 66 66 65 72 20 63 6f 64 65 20 63 61 6e 20 69 6e |ffer code can in| 000017b0 74 65 72 72 75 70 74 20 74 68 65 20 41 54 53 20 |terrupt the ATS | 000017c0 61 6e 64 20 61 63 63 65 73 73 20 74 68 65 73 65 |and access these| 000017d0 20 6c 6f 63 61 74 69 6f 6e 73 0d 62 65 66 6f 72 | locations.befor| 000017e0 65 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 76 |e the original v| 000017f0 61 6c 75 65 73 20 61 72 65 20 72 65 73 74 6f 72 |alues are restor| 00001800 65 64 2e 20 54 68 65 20 61 6d 65 6e 64 65 64 20 |ed. The amended | 00001810 62 75 66 66 65 72 20 70 72 6f 67 72 61 6d 20 77 |buffer program w| 00001820 69 6c 6c 0d 61 73 73 65 6d 62 6c 65 20 74 68 65 |ill.assemble the| 00001830 20 63 6f 64 65 2c 20 74 75 72 6e 20 6f 6e 20 74 | code, turn on t| 00001840 68 65 20 62 75 66 66 65 72 20 61 6e 64 20 74 68 |he buffer and th| 00001850 65 6e 20 63 68 61 69 6e 20 74 68 65 20 54 45 4c |en chain the TEL| 00001860 45 50 52 49 4e 54 45 52 0d 70 72 6f 67 72 61 6d |EPRINTER.program| 00001870 2e 20 41 6c 74 65 72 6e 61 74 69 76 65 6c 79 20 |. Alternatively | 00001880 79 6f 75 20 63 61 6e 20 75 73 65 20 61 20 73 69 |you can use a si| 00001890 64 65 77 61 79 73 20 72 61 6d 20 70 72 69 6e 74 |deways ram print| 000018a0 65 72 20 62 75 66 66 65 72 2c 20 77 68 69 63 68 |er buffer, which| 000018b0 0d 73 68 6f 75 6c 64 20 70 72 69 6e 74 20 61 74 |.should print at| 000018c0 20 6c 65 61 73 74 20 31 38 20 73 63 72 65 65 6e | least 18 screen| 000018d0 73 20 62 65 66 6f 72 65 20 66 69 6e 61 6c 6c 79 |s before finally| 000018e0 20 67 72 69 6e 64 69 6e 67 20 74 6f 20 61 20 68 | grinding to a h| 000018f0 61 6c 74 2e 0d 0d 20 54 68 65 20 70 72 6f 67 72 |alt... The progr| 00001900 61 6d 20 63 6f 6e 74 61 69 6e 73 20 6e 6f 20 68 |am contains no h| 00001910 61 72 64 77 61 72 65 20 73 70 65 63 69 66 69 63 |ardware specific| 00001920 20 63 6f 6d 6d 61 6e 64 73 2c 20 75 73 65 73 20 | commands, uses | 00001930 6f 6e 6c 79 20 77 65 6c 6c 0d 64 6f 63 75 6d 65 |only well.docume| 00001940 6e 74 65 64 20 6f 70 65 72 61 74 69 6e 67 20 73 |nted operating s| 00001950 79 73 74 65 6d 20 63 61 6c 6c 73 20 61 6e 64 20 |ystem calls and | 00001960 6b 65 65 70 73 20 61 6c 6c 20 6d 61 63 68 69 6e |keeps all machin| 00001970 65 20 63 6f 64 65 20 61 62 6f 76 65 20 50 41 47 |e code above PAG| 00001980 45 2c 0d 61 73 20 61 20 72 65 73 75 6c 74 20 69 |E,.as a result i| 00001990 74 20 69 73 20 6e 6f 74 20 6f 6e 6c 79 20 63 6f |t is not only co| 000019a0 6d 70 61 74 69 62 6c 65 20 77 69 74 68 20 62 6f |mpatible with bo| 000019b0 74 68 20 74 65 6c 65 74 65 78 74 20 72 6f 6d 73 |th teletext roms| 000019c0 20 62 75 74 20 61 6c 73 6f 0d 77 69 74 68 20 74 | but also.with t| 000019d0 68 65 20 42 42 43 2c 20 42 42 43 2b 20 61 6e 64 |he BBC, BBC+ and| 000019e0 20 4d 41 53 54 45 52 2e 20 49 74 20 73 68 6f 75 | MASTER. It shou| 000019f0 6c 64 20 61 6c 73 6f 20 62 65 20 70 6f 73 73 69 |ld also be possi| 00001a00 62 6c 65 20 74 6f 20 63 6f 6e 76 65 72 74 20 69 |ble to convert i| 00001a10 74 20 74 6f 0d 77 6f 72 6b 20 77 69 74 68 20 6e |t to.work with n| 00001a20 6f 6e 2d 41 63 6f 72 6e 20 54 65 6c 65 74 65 78 |on-Acorn Teletex| 00001a30 74 20 41 64 61 70 74 65 72 73 2e 0d 0d 20 49 74 |t Adapters... It| 00001a40 20 69 73 20 6d 6f 73 74 20 69 6d 70 6f 72 74 61 | is most importa| 00001a50 6e 74 20 74 6f 20 6b 65 65 70 20 74 72 61 63 6b |nt to keep track| 00001a60 20 6f 66 20 6d 65 6d 6f 72 79 20 75 73 61 67 65 | of memory usage| 00001a70 20 77 68 65 6e 20 64 65 76 69 73 69 6e 67 20 74 | when devising t| 00001a80 68 69 73 0d 6b 69 6e 64 20 6f 66 20 70 72 6f 67 |his.kind of prog| 00001a90 72 61 6d 2c 20 6e 6f 74 20 6f 6e 6c 79 20 74 6f |ram, not only to| 00001aa0 20 6c 65 61 76 65 20 72 6f 6f 6d 20 66 6f 72 20 | leave room for | 00001ab0 74 68 65 20 62 75 66 66 65 72 20 62 75 74 20 61 |the buffer but a| 00001ac0 6c 73 6f 20 74 6f 20 65 6e 73 75 72 65 0d 74 68 |lso to ensure.th| 00001ad0 61 74 20 74 68 65 20 6d 61 63 68 69 6e 65 20 63 |at the machine c| 00001ae0 6f 64 65 20 61 6e 64 20 69 6e 64 65 78 20 61 72 |ode and index ar| 00001af0 65 61 73 20 61 72 65 20 6e 6f 74 20 6f 76 65 72 |eas are not over| 00001b00 77 72 69 74 74 65 6e 2e 20 46 69 67 20 32 20 73 |written. Fig 2 s| 00001b10 68 6f 77 73 20 68 6f 77 0d 74 68 65 20 42 65 65 |hows how.the Bee| 00001b20 62 27 73 20 6d 65 6d 6f 72 79 20 68 61 73 20 62 |b's memory has b| 00001b30 65 65 6e 20 61 6c 6c 6f 63 61 74 65 64 2c 20 6e |een allocated, n| 00001b40 6f 74 65 20 74 68 65 20 61 72 65 61 20 73 65 74 |ote the area set| 00001b50 20 61 73 69 64 65 20 66 6f 72 20 73 74 6f 72 69 | aside for stori| 00001b60 6e 67 0d 74 68 65 20 70 72 6f 67 72 61 6d 27 73 |ng.the program's| 00001b70 20 76 61 72 69 61 62 6c 65 73 2c 20 74 68 65 20 | variables, the | 00001b80 74 65 6d 70 6f 72 61 72 79 20 73 63 72 65 65 6e |temporary screen| 00001b90 20 73 74 6f 72 61 67 65 20 73 70 61 63 65 20 61 | storage space a| 00001ba0 6e 64 20 74 68 65 20 69 6e 64 65 78 2c 0d 74 68 |nd the index,.th| 00001bb0 65 20 73 70 61 63 65 20 62 65 74 77 65 65 6e 20 |e space between | 00001bc0 62 65 69 6e 67 20 75 73 65 64 20 66 6f 72 20 74 |being used for t| 00001bd0 68 65 20 70 72 69 6e 74 65 72 20 62 75 66 66 65 |he printer buffe| 00001be0 72 2e 20 54 68 6f 73 65 20 70 75 72 69 73 74 73 |r. Those purists| 00001bf0 20 77 68 6f 0d 61 64 76 6f 63 61 74 65 20 22 73 | who.advocate "s| 00001c00 74 72 75 63 74 75 72 65 64 20 70 72 6f 67 72 61 |tructured progra| 00001c10 6d 6d 69 6e 67 22 20 6d 61 79 20 77 65 6c 6c 20 |mming" may well | 00001c20 73 68 75 64 64 65 72 20 61 74 20 74 68 65 20 6e |shudder at the n| 00001c30 75 6d 62 65 72 20 6f 66 20 47 4f 54 4f 27 73 0d |umber of GOTO's.| 00001c40 49 20 68 61 76 65 20 75 73 65 64 2c 20 49 20 74 |I have used, I t| 00001c50 61 6b 65 20 74 68 65 20 76 69 65 77 20 74 68 61 |ake the view tha| 00001c60 74 20 69 66 20 61 20 63 6f 6d 6d 61 6e 64 20 64 |t if a command d| 00001c70 6f 65 73 20 74 68 65 20 6a 6f 62 20 77 69 74 68 |oes the job with| 00001c80 20 74 68 65 0d 6d 69 6e 69 6d 75 6d 20 6d 65 6d | the.minimum mem| 00001c90 6f 72 79 20 75 73 65 2c 20 61 74 20 74 68 65 20 |ory use, at the | 00001ca0 72 69 67 68 74 20 73 70 65 65 64 20 66 6f 72 20 |right speed for | 00001cb0 74 68 65 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 |the application | 00001cc0 74 68 65 6e 20 75 73 65 20 69 74 2e 0d 54 6f 6f |then use it..Too| 00001cd0 20 6d 61 6e 79 20 70 65 6f 70 6c 65 20 61 72 65 | many people are| 00001ce0 20 77 61 73 74 69 6d 67 20 74 69 6d 65 20 77 72 | wastimg time wr| 00001cf0 69 74 69 6e 67 20 74 6f 72 74 75 72 65 64 20 50 |iting tortured P| 00001d00 52 4f 43 65 64 75 72 65 73 20 74 68 61 74 20 61 |ROCedures that a| 00001d10 72 65 0d 6c 6f 6e 67 65 72 20 61 6e 64 20 6d 6f |re.longer and mo| 00001d20 72 65 20 69 6e 76 6f 6c 76 65 64 20 74 68 61 6e |re involved than| 00001d30 20 6e 65 73 63 65 73 73 61 72 79 20 6d 65 72 65 | nescessary mere| 00001d40 6c 79 20 74 6f 20 61 76 6f 69 64 20 74 68 65 20 |ly to avoid the | 00001d50 74 65 72 72 69 62 6c 65 0d 62 6c 61 73 70 68 65 |terrible.blasphe| 00001d60 6d 79 20 6f 66 20 75 73 69 6e 67 20 61 20 47 4f |my of using a GO| 00001d70 54 4f 2e 20 54 68 65 20 6c 6f 67 69 63 20 6f 66 |TO. The logic of| 00001d80 20 74 68 65 73 65 20 70 72 6f 67 72 61 6d 73 20 | these programs | 00001d90 61 72 65 20 6f 66 74 65 6e 20 6d 6f 72 65 0d 64 |are often more.d| 00001da0 69 66 66 69 63 75 6c 74 20 74 6f 20 66 6f 6c 6c |ifficult to foll| 00001db0 6f 77 20 74 68 61 6e 20 74 68 65 20 22 70 72 69 |ow than the "pri| 00001dc0 6d 69 74 69 76 65 22 20 49 46 20 54 48 45 4e 20 |mitive" IF THEN | 00001dd0 47 4f 54 4f 20 74 79 70 65 2c 20 74 68 65 79 20 |GOTO type, they | 00001de0 61 72 65 0d 63 65 72 74 61 69 6e 6c 79 20 6e 6f |are.certainly no| 00001df0 74 20 67 6f 6f 64 20 70 72 6f 67 72 61 6d 6d 69 |t good programmi| 00001e00 6e 67 20 70 72 61 63 74 69 63 65 2e 20 4f 66 20 |ng practice. Of | 00001e10 63 6f 75 72 73 65 20 79 6f 75 20 73 68 6f 75 6c |course you shoul| 00001e20 64 20 61 76 6f 69 64 0d 63 72 65 61 74 69 6e 67 |d avoid.creating| 00001e30 20 61 20 6d 61 7a 65 20 6f 66 20 47 4f 54 4f 27 | a maze of GOTO'| 00001e40 73 2c 20 62 75 74 20 69 74 20 69 73 20 77 72 6f |s, but it is wro| 00001e50 6e 67 20 74 6f 20 62 65 20 70 61 72 61 6e 6f 69 |ng to be paranoi| 00001e60 64 20 61 62 6f 75 74 20 74 68 65 20 75 73 65 20 |d about the use | 00001e70 6f 66 0d 6f 6e 65 20 6c 69 74 74 6c 65 20 63 6f |of.one little co| 00001e80 6d 6d 61 6e 64 2e 0d 0d 20 49 20 6c 69 76 65 20 |mmand... I live | 00001e90 69 6e 20 61 6e 20 61 72 65 61 20 77 68 65 72 65 |in an area where| 00001ea0 20 72 65 63 65 70 74 69 6f 6e 20 76 61 72 69 65 | reception varie| 00001eb0 73 20 62 65 74 77 65 65 6e 20 65 78 63 65 6c 6c |s between excell| 00001ec0 65 6e 74 20 61 6e 64 20 68 6f 70 65 6c 65 73 73 |ent and hopeless| 00001ed0 2c 0d 73 6f 20 61 6e 79 20 54 65 6c 65 74 65 78 |,.so any Teletex| 00001ee0 74 20 70 72 6f 67 72 61 6d 20 68 61 73 20 74 6f |t program has to| 00001ef0 20 62 65 20 61 62 6c 65 20 74 6f 20 73 75 72 76 | be able to surv| 00001f00 69 76 65 20 74 68 65 20 77 6f 72 73 74 20 74 68 |ive the worst th| 00001f10 61 74 20 6d 79 20 61 65 72 69 61 6c 0d 63 61 6e |at my aerial.can| 00001f20 20 74 68 72 6f 77 20 61 74 20 69 74 2e 20 54 68 | throw at it. Th| 00001f30 65 72 65 20 61 72 65 20 74 77 6f 20 70 6f 73 73 |ere are two poss| 00001f40 69 62 6c 65 20 64 61 74 61 20 65 72 72 6f 72 73 |ible data errors| 00001f50 20 74 68 61 74 20 63 6f 75 6c 64 20 63 72 61 73 | that could cras| 00001f60 68 20 6f 72 0d 63 6f 6e 66 75 73 65 20 74 68 65 |h or.confuse the| 00001f70 20 70 72 6f 67 72 61 6d 2e 20 46 69 72 73 74 6c | program. Firstl| 00001f80 79 20 74 68 65 20 70 61 67 65 20 6e 75 6d 62 65 |y the page numbe| 00001f90 72 20 63 6f 75 6c 64 20 62 65 20 63 6f 72 72 75 |r could be corru| 00001fa0 70 74 65 64 20 73 6f 20 74 68 61 74 20 61 0d 73 |pted so that a.s| 00001fb0 65 72 69 65 73 20 6f 66 20 70 61 67 65 73 20 77 |eries of pages w| 00001fc0 6f 75 6c 64 20 62 65 20 73 61 76 65 64 20 77 69 |ould be saved wi| 00001fd0 74 68 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 73 |th one or more s| 00001fe0 75 62 20 70 61 67 65 73 20 6d 69 73 73 69 6e 67 |ub pages missing| 00001ff0 2c 0d 73 65 63 6f 6e 64 6c 79 20 74 68 65 20 73 |,.secondly the s| 00002000 75 62 20 70 61 67 65 20 6e 75 6d 62 65 72 20 63 |ub page number c| 00002010 6f 75 6c 64 20 62 65 20 63 6f 72 72 75 70 74 65 |ould be corrupte| 00002020 64 20 77 68 69 63 68 20 77 6f 75 6c 64 20 63 6f |d which would co| 00002030 6e 66 75 73 65 20 74 68 65 0d 64 65 68 61 6d 6d |nfuse the.dehamm| 00002040 69 6e 67 20 66 75 6e 63 74 69 6f 6e 2c 20 74 68 |ing function, th| 00002050 65 20 6c 61 74 74 65 72 20 69 73 20 74 72 61 70 |e latter is trap| 00002060 70 65 64 20 62 79 20 63 68 65 63 6b 69 6e 67 20 |ped by checking | 00002070 74 6f 20 73 65 65 20 69 66 20 46 4e 68 61 6d 20 |to see if FNham | 00002080 68 61 73 0d 72 75 6e 20 6f 75 74 20 6f 66 20 64 |has.run out of d| 00002090 61 74 61 20 77 68 65 6e 20 72 65 63 6f 67 6e 69 |ata when recogni| 000020a0 73 69 6e 67 20 61 20 73 75 62 20 70 61 67 65 20 |sing a sub page | 000020b0 6e 75 6d 62 65 72 20 61 6e 64 20 73 6b 69 70 70 |number and skipp| 000020c0 69 6e 67 20 74 68 69 73 20 73 75 62 0d 70 61 67 |ing this sub.pag| 000020d0 65 2e 20 54 68 65 73 65 20 65 72 72 6f 72 73 20 |e. These errors | 000020e0 61 72 65 20 64 65 74 65 63 74 65 64 20 62 79 20 |are detected by | 000020f0 63 68 65 63 6b 69 6e 67 20 66 6f 72 20 67 61 70 |checking for gap| 00002100 73 20 69 6e 20 74 68 65 20 69 6e 64 65 78 20 61 |s in the index a| 00002110 6e 64 20 69 66 0d 61 6e 79 20 61 72 65 20 66 6f |nd if.any are fo| 00002120 75 6e 64 20 63 6f 6e 74 69 6e 75 69 6e 67 20 74 |und continuing t| 00002130 68 65 20 73 65 61 72 63 68 20 70 61 73 74 20 74 |he search past t| 00002140 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 73 65 |he end of the se| 00002150 72 69 65 73 20 75 6e 74 69 6c 20 74 68 65 0d 69 |ries until the.i| 00002160 6e 64 65 78 20 69 73 20 63 6f 6d 70 6c 65 74 65 |ndex is complete| 00002170 2e 20 54 68 69 73 20 6d 65 74 68 6f 64 20 69 73 |. This method is| 00002180 20 61 6c 73 6f 20 75 73 65 64 20 74 6f 20 65 6e | also used to en| 00002190 73 75 72 65 20 74 68 61 74 20 73 75 62 20 70 61 |sure that sub pa| 000021a0 67 65 73 20 61 72 65 0d 6e 6f 74 20 73 61 76 65 |ges are.not save| 000021b0 64 20 74 77 69 63 65 2e 20 54 68 65 20 6f 6e 6c |d twice. The onl| 000021c0 79 20 77 61 79 20 74 68 65 20 70 72 6f 67 72 61 |y way the progra| 000021d0 6d 20 63 6f 75 6c 64 20 62 65 63 6f 6d 65 20 63 |m could become c| 000021e0 6f 6e 66 75 73 65 64 20 69 73 20 69 66 20 74 68 |onfused is if th| 000021f0 65 0d 6c 61 73 74 20 73 75 62 20 70 61 67 65 20 |e.last sub page | 00002200 6e 75 6d 62 65 72 20 77 61 73 20 63 6f 72 72 75 |number was corru| 00002210 70 74 65 64 2c 20 69 6e 20 77 68 69 63 68 20 63 |pted, in which c| 00002220 61 73 65 20 74 68 65 20 73 65 72 69 65 73 20 77 |ase the series w| 00002230 6f 75 6c 64 20 62 65 0d 73 61 76 65 64 20 6f 6e |ould be.saved on| 00002240 65 20 73 68 6f 72 74 20 61 6e 64 20 79 6f 75 20 |e short and you | 00002250 77 6f 75 6c 64 20 68 61 76 65 20 74 6f 20 64 65 |would have to de| 00002260 6c 65 74 65 20 74 68 65 20 77 68 6f 6c 65 20 73 |lete the whole s| 00002270 65 72 69 65 73 20 61 6e 64 20 72 65 73 61 76 65 |eries and resave| 00002280 2e 0d 49 6e 20 6d 79 20 65 78 70 65 72 69 65 6e |..In my experien| 00002290 63 65 20 74 68 65 73 65 20 65 72 72 6f 72 73 20 |ce these errors | 000022a0 61 72 65 20 6e 6f 74 20 63 6f 6d 6d 6f 6e 20 61 |are not common a| 000022b0 6e 64 20 69 6e 20 6d 6f 73 74 20 63 61 73 65 73 |nd in most cases| 000022c0 20 79 6f 75 20 77 69 6c 6c 20 62 65 0d 61 62 6c | you will be.abl| 000022d0 65 20 74 6f 20 64 6f 77 6e 6c 6f 61 64 20 74 68 |e to download th| 000022e0 65 20 63 6f 6d 70 6c 65 74 65 20 73 65 72 69 65 |e complete serie| 000022f0 73 20 61 74 20 74 68 65 20 66 69 72 73 74 20 61 |s at the first a| 00002300 74 74 65 6d 70 74 2e 20 54 68 65 72 65 20 69 73 |ttempt. There is| 00002310 2c 0d 68 6f 77 65 76 65 72 2c 20 6e 6f 20 63 68 |,.however, no ch| 00002320 65 63 6b 20 66 6f 72 20 63 6f 72 72 75 70 74 69 |eck for corrupti| 00002330 6f 6e 20 69 6e 20 74 68 65 20 70 61 67 65 20 69 |on in the page i| 00002340 74 73 65 6c 66 2e 20 54 68 69 73 20 69 73 20 70 |tself. This is p| 00002350 61 72 74 6c 79 0d 62 65 63 61 75 73 65 20 6f 66 |artly.because of| 00002360 20 69 6e 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 | incompatibility| 00002370 20 70 72 6f 62 6c 65 6d 73 20 62 65 74 77 65 65 | problems betwee| 00002380 6e 20 74 68 65 20 41 54 53 20 61 6e 64 20 74 68 |n the ATS and th| 00002390 65 20 54 46 53 2c 20 62 75 74 20 61 6c 73 6f 0d |e TFS, but also.| 000023a0 62 65 63 61 75 73 65 20 73 6c 69 67 68 74 6c 79 |because slightly| 000023b0 20 63 6f 72 72 75 70 74 65 64 20 70 61 67 65 73 | corrupted pages| 000023c0 20 61 72 65 20 6f 66 74 65 6e 20 70 65 72 66 65 | are often perfe| 000023d0 63 74 6c 79 20 72 65 61 64 61 62 6c 65 2e 0d 0d |ctly readable...| 000023e0 20 55 53 49 4e 47 20 54 48 45 20 54 45 4c 45 50 | USING THE TELEP| 000023f0 52 49 4e 54 45 52 0d 0d 20 48 61 76 69 6e 67 20 |RINTER.. Having | 00002400 70 72 61 74 74 6c 65 64 20 6f 6e 20 6c 6f 6e 67 |prattled on long| 00002410 20 65 6e 6f 75 67 68 20 61 62 6f 75 74 20 68 6f | enough about ho| 00002420 77 20 74 68 65 20 70 72 6f 67 72 61 6d 20 77 61 |w the program wa| 00002430 73 20 77 72 69 74 74 65 6e 2c 20 69 74 20 69 73 |s written, it is| 00002440 0d 61 62 6f 75 74 20 74 69 6d 65 20 49 20 65 78 |.about time I ex| 00002450 70 6c 61 69 6e 65 64 20 68 6f 77 20 74 6f 20 75 |plained how to u| 00002460 73 65 20 69 74 2e 20 54 68 65 20 70 72 6f 67 72 |se it. The progr| 00002470 61 6d 20 63 6f 6d 65 73 20 69 6e 20 74 77 6f 20 |am comes in two | 00002480 68 61 6c 76 65 73 2c 0d 73 69 6d 70 6c 79 20 43 |halves,.simply C| 00002490 48 41 49 4e 20 22 54 50 52 49 4e 54 22 2c 20 74 |HAIN "TPRINT", t| 000024a0 68 69 73 20 77 69 6c 6c 20 61 73 73 65 6d 62 6c |his will assembl| 000024b0 65 20 61 6c 6c 20 74 68 65 20 63 6f 64 65 20 62 |e all the code b| 000024c0 65 66 6f 72 65 20 43 48 41 49 4e 69 6e 67 0d 22 |efore CHAINing."| 000024d0 54 50 52 49 4e 54 32 22 2e 20 46 69 72 73 74 20 |TPRINT2". First | 000024e0 79 6f 75 20 77 69 6c 6c 20 62 65 20 70 72 6f 6d |you will be prom| 000024f0 70 74 65 64 20 74 6f 20 69 6e 73 65 72 74 20 65 |pted to insert e| 00002500 69 74 68 65 72 20 61 6e 20 65 6d 70 74 79 20 64 |ither an empty d| 00002510 69 73 63 20 6f 72 20 61 6e 0d 61 6c 72 65 61 64 |isc or an.alread| 00002520 79 20 69 6e 69 74 69 61 6c 69 73 65 64 20 54 65 |y initialised Te| 00002530 6c 65 70 72 69 6e 74 65 72 20 64 69 73 63 2c 20 |leprinter disc, | 00002540 6f 6e 20 70 72 65 73 73 69 6e 67 20 73 70 61 63 |on pressing spac| 00002550 65 20 69 74 20 77 69 6c 6c 20 73 65 61 72 63 68 |e it will search| 00002560 20 74 68 65 0d 64 69 73 63 20 66 6f 72 20 74 68 | the.disc for th| 00002570 65 20 69 6e 64 65 78 2e 20 49 66 20 74 68 69 73 |e index. If this| 00002580 20 63 61 6e 6e 6f 74 20 62 65 20 66 6f 75 6e 64 | cannot be found| 00002590 20 74 68 65 6e 20 69 74 20 77 69 6c 6c 20 73 65 | then it will se| 000025a0 74 20 75 70 20 61 20 62 6c 61 6e 6b 0d 69 6e 64 |t up a blank.ind| 000025b0 65 78 20 61 6e 64 20 77 69 6c 6c 20 74 72 79 20 |ex and will try | 000025c0 74 6f 20 69 6e 69 74 69 61 6c 69 73 65 20 74 68 |to initialise th| 000025d0 65 20 6c 61 72 67 65 73 74 20 22 53 43 52 45 45 |e largest "SCREE| 000025e0 4e 53 22 20 66 69 6c 65 20 74 68 61 74 20 77 69 |NS" file that wi| 000025f0 6c 6c 20 66 69 74 0d 6f 6e 74 6f 20 74 68 65 20 |ll fit.onto the | 00002600 66 69 72 73 74 20 61 76 61 69 6c 61 62 6c 65 20 |first available | 00002610 66 72 65 65 20 73 70 61 63 65 20 6f 6e 20 74 68 |free space on th| 00002620 65 20 64 69 73 63 2e 20 49 74 20 69 73 20 62 65 |e disc. It is be| 00002630 73 74 20 74 6f 20 75 73 65 20 61 20 62 6c 61 6e |st to use a blan| 00002640 6b 0d 64 69 73 63 20 74 6f 20 67 61 69 6e 20 6d |k.disc to gain m| 00002650 61 78 69 6d 75 6d 20 73 74 6f 72 61 67 65 20 73 |aximum storage s| 00002660 70 61 63 65 20 62 75 74 20 61 73 20 74 68 65 20 |pace but as the | 00002670 54 65 6c 65 70 72 69 6e 74 65 72 20 70 72 6f 67 |Teleprinter prog| 00002680 72 61 6d 20 75 73 65 73 0d 6e 6f 72 6d 61 6c 20 |ram uses.normal | 00002690 66 69 6c 69 6e 67 20 73 79 73 74 65 6d 20 63 6f |filing system co| 000026a0 6d 6d 61 6e 64 73 20 69 74 20 77 69 6c 6c 20 6e |mmands it will n| 000026b0 6f 74 20 63 6f 72 72 75 70 74 20 6f 72 20 6f 76 |ot corrupt or ov| 000026c0 65 72 77 72 69 74 65 20 61 6e 79 20 6f 74 68 65 |erwrite any othe| 000026d0 72 0d 66 69 6c 65 2e 20 49 66 20 74 68 65 20 64 |r.file. If the d| 000026e0 69 73 63 20 69 73 20 66 75 6c 6c 20 74 68 65 6e |isc is full then| 000026f0 20 79 6f 75 20 77 69 6c 6c 20 62 65 20 70 72 6f | you will be pro| 00002700 6d 70 74 65 64 20 74 6f 20 69 6e 73 65 72 74 20 |mpted to insert | 00002710 61 6e 6f 74 68 65 72 0d 64 69 73 63 2e 0d 0d 20 |another.disc... | 00002720 4e 6f 77 20 79 6f 75 20 61 72 65 20 72 65 61 64 |Now you are read| 00002730 79 20 74 6f 20 73 74 61 72 74 20 64 6f 77 6e 6c |y to start downl| 00002740 6f 61 64 69 6e 67 2c 20 73 69 6d 70 6c 79 20 65 |oading, simply e| 00002750 6e 74 65 72 20 74 68 65 20 63 68 61 6e 6e 65 6c |nter the channel| 00002760 20 61 6e 64 20 70 61 67 65 0d 6e 75 6d 62 65 72 | and page.number| 00002770 20 61 6e 64 20 74 68 65 20 70 72 6f 67 72 61 6d | and the program| 00002780 20 77 69 6c 6c 20 64 6f 20 74 68 65 20 72 65 73 | will do the res| 00002790 74 2e 20 49 66 20 74 68 65 20 70 61 67 65 20 79 |t. If the page y| 000027a0 6f 75 20 77 61 6e 74 20 68 61 73 20 61 6c 72 65 |ou want has alre| 000027b0 61 64 79 0d 62 65 65 6e 20 64 6f 77 6e 6c 6f 61 |ady.been downloa| 000027c0 64 65 64 20 74 68 65 6e 20 74 68 65 20 70 72 6f |ded then the pro| 000027d0 67 72 61 6d 20 77 69 6c 6c 20 66 69 6e 64 20 69 |gram will find i| 000027e0 74 20 6f 6e 20 74 68 65 20 69 6e 64 65 78 20 61 |t on the index a| 000027f0 6e 64 20 64 69 73 70 6c 61 79 20 69 74 0d 69 6d |nd display it.im| 00002800 6d 65 64 69 61 74 65 6c 79 20 77 69 74 68 20 61 |mediately with a| 00002810 20 70 72 69 6e 74 6f 75 74 20 6f 70 74 69 6f 6e | printout option| 00002820 20 6f 74 68 65 72 77 69 73 65 20 69 74 20 77 69 | otherwise it wi| 00002830 6c 6c 20 73 74 61 72 74 20 73 65 61 72 63 68 69 |ll start searchi| 00002840 6e 67 20 66 6f 72 0d 69 74 20 22 6f 66 66 20 61 |ng for.it "off a| 00002850 69 72 22 2e 20 49 66 20 74 68 65 72 65 20 61 72 |ir". If there ar| 00002860 65 20 6e 6f 20 73 75 62 20 70 61 67 65 73 20 74 |e no sub pages t| 00002870 68 65 6e 20 61 67 61 69 6e 20 69 74 20 77 69 6c |hen again it wil| 00002880 6c 20 62 65 20 64 69 73 70 6c 61 79 65 64 0d 77 |l be displayed.w| 00002890 69 74 68 20 61 20 70 72 69 6e 74 6f 75 74 20 6f |ith a printout o| 000028a0 70 74 69 6f 6e 20 69 6d 6d 65 64 69 61 74 65 6c |ption immediatel| 000028b0 79 20 6f 6e 20 62 65 69 6e 67 20 66 6f 75 6e 64 |y on being found| 000028c0 2c 20 65 6e 74 65 72 69 6e 67 20 61 6e 79 74 68 |, entering anyth| 000028d0 69 6e 67 20 6f 74 68 65 72 0d 74 68 61 6e 20 22 |ing other.than "| 000028e0 59 22 20 6f 72 20 22 79 22 20 77 69 6c 6c 20 72 |Y" or "y" will r| 000028f0 65 74 75 72 6e 20 79 6f 75 20 74 6f 20 74 68 65 |eturn you to the| 00002900 20 70 72 6f 6d 70 74 20 73 63 72 65 65 6e 2e 20 | prompt screen. | 00002910 49 66 20 74 68 65 72 65 20 61 72 65 20 73 75 62 |If there are sub| 00002920 0d 70 61 67 65 73 20 74 68 65 6e 20 74 68 65 20 |.pages then the | 00002930 77 68 6f 6c 65 20 73 65 72 69 65 73 20 77 69 6c |whole series wil| 00002940 6c 20 62 65 20 73 61 76 65 64 20 74 6f 20 64 69 |l be saved to di| 00002950 73 63 20 28 69 66 20 6e 6f 74 20 61 6c 72 65 61 |sc (if not alrea| 00002960 64 79 20 73 61 76 65 64 29 0d 62 65 66 6f 72 65 |dy saved).before| 00002970 20 62 65 69 6e 67 20 64 69 73 70 6c 61 79 65 64 | being displayed| 00002980 20 69 6e 20 73 65 71 75 65 6e 63 65 2e 20 4e 6f | in sequence. No| 00002990 74 65 20 74 68 61 74 20 74 68 65 20 70 72 6f 67 |te that the prog| 000029a0 72 61 6d 20 64 6f 65 73 20 6e 6f 74 20 77 61 69 |ram does not wai| 000029b0 74 0d 66 6f 72 20 74 68 65 20 66 69 72 73 74 20 |t.for the first | 000029c0 73 75 62 20 70 61 67 65 20 69 6e 20 74 68 65 20 |sub page in the | 000029d0 73 65 72 69 65 73 20 62 75 74 20 69 6e 73 74 65 |series but inste| 000029e0 61 64 20 73 61 76 65 73 20 74 68 65 6d 20 6f 75 |ad saves them ou| 000029f0 74 20 6f 66 20 6f 72 64 65 72 2e 0d 49 66 20 74 |t of order..If t| 00002a00 68 65 72 65 20 69 73 20 69 6e 73 75 66 66 69 63 |here is insuffic| 00002a10 69 65 6e 74 20 72 6f 6f 6d 20 66 6f 72 20 61 6c |ient room for al| 00002a20 6c 20 74 68 65 20 73 63 72 65 65 6e 73 20 74 68 |l the screens th| 00002a30 65 6e 20 74 68 65 20 70 72 6f 67 72 61 6d 20 77 |en the program w| 00002a40 69 6c 6c 0d 73 61 76 65 20 61 6c 6c 20 74 68 65 |ill.save all the| 00002a50 20 6c 6f 77 65 72 20 6e 75 6d 62 65 72 65 64 20 | lower numbered | 00002a60 73 63 72 65 65 6e 73 20 74 68 61 74 20 69 74 20 |screens that it | 00002a70 68 61 73 20 72 6f 6f 6d 20 66 6f 72 2c 20 61 6e |has room for, an| 00002a80 64 20 77 69 6c 6c 20 74 68 65 6e 0d 64 69 73 70 |d will then.disp| 00002a90 6c 61 79 20 6f 6e 6c 79 20 74 68 65 73 65 20 6c |lay only these l| 00002aa0 6f 77 65 72 20 6e 75 6d 62 65 72 73 2e 20 4f 6e |ower numbers. On| 00002ab0 20 74 68 65 20 72 69 67 68 74 20 68 61 6e 64 20 | the right hand | 00002ac0 73 69 64 65 20 6f 66 20 74 68 65 20 70 72 6f 6d |side of the prom| 00002ad0 70 74 0d 73 63 72 65 65 6e 20 69 73 20 73 68 6f |pt.screen is sho| 00002ae0 77 6e 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 |wn the number of| 00002af0 20 62 6c 61 6e 6b 20 73 63 72 65 65 6e 20 73 70 | blank screen sp| 00002b00 61 63 65 73 20 6c 65 66 74 20 6f 6e 20 74 68 65 |aces left on the| 00002b10 20 64 69 73 63 2c 20 69 66 20 79 6f 75 0d 74 72 | disc, if you.tr| 00002b20 79 20 74 6f 20 64 6f 77 6e 6c 6f 61 64 20 77 68 |y to download wh| 00002b30 65 6e 20 74 68 69 73 20 69 73 20 6e 6f 75 67 68 |en this is nough| 00002b40 74 20 74 68 65 6e 20 79 6f 75 20 77 69 6c 6c 20 |t then you will | 00002b50 62 65 20 61 73 6b 65 64 20 74 6f 20 65 69 74 68 |be asked to eith| 00002b60 65 72 20 6c 6f 61 64 0d 61 20 6e 65 77 20 64 69 |er load.a new di| 00002b70 73 63 20 6f 72 20 74 6f 20 65 64 69 74 20 74 68 |sc or to edit th| 00002b80 65 20 65 78 69 73 74 69 6e 67 20 66 69 6c 65 2e |e existing file.| 00002b90 0d 0d 20 50 72 65 73 73 69 6e 67 20 3c 54 41 42 |.. Pressing <TAB| 00002ba0 3e 20 77 69 6c 6c 20 65 6e 74 65 72 20 74 68 65 |> will enter the| 00002bb0 20 65 64 69 74 6f 72 2c 20 74 68 69 73 20 64 69 | editor, this di| 00002bc0 73 70 6c 61 79 73 20 74 68 65 20 63 68 61 6e 6e |splays the chann| 00002bd0 65 6c 20 61 6e 64 20 70 61 67 65 0d 6e 75 6d 62 |el and page.numb| 00002be0 65 72 20 6f 66 20 61 6c 6c 20 74 68 65 20 73 63 |er of all the sc| 00002bf0 72 65 65 6e 73 20 73 61 76 65 64 20 73 6f 20 66 |reens saved so f| 00002c00 61 72 20 69 6e 20 74 68 65 20 6f 72 64 65 72 20 |ar in the order | 00002c10 74 68 61 74 20 74 68 65 79 20 77 65 72 65 20 73 |that they were s| 00002c20 61 76 65 64 2c 0d 77 69 74 68 20 61 6e 20 6f 70 |aved,.with an op| 00002c30 74 69 6f 6e 20 74 6f 20 64 65 6c 65 74 65 20 69 |tion to delete i| 00002c40 66 20 72 65 71 75 69 72 65 64 20 28 65 6e 74 65 |f required (ente| 00002c50 72 69 6e 67 20 61 6e 79 74 68 69 6e 67 20 6f 74 |ring anything ot| 00002c60 68 65 72 20 74 68 61 6e 20 22 59 22 20 6f 72 0d |her than "Y" or.| 00002c70 22 79 22 20 77 69 6c 6c 20 64 69 73 70 6c 61 79 |"y" will display| 00002c80 20 74 68 65 20 6e 65 78 74 20 63 68 61 6e 6e 65 | the next channe| 00002c90 6c 20 61 6e 64 20 70 61 67 65 20 6e 75 6d 62 65 |l and page numbe| 00002ca0 72 29 2e 20 49 66 20 79 6f 75 20 61 72 65 20 74 |r). If you are t| 00002cb0 72 79 69 6e 67 20 74 6f 0d 64 65 6c 65 74 65 20 |rying to.delete | 00002cc0 61 20 73 65 72 69 65 73 20 6f 66 20 70 61 67 65 |a series of page| 00002cd0 73 20 74 68 65 6e 20 79 6f 75 20 77 69 6c 6c 20 |s then you will | 00002ce0 62 65 20 61 73 6b 65 64 20 69 66 20 79 6f 75 20 |be asked if you | 00002cf0 77 61 6e 74 20 74 6f 20 64 65 6c 65 74 65 20 74 |want to delete t| 00002d00 68 65 6d 0d 61 6c 6c 2c 20 61 6e 73 77 65 72 69 |hem.all, answeri| 00002d10 6e 67 20 61 6e 79 74 68 69 6e 67 20 6f 74 68 65 |ng anything othe| 00002d20 72 20 74 68 65 6e 20 22 59 22 20 6f 72 20 22 79 |r then "Y" or "y| 00002d30 22 20 77 69 6c 6c 20 63 61 75 73 65 20 74 68 65 |" will cause the| 00002d40 20 73 75 62 20 70 61 67 65 73 20 74 6f 0d 62 65 | sub pages to.be| 00002d50 20 64 69 73 70 6c 61 79 65 64 20 69 6e 20 74 75 | displayed in tu| 00002d60 72 6e 20 77 69 74 68 20 61 20 64 65 6c 65 74 65 |rn with a delete| 00002d70 20 6f 70 74 69 6f 6e 2e 20 54 68 69 73 20 64 65 | option. This de| 00002d80 6c 65 74 69 6f 6e 20 6f 70 65 72 61 74 69 6f 6e |letion operation| 00002d90 20 72 65 6d 6f 76 65 73 0d 74 68 65 20 72 65 63 | removes.the rec| 00002da0 6f 72 64 20 66 72 6f 6d 20 74 68 65 20 69 6e 64 |ord from the ind| 00002db0 65 78 20 6f 6e 6c 79 20 61 6e 64 20 73 68 75 66 |ex only and shuf| 00002dc0 66 6c 65 73 20 61 6c 6c 20 74 68 65 20 72 65 63 |fles all the rec| 00002dd0 6f 72 64 73 20 64 6f 77 6e 20 74 6f 20 6c 65 61 |ords down to lea| 00002de0 76 65 0d 61 20 63 6f 6e 74 69 6e 75 6f 75 73 20 |ve.a continuous | 00002df0 73 70 61 63 65 20 66 6f 72 20 61 6e 79 20 6e 65 |space for any ne| 00002e00 77 20 73 63 72 65 65 6e 73 2c 20 69 74 20 64 6f |w screens, it do| 00002e10 65 73 20 6e 6f 74 20 65 72 61 73 65 20 6f 72 20 |es not erase or | 00002e20 6d 6f 76 65 20 74 68 65 0d 61 63 74 75 61 6c 20 |move the.actual | 00002e30 73 63 72 65 65 6e 73 20 6f 6e 20 74 68 65 20 64 |screens on the d| 00002e40 69 73 63 20 61 73 20 74 68 69 73 20 77 6f 75 6c |isc as this woul| 00002e50 64 20 74 61 6b 65 20 66 61 72 20 74 6f 6f 20 6c |d take far too l| 00002e60 6f 6e 67 2e 20 41 66 74 65 72 20 73 65 76 65 72 |ong. After sever| 00002e70 61 6c 0d 65 64 69 74 69 6e 67 20 61 6e 64 20 72 |al.editing and r| 00002e80 65 73 61 76 69 6e 67 20 70 72 6f 63 65 64 75 72 |esaving procedur| 00002e90 65 73 20 74 68 65 20 65 6e 74 72 69 65 73 20 6f |es the entries o| 00002ea0 6e 20 74 68 65 20 69 6e 64 65 78 20 77 69 6c 6c |n the index will| 00002eb0 20 62 65 20 69 6e 20 61 0d 6c 6f 67 69 63 61 6c | be in a.logical| 00002ec0 20 6f 72 64 65 72 20 62 75 74 20 74 68 65 20 70 | order but the p| 00002ed0 68 79 73 69 63 61 6c 20 70 6f 73 69 74 69 6f 6e |hysical position| 00002ee0 20 6f 6e 20 64 69 73 63 20 69 6e 20 74 68 65 20 | on disc in the | 00002ef0 72 61 6e 64 6f 6d 20 61 63 63 65 73 73 20 66 69 |random access fi| 00002f00 6c 65 0d 22 53 43 52 45 45 4e 53 22 20 77 69 6c |le."SCREENS" wil| 00002f10 6c 20 62 65 20 64 69 73 6f 72 64 65 72 65 64 2e |l be disordered.| 00002f20 20 54 68 65 20 70 72 6f 67 72 61 6d 20 72 65 6c | The program rel| 00002f30 69 65 73 20 6f 6e 20 74 68 65 20 22 54 50 49 4e |ies on the "TPIN| 00002f40 44 45 58 22 20 66 69 6c 65 20 74 6f 0d 6b 65 65 |DEX" file to.kee| 00002f50 70 20 74 72 61 63 6b 20 6f 66 20 61 6c 6c 20 74 |p track of all t| 00002f60 68 65 20 70 61 67 65 73 2c 20 69 66 20 79 6f 75 |he pages, if you| 00002f70 20 65 72 61 73 65 20 74 68 69 73 20 66 69 6c 65 | erase this file| 00002f80 20 74 68 65 6e 20 79 6f 75 20 77 69 6c 6c 20 6e | then you will n| 00002f90 6f 74 20 62 65 0d 61 62 6c 65 20 74 6f 20 72 65 |ot be.able to re| 00002fa0 63 6f 76 65 72 20 74 68 65 20 73 63 72 65 65 6e |cover the screen| 00002fb0 73 20 73 61 76 65 64 20 73 6f 20 66 61 72 2e 0d |s saved so far..| 00002fc0 0d 20 50 72 65 73 73 69 6e 67 20 3c 45 53 43 41 |. Pressing <ESCA| 00002fd0 50 45 3e 20 77 69 6c 6c 20 72 65 74 75 72 6e 20 |PE> will return | 00002fe0 79 6f 75 20 74 6f 20 74 68 65 20 70 72 6f 6d 70 |you to the promp| 00002ff0 74 20 70 61 67 65 20 61 74 20 61 6e 79 20 74 69 |t page at any ti| 00003000 6d 65 2c 20 74 68 6f 75 67 68 0d 69 66 20 79 6f |me, though.if yo| 00003010 75 20 70 72 65 73 73 20 3c 45 53 43 41 50 45 3e |u press <ESCAPE>| 00003020 20 70 61 72 74 20 77 61 79 20 74 68 72 6f 75 67 | part way throug| 00003030 68 20 64 6f 77 6e 6c 6f 61 64 69 6e 67 20 61 20 |h downloading a | 00003040 73 65 72 69 65 73 20 6f 66 20 70 61 67 65 73 20 |series of pages | 00003050 74 68 65 6e 0d 6e 6f 6e 65 20 6f 66 20 74 68 6f |then.none of tho| 00003060 73 65 20 70 61 67 65 73 20 77 69 6c 6c 20 62 65 |se pages will be| 00003070 20 65 6e 74 65 72 65 64 20 6f 6e 20 74 68 65 20 | entered on the | 00003080 69 6e 64 65 78 20 61 73 20 69 74 20 69 73 20 6f |index as it is o| 00003090 6e 6c 79 20 75 70 64 61 74 65 64 20 61 74 0d 74 |nly updated at.t| 000030a0 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 73 61 |he end of the sa| 000030b0 76 69 6e 67 20 72 6f 75 74 69 6e 65 2e 0d 0d 0d |ving routine....| 000030c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000030d0 20 20 20 20 20 20 20 50 52 4f 43 45 44 55 52 45 | PROCEDURE| 000030e0 53 20 41 4e 44 20 46 55 4e 43 54 49 4f 4e 53 0d |S AND FUNCTIONS.| 000030f0 0d 50 52 4f 43 70 72 69 6e 74 20 20 3a 20 44 69 |.PROCprint : Di| 00003100 73 70 6c 61 79 20 6f 6e 65 20 70 61 67 65 20 77 |splay one page w| 00003110 69 74 68 20 70 72 69 6e 74 6f 75 74 20 6f 70 74 |ith printout opt| 00003120 69 6f 6e 2e 0d 46 4e 68 61 6d 20 20 20 20 20 20 |ion..FNham | 00003130 3a 20 44 65 20 68 61 6d 20 73 75 62 20 70 61 67 |: De ham sub pag| 00003140 65 20 6e 75 6d 62 65 72 2e 0d 50 52 4f 43 64 69 |e number..PROCdi| 00003150 73 20 20 20 20 3a 20 47 65 74 20 73 63 72 65 65 |s : Get scree| 00003160 6e 20 66 72 6f 6d 20 64 69 73 63 20 72 65 61 64 |n from disc read| 00003170 79 20 66 6f 72 20 64 69 73 70 6c 61 79 2e 0d 50 |y for display..P| 00003180 52 4f 43 6f 73 63 20 20 20 20 3a 20 42 61 73 69 |ROCosc : Basi| 00003190 63 20 31 20 76 65 72 73 69 6f 6e 20 6f 66 20 4f |c 1 version of O| 000031a0 53 43 4c 49 2e 0d 50 52 4f 43 73 61 76 65 20 20 |SCLI..PROCsave | 000031b0 20 3a 20 53 61 76 65 20 6f 6e 65 20 73 63 72 65 | : Save one scre| 000031c0 65 6e 20 74 6f 20 64 69 73 63 2e 0d 50 52 4f 43 |en to disc..PROC| 000031d0 73 63 72 20 20 20 20 3a 20 53 65 74 75 70 20 70 |scr : Setup p| 000031e0 72 6f 6d 70 74 20 73 63 72 65 65 6e 20 64 69 73 |rompt screen dis| 000031f0 70 6c 61 79 2e 0d 50 52 4f 43 74 73 6f 66 74 6c |play..PROCtsoftl| 00003200 20 3a 20 52 65 73 65 6c 65 63 74 20 74 65 6c 65 | : Reselect tele| 00003210 73 6f 66 74 20 73 79 73 74 65 6d 20 61 6e 64 20 |soft system and | 00003220 72 65 73 65 74 20 4f 4e 20 45 52 52 4f 52 2e 0d |reset ON ERROR..| 00003230 50 52 4f 43 69 6e 69 74 20 20 20 3a 20 4c 6f 61 |PROCinit : Loa| 00003240 64 20 61 6e 64 20 72 65 61 64 20 69 6e 64 65 78 |d and read index| 00003250 2e 0d 50 52 4f 43 6e 65 77 20 20 20 20 3a 20 22 |..PROCnew : "| 00003260 4c 6f 61 64 20 6e 65 77 20 64 69 73 63 22 20 6d |Load new disc" m| 00003270 65 73 73 61 67 65 2e 0d 50 52 4f 43 66 75 6c 6c |essage..PROCfull| 00003280 20 20 20 3a 20 22 44 69 73 63 20 66 75 6c 6c 22 | : "Disc full"| 00003290 20 6d 65 73 73 61 67 65 2e 0d 50 52 4f 43 63 61 | message..PROCca| 000032a0 74 20 20 20 20 3a 20 53 61 76 65 20 69 6e 64 65 |t : Save inde| 000032b0 78 2e 0d 50 52 4f 43 65 64 69 74 20 20 20 3a 20 |x..PROCedit : | 000032c0 45 64 69 74 6f 72 2e 0d 50 52 4f 43 6e 6f 20 20 |Editor..PROCno | 000032d0 20 20 20 3a 20 22 4e 6f 20 73 63 72 65 65 6e 73 | : "No screens| 000032e0 22 20 6d 65 73 73 61 67 65 2e 0d 50 52 4f 43 6d |" message..PROCm| 000032f0 73 67 65 20 20 20 3a 20 44 69 73 70 6c 61 79 20 |sge : Display | 00003300 6d 65 73 73 61 67 65 2e 0d 50 52 4f 43 73 70 63 |message..PROCspc| 00003310 20 20 20 20 3a 20 22 50 72 65 73 73 20 73 70 61 | : "Press spa| 00003320 63 65 22 2e 0d 50 52 4f 43 6f 73 67 28 78 29 20 |ce"..PROCosg(x) | 00003330 3a 20 4c 6f 61 64 20 6f 72 20 73 61 76 65 20 6f |: Load or save o| 00003340 6e 65 20 73 63 72 65 65 6e 20 75 73 69 6e 67 20 |ne screen using | 00003350 4f 53 47 50 42 50 2e 0d 50 52 4f 43 69 6e 64 78 |OSGPBP..PROCindx| 00003360 20 20 20 3a 20 53 61 76 65 20 69 6e 64 65 78 2e | : Save index.| 00003370 0d 46 4e 67 65 74 20 20 20 20 20 20 3a 20 44 6f |.FNget : Do| 00003380 75 62 6c 65 20 68 65 69 67 68 74 20 67 65 74 20 |uble height get | 00003390 72 6f 75 74 69 6e 65 2e 0d 0d 20 20 20 20 20 20 |routine... | 000033a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000033b0 20 20 20 20 20 20 20 20 56 41 52 49 41 42 4c 45 | VARIABLE| 000033c0 53 0d 0d 63 68 20 20 20 20 20 20 20 20 20 20 3a |S..ch :| 000033d0 20 43 68 61 6e 6e 65 6c 20 6e 75 6d 62 65 72 2e | Channel number.| 000033e0 0d 63 6f 64 65 20 20 20 20 20 20 20 20 3a 20 43 |.code : C| 000033f0 61 6c 6c 20 61 64 64 72 65 73 73 20 66 6f 72 20 |all address for | 00003400 63 6f 64 65 2e 0d 6c 61 73 74 20 20 20 20 20 20 |code..last | 00003410 20 20 3a 20 4c 61 73 74 20 73 75 62 20 70 61 67 | : Last sub pag| 00003420 65 20 6e 75 6d 62 65 72 2e 0d 64 20 20 20 20 20 |e number..d | 00003430 20 20 20 20 20 20 3a 20 44 61 74 61 2e 0d 64 24 | : Data..d$| 00003440 20 20 20 20 20 20 20 20 20 20 3a 20 53 74 72 69 | : Stri| 00003450 6e 67 20 64 61 74 61 2e 0d 64 69 76 69 64 65 20 |ng data..divide | 00003460 20 20 20 20 20 3a 20 50 72 69 6e 74 65 72 20 63 | : Printer c| 00003470 6f 64 65 20 66 6f 72 20 64 69 76 69 64 65 20 63 |ode for divide c| 00003480 68 61 72 61 63 74 65 72 2e 0d 66 6f 75 6e 64 20 |haracter..found | 00003490 20 20 20 20 20 20 3a 20 52 65 63 6f 72 64 20 6e | : Record n| 000034a0 75 6d 62 65 72 20 6f 66 20 73 63 72 65 65 6e 20 |umber of screen | 000034b0 66 6f 75 6e 64 20 69 6e 20 73 65 61 72 63 68 2e |found in search.| 000034c0 0d 68 61 6c 66 20 20 20 20 20 20 20 20 3a 20 50 |.half : P| 000034d0 72 69 6e 74 65 72 20 63 6f 64 65 20 66 6f 72 20 |rinter code for | 000034e0 68 61 6c 66 20 63 68 61 72 61 63 74 65 72 2e 0d |half character..| 000034f0 68 61 73 68 20 20 20 20 20 20 20 20 3a 20 50 72 |hash : Pr| 00003500 69 6e 74 65 72 20 63 6f 64 65 20 66 6f 72 20 68 |inter code for h| 00003510 61 73 68 20 63 68 61 72 61 63 74 65 72 2e 0d 68 |ash character..h| 00003520 6e 6c 20 20 20 20 20 20 20 20 20 3a 20 46 69 6c |nl : Fil| 00003530 65 20 68 61 6e 64 6c 65 2e 0d 68 69 67 68 20 20 |e handle..high | 00003540 20 20 20 20 20 20 3a 20 48 69 67 68 65 73 74 20 | : Highest | 00003550 73 75 62 20 70 61 67 65 20 6e 75 6d 62 65 72 20 |sub page number | 00003560 6c 6f 61 64 65 64 2e 0d 6c 65 6e 20 20 20 20 20 |loaded..len | 00003570 20 20 20 20 3a 20 46 69 6c 65 20 6c 65 6e 67 74 | : File lengt| 00003580 68 2e 0d 4c 20 20 20 20 20 20 20 20 20 20 20 3a |h..L :| 00003590 20 47 65 6e 65 72 61 6c 20 6c 6f 6f 70 20 76 61 | General loop va| 000035a0 72 69 61 62 6c 65 2e 0d 4c 32 20 20 20 20 20 20 |riable..L2 | 000035b0 20 20 20 20 3a 20 47 65 6e 65 72 61 6c 20 6c 6f | : General lo| 000035c0 6f 70 20 76 61 72 69 61 62 6c 65 2e 0d 6e 65 78 |op variable..nex| 000035d0 74 20 20 20 20 20 20 20 20 3a 20 4e 65 78 74 20 |t : Next | 000035e0 66 72 65 65 20 72 65 63 6f 72 64 20 6e 75 6d 62 |free record numb| 000035f0 65 72 2e 0d 6f 6e 65 20 20 20 20 20 20 20 20 20 |er..one | 00003600 3a 20 4f 6e 65 73 20 70 61 72 74 20 6f 66 20 73 |: Ones part of s| 00003610 75 62 20 70 61 67 65 20 6e 75 6d 62 65 72 2e 0d |ub page number..| 00003620 70 31 2c 70 32 2c 70 33 2c 70 34 20 3a 20 50 61 |p1,p2,p3,p4 : Pa| 00003630 72 61 6d 65 74 65 72 73 20 66 6f 72 20 46 4e 67 |rameters for FNg| 00003640 65 74 2e 0d 70 61 20 20 20 20 20 20 20 20 20 20 |et..pa | 00003650 3a 20 50 61 67 65 20 6e 75 6d 62 65 72 2e 0d 24 |: Page number..$| 00003660 70 61 67 65 20 20 20 20 20 20 20 3a 20 53 74 72 |page : Str| 00003670 69 6e 67 20 66 6f 72 20 73 74 6f 72 69 6e 67 20 |ing for storing | 00003680 70 61 67 65 20 61 6e 64 20 73 75 62 20 70 2d 61 |page and sub p-a| 00003690 67 65 20 6e 75 6d 62 65 72 2e 0d 70 20 20 20 20 |ge number..p | 000036a0 20 20 20 20 20 20 20 3a 20 41 73 73 65 6d 62 6c | : Assembl| 000036b0 65 72 20 70 61 73 73 20 6c 6f 6f 70 2e 0d 70 6f |er pass loop..po| 000036c0 75 6e 64 20 20 20 20 20 20 20 3a 20 50 72 69 6e |und : Prin| 000036d0 74 65 72 20 63 6f 64 65 20 66 6f 72 20 70 6f 75 |ter code for pou| 000036e0 6e 64 20 63 68 61 72 61 63 74 65 72 2e 0d 71 75 |nd character..qu| 000036f0 61 72 74 65 72 20 20 20 20 20 3a 20 50 72 69 6e |arter : Prin| 00003700 74 65 72 20 63 6f 64 65 20 66 6f 72 20 71 75 61 |ter code for qua| 00003710 72 74 65 72 20 63 68 61 72 61 63 74 65 72 2e 0d |rter character..| 00003720 73 63 72 6e 73 20 20 20 20 20 20 20 3a 20 4d 61 |scrns : Ma| 00003730 78 69 6d 75 6d 20 6e 75 6d 62 65 72 20 6f 66 20 |ximum number of | 00003740 73 63 72 65 65 6e 73 2e 0d 73 65 61 72 63 68 20 |screens..search | 00003750 20 20 20 20 20 3a 20 43 6f 6d 62 69 6e 65 64 20 | : Combined | 00003760 63 68 61 6e 6e 65 6c 20 61 6e 64 20 70 61 67 65 |channel and page| 00003770 20 6e 75 6d 62 65 72 20 75 73 65 64 20 69 6e 20 | number used in | 00003780 73 65 61 72 63 68 0d 20 20 20 20 20 20 20 20 20 |search. | 00003790 20 20 20 20 20 72 6f 75 74 69 6e 65 2e 0d 73 74 | routine..st| 000037a0 20 20 20 20 20 20 20 20 20 20 3a 20 46 69 72 73 | : Firs| 000037b0 74 20 73 75 62 2d 70 61 67 65 20 6e 75 6d 62 65 |t sub-page numbe| 000037c0 72 2e 0d 70 72 65 20 20 20 20 20 20 20 20 20 3a |r..pre :| 000037d0 20 50 72 65 76 69 6f 75 73 20 73 75 62 2d 70 61 | Previous sub-pa| 000037e0 67 65 20 6e 75 6d 62 65 72 2e 0d 73 74 6f 72 65 |ge number..store| 000037f0 24 20 20 20 20 20 20 3a 20 53 74 72 69 6e 67 20 |$ : String | 00003800 75 73 65 64 20 74 6f 20 63 68 65 63 6b 20 66 6f |used to check fo| 00003810 72 20 64 6f 75 62 6c 65 20 68 65 69 67 68 74 20 |r double height | 00003820 69 6e 20 50 52 4f 43 70 72 69 6e 74 2e 0d 74 70 |in PROCprint..tp| 00003830 20 20 20 20 20 20 20 20 20 20 3a 20 54 65 6d 70 | : Temp| 00003840 6f 72 61 72 79 20 73 74 6f 72 61 67 65 2e 0d 74 |orary storage..t| 00003850 68 72 65 65 71 75 61 72 74 20 20 3a 20 50 72 69 |hreequart : Pri| 00003860 6e 74 65 72 20 63 6f 64 65 20 66 6f 72 20 74 68 |nter code for th| 00003870 72 65 65 20 71 75 61 72 74 65 72 20 63 68 61 72 |ree quarter char| 00003880 61 63 74 65 72 2e 0d 74 65 6e 20 20 20 20 20 20 |acter..ten | 00003890 20 20 20 3a 20 74 65 6e 73 20 70 61 72 74 20 6f | : tens part o| 000038a0 66 20 73 75 62 20 70 61 67 65 20 6e 75 6d 62 65 |f sub page numbe| 000038b0 72 2e 0d 78 20 20 20 20 20 20 20 20 20 20 20 3a |r..x :| 000038c0 20 47 65 6e 65 72 61 6c 20 69 6e 70 75 74 20 76 | General input v| 000038d0 61 72 69 61 62 6c 65 2e 0d 0d 20 20 20 20 20 20 |ariable... | 000038e0 20 20 20 20 20 20 20 20 20 20 46 49 47 20 31 3a | FIG 1:| 000038f0 20 53 63 72 65 65 6e 73 20 70 65 72 20 64 69 73 | Screens per dis| 00003900 63 0d 20 20 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |c. ____________| 00003910 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |________________| * 00003930 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 20 0d 20 7c 20 20 |__________ . | | 00003940 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003950 20 7c 20 20 20 20 20 20 7c 20 20 20 20 20 20 7c | | | || 00003960 20 20 20 20 20 20 7c 20 20 20 20 20 20 7c 20 20 | | | | 00003970 20 20 20 20 7c 0d 20 7c 20 46 69 6c 69 6e 67 20 | |. | Filing | 00003980 53 79 73 74 65 6d 20 20 20 20 20 7c 20 44 46 53 |System | DFS| 00003990 20 20 7c 20 44 46 53 20 20 7c 20 44 46 53 20 20 | | DFS | DFS | 000039a0 7c 20 41 44 46 53 20 7c 20 41 44 46 53 20 7c 0d || ADFS | ADFS |.| 000039b0 20 7c 20 44 65 6e 73 69 74 79 20 20 20 20 20 20 | | Density | 000039c0 20 20 20 20 20 7c 20 53 2d 44 20 20 7c 20 44 2d | | S-D | D-| 000039d0 44 20 20 7c 20 44 2d 44 20 20 7c 20 44 2d 44 20 |D | D-D | D-D | 000039e0 20 7c 20 44 2d 44 20 20 7c 0d 20 7c 20 53 65 63 | | D-D |. | Sec| 000039f0 74 6f 72 73 20 70 65 72 20 54 72 61 63 6b 20 7c |tors per Track || 00003a00 20 20 31 30 20 20 7c 20 20 31 36 20 20 7c 20 20 | 10 | 16 | | 00003a10 31 38 20 20 7c 20 20 31 36 20 20 7c 20 20 31 38 |18 | 16 | 18| 00003a20 20 20 7c 0d 20 7c 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f | |. |__________| 00003a30 5f 5f 5f 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f |_________|______| 00003a40 7c 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c 5f ||______|______|_| 00003a50 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c 0d 20 7c |_____|______|. || 00003a60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003a70 20 20 20 7c 20 20 20 20 20 20 7c 20 20 20 20 20 | | | | 00003a80 20 7c 20 20 20 20 20 20 7c 20 20 20 20 20 20 7c | | | || 00003a90 20 20 20 20 20 20 7c 0d 20 7c 20 34 30 54 20 53 | |. | 40T S| 00003aa0 2d 53 20 20 20 20 20 20 20 20 20 20 20 7c 20 31 |-S | 1| 00003ab0 30 32 20 20 7c 20 31 36 36 20 20 7c 20 31 38 38 |02 | 166 | 188| 00003ac0 20 20 7c 20 31 36 36 20 20 7c 20 31 38 38 20 20 | | 166 | 188 | 00003ad0 7c 0d 20 7c 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f ||. |____________| 00003ae0 5f 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c 5f |_______|______|_| 00003af0 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f |_____|______|___| 00003b00 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c 0d 20 7c 20 20 |___|______|. | | 00003b10 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003b20 20 7c 20 20 20 20 20 20 7c 20 20 20 20 20 20 7c | | | || 00003b30 20 20 20 20 20 20 7c 20 20 20 20 20 20 7c 20 20 | | | | 00003b40 20 20 20 20 7c 0d 20 7c 20 38 30 54 20 53 2d 53 | |. | 80T S-S| 00003b50 20 20 20 20 20 20 20 20 20 20 20 7c 20 32 30 39 | | 209| 00003b60 20 20 7c 20 33 33 37 20 20 7c 20 33 38 30 20 20 | | 337 | 380 | 00003b70 7c 20 33 33 37 20 20 7c 20 33 38 30 20 20 7c 0d || 337 | 380 |.| 00003b80 20 7c 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f | |______________| 00003b90 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f |_____|______|___| 00003ba0 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f |___|______|_____| 00003bb0 5f 7c 5f 5f 5f 5f 5f 5f 7c 0d 20 7c 20 20 20 20 |_|______|. | | 00003bc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c | || 00003bd0 20 20 20 20 20 20 7c 20 20 20 20 20 20 7c 20 20 | | | | 00003be0 20 20 20 20 7c 20 20 20 20 20 20 7c 20 20 20 20 | | | | 00003bf0 20 20 7c 0d 20 7c 20 34 30 54 20 44 2d 53 20 20 | |. | 40T D-S | 00003c00 20 20 20 20 20 20 20 20 20 7c 20 31 30 32 20 20 | | 102 | 00003c10 7c 20 31 36 36 20 20 7c 20 31 38 38 20 20 7c 20 || 166 | 188 | | 00003c20 33 33 37 20 20 7c 20 33 38 30 20 20 7c 0d 20 7c |337 | 380 |. || 00003c30 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |________________| 00003c40 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f |___|______|_____| 00003c50 5f 7c 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c |_|______|______|| 00003c60 5f 5f 5f 5f 5f 5f 7c 0d 20 7c 20 20 20 20 20 20 |______|. | | 00003c70 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 20 | | | 00003c80 20 20 20 20 7c 20 20 20 20 20 20 7c 20 20 20 20 | | | | 00003c90 20 20 7c 20 20 20 20 20 20 7c 20 20 20 20 20 20 | | | | 00003ca0 7c 0d 20 7c 20 38 30 54 20 44 2d 53 20 20 20 20 ||. | 80T D-S | 00003cb0 20 20 20 20 20 20 20 7c 20 32 30 39 20 20 7c 20 | | 209 | | 00003cc0 33 33 37 20 20 7c 20 33 38 30 20 20 7c 20 36 37 |337 | 380 | 67| 00003cd0 38 20 20 7c 20 37 36 34 20 20 7c 0d 20 7c 5f 5f |8 | 764 |. |__| 00003ce0 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |________________| 00003cf0 5f 7c 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c |_|______|______|| 00003d00 5f 5f 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 5f 7c 5f 5f |______|______|__| 00003d10 5f 5f 5f 5f 7c 0d 0d 0d 20 20 20 20 20 20 20 20 |____|... | 00003d20 20 20 20 46 49 47 20 32 3a 20 4d 65 6d 6f 72 79 | FIG 2: Memory| 00003d30 20 6d 61 70 0d 20 20 20 20 20 20 20 20 20 20 20 | map. | 00003d40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00003d50 20 20 20 0d 20 20 20 20 20 20 20 20 54 46 53 20 | . TFS | 00003d60 20 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 20 20 | _____________ | 00003d70 41 54 53 0d 20 20 20 20 20 20 20 20 20 20 20 20 |ATS. | 00003d80 7c 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 0d || |.| 00003d90 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 20 20 | | | 00003da0 53 43 52 45 45 4e 20 20 20 20 7c 0d 20 20 20 20 |SCREEN |. | 00003db0 20 20 20 26 37 43 30 30 7c 5f 5f 5f 5f 5f 5f 5f | &7C00|_______| 00003dc0 5f 5f 5f 5f 5f 5f 7c 26 37 43 30 30 0d 20 20 20 |______|&7C00. | 00003dd0 20 20 20 20 20 20 20 20 20 7c 20 20 20 20 20 20 | | | 00003de0 20 20 20 20 20 20 20 7c 0d 20 20 20 20 20 20 20 | |. | 00003df0 20 20 20 20 20 7c 20 20 20 53 43 52 45 45 4e 20 | | SCREEN | 00003e00 20 20 20 7c 0d 20 20 20 20 20 20 20 20 20 20 20 | |. | 00003e10 20 7c 20 20 20 53 54 4f 52 41 47 45 20 20 20 7c | | STORAGE || 00003e20 0d 20 20 20 20 20 20 20 26 37 34 38 30 7c 5f 5f |. &7480|__| 00003e30 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 7c 26 37 34 38 |___________|&748| 00003e40 30 0d 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 |0. | | 00003e50 20 20 20 20 20 20 20 20 20 20 20 20 7c 0d 20 20 | |. | 00003e60 20 20 20 20 20 20 20 20 20 20 7c 20 20 20 20 49 | | I| 00003e70 4e 44 45 58 20 20 20 20 7c 0d 20 20 20 20 20 20 |NDEX |. | 00003e80 20 26 36 38 30 30 7c 5f 5f 5f 5f 5f 5f 5f 5f 5f | &6800|_________| 00003e90 5f 5f 5f 5f 7c 26 36 38 30 30 0d 20 20 20 20 20 |____|&6800. | 00003ea0 20 20 20 20 20 20 20 7c 20 20 20 20 20 20 20 20 | | | 00003eb0 20 20 20 20 20 7c 0d 20 20 20 20 20 20 20 20 20 | |. | 00003ec0 20 20 20 7c 20 50 52 49 4e 54 20 43 4f 44 45 20 | | PRINT CODE | 00003ed0 20 7c 0d 20 20 20 20 20 20 20 26 36 37 30 30 7c | |. &6700|| 00003ee0 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 7c 26 36 |_____________|&6| 00003ef0 37 30 30 0d 20 20 20 20 20 20 20 20 20 20 20 20 |700. | 00003f00 7c 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 0d || |.| 00003f10 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 42 55 | | BU| 00003f20 46 46 45 52 20 43 4f 44 45 20 7c 0d 20 20 20 20 |FFER CODE |. | 00003f30 20 20 20 26 36 36 30 30 7c 5f 5f 5f 5f 5f 5f 5f | &6600|_______| 00003f40 5f 5f 5f 5f 5f 5f 7c 26 36 36 30 30 0d 20 20 20 |______|&6600. | 00003f50 20 20 20 20 20 20 20 20 20 7c 20 20 20 20 20 20 | | | 00003f60 20 20 20 20 20 20 20 7c 0d 20 20 20 20 20 20 20 | |. | 00003f70 20 20 20 20 20 7c 20 20 20 42 55 46 46 45 52 20 | | BUFFER | 00003f80 20 20 20 7c 0d 20 20 20 20 20 20 20 20 20 20 20 | |. | 00003f90 20 7c 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 7c | |_____________|| 00003fa0 0d 20 20 20 20 20 20 20 26 33 44 30 30 7c 20 20 |. &3D00| | 00003fb0 20 20 48 49 4d 45 4d 20 20 20 20 7c 26 33 33 30 | HIMEM |&330| 00003fc0 30 0d 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 |0. | | 00003fd0 20 20 20 20 20 20 20 20 20 20 20 20 7c 0d 20 20 | |. | 00003fe0 20 20 20 20 20 20 20 20 20 20 7c 20 20 56 41 52 | | VAR| 00003ff0 49 41 42 4c 45 53 20 20 7c 0d 20 20 20 20 20 20 |IABLES |. | 00004000 20 20 20 20 20 20 7c 5f 5f 5f 5f 5f 5f 5f 5f 5f | |_________| 00004010 5f 5f 5f 5f 7c 0d 20 20 20 20 20 20 20 20 20 20 |____|. | 00004020 20 20 7c 20 20 20 20 20 54 4f 50 20 20 20 20 20 | | TOP | 00004030 7c 0d 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 ||. | | 00004040 20 20 20 20 20 20 20 20 20 20 20 20 7c 0d 20 20 | |. | 00004050 20 20 20 20 20 20 20 20 20 20 7c 20 20 20 20 42 | | B| 00004060 41 53 49 43 20 20 20 20 7c 0d 20 20 20 20 20 20 |ASIC |. | 00004070 20 26 32 34 30 30 7c 5f 5f 5f 5f 5f 5f 5f 5f 5f | &2400|_________| 00004080 5f 5f 5f 5f 7c 26 31 41 30 30 0d 20 20 20 20 20 |____|&1A00. | 00004090 20 20 20 20 20 20 20 20 20 20 20 20 50 41 47 45 | PAGE| 000040a0 20 0d | .| 000040a2