Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_40.ADF » P/+eugex2

P/+eugex2

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 » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_40.ADF
Filename: P/+eugex2
Read OK:
File size: 114C bytes
Load address: 2B0D6576
Exec address: 65677565
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
When a sub menu is printed with L% greater than 900, the program skips
lines 200 and 210.  Line 220 restores Z% to FALSE, L% to 900 and prints
the Main menu when R is pressed.  Line 230 decreases a% and then the DATA
is read as above.

Line 250 stores the three strins f$,P$ and S$ at the bottom of the stack
for transfer to the 'PRINT' program.

PRINT
~~~~~ 
This program runs normally if Z% is FALSE to print all text files but goes
to the print routines, PROCtext line 430, to print the individual files if
Z% is TRUE.

As this program is more easily followed, I will simply write notes on the
procedures used.

PROCscreen
~~~~~~~~~~
T% is a flag to allow printing of the messages when this is FALSE for
printing to screen.  VDU14 sets paged mode and PROCdirs called.

PROCprinter
~~~~~~~~~~~
T% is TRUE to skip the messages and VDU15 cancels paged mode.  If Z% is
TRUE PROCtext is called for printing individual files and if FALSE calls
PROCdirs for printing all text files.

PROCdirs
~~~~~~~~ 
This changes the Directories in turn (if a directory is not used, it may
be REMed out). The routine 'readdir' is called to read and print the text
files.  The program returns to the root directory at the end for return to
the Menu.

PROCreaddir
~~~~~~~~~~~
This uses 'OSGBPB' with A=8 to read the filenames in the selected
directory.  Each filename is read and checked if the first character is a
+ indicating a text file and if so PROCldfile is called to put the
filename into the print routine.

PROCldfile
~~~~~~~~~~
This assembles the variable fn$ for loadong into the 'print' routine form
the filename buffer 'fname' when read from the directories.

PROCprint
~~~~~~~~~
Line 370 sets the MODE to MODE6 to avoid the screen flicker while loading
the files and calls 'clear' to clear the memory.  

The files are loaded at line 380 (*LOAD fn$ 2600).  Line 390 then sets the
MODE to the value of m% and if T% is TRUE, printing to printer, VDU15,2
resets page mode and turns the printer on or sets page mode and prints the
cue to Scroll if T% is FALSE for printing to screen.

PROCtext
~~~~~~~~
This routine is called when Z% is TRUE when individual files are to be
printed and are selected from the menus.

Line 480 loads the string variables f$, P$ and S$ from the stack and the
MODE value m% is set to 6 if M% is TRUE or 3 if M% is FALSE

The variable f% is initially set to zero and is increased each time line
460 is called.  This line adds the serial number to the filename for
printing the files in sequence - *LOAD f$+STR$f% +2600.

The comparison at line 470 between f% and F% checks if all files have been
printed.  If this is not equal, the program goes to line 490 to print the
cue for Space if needed and then return to line 460 for the next file in
the sequence to printed.

If f% equals F% the text files have all been printed and if D% is TRUE the
PROCpic is called to print the drawings as described below.  Otherwise the
program goes to line 510.

This first switches off the printer, if it used, and then prints the cues.  
If R% is TRUE for a program to be run, the extra cue is added.

Line 560 sets MODE 6 and restores HIMEM to &6000 before CHAINing program
P$.

PROCpic
~~~~~~~  
This routine prints the drawings, if any, in a similar way as the text
files are printed.

The variables d% and D% count the files as do f% and F%. N% is the MODE
number in line 600 which loads the drawing - *LOAD S$+STR$d% (the serial
number).

The M/code program UCODE is called at line 610 for printing to printer if
T% is TRUE or the cue for Space if not.  When all drawings have been
printed, the printer is turned off, if used, and the procedure ended and
the program returns to line 510 to print the cues,

The rest of the program should be fairly easily followed and I hope I have
explained these sufficiently clearly.

SOME NOTES FOR DFS USERS
~~~~~~~~~~~~~~~~~~~~~~~~
The programs for DFS users have to be modified in some ways.  

Firstly, the directories are called with the single letter of the
directory and not with the $. before.  The PROCswap is called when the
disc is split into two directories.  This caused a problem when one
program from a menu was in the other directory to others on a split disc. 
This is allowed for by adding 10 to R% to call PROCswap when necessary. 
This then deducted so that R% functions as normally.

**************************************************************************

00000000  0d 57 68 65 6e 20 61 20  73 75 62 20 6d 65 6e 75  |.When a sub menu|
00000010  20 69 73 20 70 72 69 6e  74 65 64 20 77 69 74 68  | is printed with|
00000020  20 4c 25 20 67 72 65 61  74 65 72 20 74 68 61 6e  | L% greater than|
00000030  20 39 30 30 2c 20 74 68  65 20 70 72 6f 67 72 61  | 900, the progra|
00000040  6d 20 73 6b 69 70 73 0d  6c 69 6e 65 73 20 32 30  |m skips.lines 20|
00000050  30 20 61 6e 64 20 32 31  30 2e 20 20 4c 69 6e 65  |0 and 210.  Line|
00000060  20 32 32 30 20 72 65 73  74 6f 72 65 73 20 5a 25  | 220 restores Z%|
00000070  20 74 6f 20 46 41 4c 53  45 2c 20 4c 25 20 74 6f  | to FALSE, L% to|
00000080  20 39 30 30 20 61 6e 64  20 70 72 69 6e 74 73 0d  | 900 and prints.|
00000090  74 68 65 20 4d 61 69 6e  20 6d 65 6e 75 20 77 68  |the Main menu wh|
000000a0  65 6e 20 52 20 69 73 20  70 72 65 73 73 65 64 2e  |en R is pressed.|
000000b0  20 20 4c 69 6e 65 20 32  33 30 20 64 65 63 72 65  |  Line 230 decre|
000000c0  61 73 65 73 20 61 25 20  61 6e 64 20 74 68 65 6e  |ases a% and then|
000000d0  20 74 68 65 20 44 41 54  41 0d 69 73 20 72 65 61  | the DATA.is rea|
000000e0  64 20 61 73 20 61 62 6f  76 65 2e 0d 0d 4c 69 6e  |d as above...Lin|
000000f0  65 20 32 35 30 20 73 74  6f 72 65 73 20 74 68 65  |e 250 stores the|
00000100  20 74 68 72 65 65 20 73  74 72 69 6e 73 20 66 24  | three strins f$|
00000110  2c 50 24 20 61 6e 64 20  53 24 20 61 74 20 74 68  |,P$ and S$ at th|
00000120  65 20 62 6f 74 74 6f 6d  20 6f 66 20 74 68 65 20  |e bottom of the |
00000130  73 74 61 63 6b 0d 66 6f  72 20 74 72 61 6e 73 66  |stack.for transf|
00000140  65 72 20 74 6f 20 74 68  65 20 27 50 52 49 4e 54  |er to the 'PRINT|
00000150  27 20 70 72 6f 67 72 61  6d 2e 0d 0d 50 52 49 4e  |' program...PRIN|
00000160  54 0d 7e 7e 7e 7e 7e 20  0d 54 68 69 73 20 70 72  |T.~~~~~ .This pr|
00000170  6f 67 72 61 6d 20 72 75  6e 73 20 6e 6f 72 6d 61  |ogram runs norma|
00000180  6c 6c 79 20 69 66 20 5a  25 20 69 73 20 46 41 4c  |lly if Z% is FAL|
00000190  53 45 20 74 6f 20 70 72  69 6e 74 20 61 6c 6c 20  |SE to print all |
000001a0  74 65 78 74 20 66 69 6c  65 73 20 62 75 74 20 67  |text files but g|
000001b0  6f 65 73 0d 74 6f 20 74  68 65 20 70 72 69 6e 74  |oes.to the print|
000001c0  20 72 6f 75 74 69 6e 65  73 2c 20 50 52 4f 43 74  | routines, PROCt|
000001d0  65 78 74 20 6c 69 6e 65  20 34 33 30 2c 20 74 6f  |ext line 430, to|
000001e0  20 70 72 69 6e 74 20 74  68 65 20 69 6e 64 69 76  | print the indiv|
000001f0  69 64 75 61 6c 20 66 69  6c 65 73 20 69 66 0d 5a  |idual files if.Z|
00000200  25 20 69 73 20 54 52 55  45 2e 0d 0d 41 73 20 74  |% is TRUE...As t|
00000210  68 69 73 20 70 72 6f 67  72 61 6d 20 69 73 20 6d  |his program is m|
00000220  6f 72 65 20 65 61 73 69  6c 79 20 66 6f 6c 6c 6f  |ore easily follo|
00000230  77 65 64 2c 20 49 20 77  69 6c 6c 20 73 69 6d 70  |wed, I will simp|
00000240  6c 79 20 77 72 69 74 65  20 6e 6f 74 65 73 20 6f  |ly write notes o|
00000250  6e 20 74 68 65 0d 70 72  6f 63 65 64 75 72 65 73  |n the.procedures|
00000260  20 75 73 65 64 2e 0d 0d  50 52 4f 43 73 63 72 65  | used...PROCscre|
00000270  65 6e 0d 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 0d 54 25  |en.~~~~~~~~~~.T%|
00000280  20 69 73 20 61 20 66 6c  61 67 20 74 6f 20 61 6c  | is a flag to al|
00000290  6c 6f 77 20 70 72 69 6e  74 69 6e 67 20 6f 66 20  |low printing of |
000002a0  74 68 65 20 6d 65 73 73  61 67 65 73 20 77 68 65  |the messages whe|
000002b0  6e 20 74 68 69 73 20 69  73 20 46 41 4c 53 45 20  |n this is FALSE |
000002c0  66 6f 72 0d 70 72 69 6e  74 69 6e 67 20 74 6f 20  |for.printing to |
000002d0  73 63 72 65 65 6e 2e 20  20 56 44 55 31 34 20 73  |screen.  VDU14 s|
000002e0  65 74 73 20 70 61 67 65  64 20 6d 6f 64 65 20 61  |ets paged mode a|
000002f0  6e 64 20 50 52 4f 43 64  69 72 73 20 63 61 6c 6c  |nd PROCdirs call|
00000300  65 64 2e 0d 0d 50 52 4f  43 70 72 69 6e 74 65 72  |ed...PROCprinter|
00000310  0d 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 0d 54 25 20  |.~~~~~~~~~~~.T% |
00000320  69 73 20 54 52 55 45 20  74 6f 20 73 6b 69 70 20  |is TRUE to skip |
00000330  74 68 65 20 6d 65 73 73  61 67 65 73 20 61 6e 64  |the messages and|
00000340  20 56 44 55 31 35 20 63  61 6e 63 65 6c 73 20 70  | VDU15 cancels p|
00000350  61 67 65 64 20 6d 6f 64  65 2e 20 20 49 66 20 5a  |aged mode.  If Z|
00000360  25 20 69 73 0d 54 52 55  45 20 50 52 4f 43 74 65  |% is.TRUE PROCte|
00000370  78 74 20 69 73 20 63 61  6c 6c 65 64 20 66 6f 72  |xt is called for|
00000380  20 70 72 69 6e 74 69 6e  67 20 69 6e 64 69 76 69  | printing indivi|
00000390  64 75 61 6c 20 66 69 6c  65 73 20 61 6e 64 20 69  |dual files and i|
000003a0  66 20 46 41 4c 53 45 20  63 61 6c 6c 73 0d 50 52  |f FALSE calls.PR|
000003b0  4f 43 64 69 72 73 20 66  6f 72 20 70 72 69 6e 74  |OCdirs for print|
000003c0  69 6e 67 20 61 6c 6c 20  74 65 78 74 20 66 69 6c  |ing all text fil|
000003d0  65 73 2e 0d 0d 50 52 4f  43 64 69 72 73 0d 7e 7e  |es...PROCdirs.~~|
000003e0  7e 7e 7e 7e 7e 7e 20 0d  54 68 69 73 20 63 68 61  |~~~~~~ .This cha|
000003f0  6e 67 65 73 20 74 68 65  20 44 69 72 65 63 74 6f  |nges the Directo|
00000400  72 69 65 73 20 69 6e 20  74 75 72 6e 20 28 69 66  |ries in turn (if|
00000410  20 61 20 64 69 72 65 63  74 6f 72 79 20 69 73 20  | a directory is |
00000420  6e 6f 74 20 75 73 65 64  2c 20 69 74 20 6d 61 79  |not used, it may|
00000430  0d 62 65 20 52 45 4d 65  64 20 6f 75 74 29 2e 20  |.be REMed out). |
00000440  54 68 65 20 72 6f 75 74  69 6e 65 20 27 72 65 61  |The routine 'rea|
00000450  64 64 69 72 27 20 69 73  20 63 61 6c 6c 65 64 20  |ddir' is called |
00000460  74 6f 20 72 65 61 64 20  61 6e 64 20 70 72 69 6e  |to read and prin|
00000470  74 20 74 68 65 20 74 65  78 74 0d 66 69 6c 65 73  |t the text.files|
00000480  2e 20 20 54 68 65 20 70  72 6f 67 72 61 6d 20 72  |.  The program r|
00000490  65 74 75 72 6e 73 20 74  6f 20 74 68 65 20 72 6f  |eturns to the ro|
000004a0  6f 74 20 64 69 72 65 63  74 6f 72 79 20 61 74 20  |ot directory at |
000004b0  74 68 65 20 65 6e 64 20  66 6f 72 20 72 65 74 75  |the end for retu|
000004c0  72 6e 20 74 6f 0d 74 68  65 20 4d 65 6e 75 2e 0d  |rn to.the Menu..|
000004d0  0d 50 52 4f 43 72 65 61  64 64 69 72 0d 7e 7e 7e  |.PROCreaddir.~~~|
000004e0  7e 7e 7e 7e 7e 7e 7e 7e  0d 54 68 69 73 20 75 73  |~~~~~~~~.This us|
000004f0  65 73 20 27 4f 53 47 42  50 42 27 20 77 69 74 68  |es 'OSGBPB' with|
00000500  20 41 3d 38 20 74 6f 20  72 65 61 64 20 74 68 65  | A=8 to read the|
00000510  20 66 69 6c 65 6e 61 6d  65 73 20 69 6e 20 74 68  | filenames in th|
00000520  65 20 73 65 6c 65 63 74  65 64 0d 64 69 72 65 63  |e selected.direc|
00000530  74 6f 72 79 2e 20 20 45  61 63 68 20 66 69 6c 65  |tory.  Each file|
00000540  6e 61 6d 65 20 69 73 20  72 65 61 64 20 61 6e 64  |name is read and|
00000550  20 63 68 65 63 6b 65 64  20 69 66 20 74 68 65 20  | checked if the |
00000560  66 69 72 73 74 20 63 68  61 72 61 63 74 65 72 20  |first character |
00000570  69 73 20 61 0d 2b 20 69  6e 64 69 63 61 74 69 6e  |is a.+ indicatin|
00000580  67 20 61 20 74 65 78 74  20 66 69 6c 65 20 61 6e  |g a text file an|
00000590  64 20 69 66 20 73 6f 20  50 52 4f 43 6c 64 66 69  |d if so PROCldfi|
000005a0  6c 65 20 69 73 20 63 61  6c 6c 65 64 20 74 6f 20  |le is called to |
000005b0  70 75 74 20 74 68 65 0d  66 69 6c 65 6e 61 6d 65  |put the.filename|
000005c0  20 69 6e 74 6f 20 74 68  65 20 70 72 69 6e 74 20  | into the print |
000005d0  72 6f 75 74 69 6e 65 2e  0d 0d 50 52 4f 43 6c 64  |routine...PROCld|
000005e0  66 69 6c 65 0d 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 0d  |file.~~~~~~~~~~.|
000005f0  54 68 69 73 20 61 73 73  65 6d 62 6c 65 73 20 74  |This assembles t|
00000600  68 65 20 76 61 72 69 61  62 6c 65 20 66 6e 24 20  |he variable fn$ |
00000610  66 6f 72 20 6c 6f 61 64  6f 6e 67 20 69 6e 74 6f  |for loadong into|
00000620  20 74 68 65 20 27 70 72  69 6e 74 27 20 72 6f 75  | the 'print' rou|
00000630  74 69 6e 65 20 66 6f 72  6d 0d 74 68 65 20 66 69  |tine form.the fi|
00000640  6c 65 6e 61 6d 65 20 62  75 66 66 65 72 20 27 66  |lename buffer 'f|
00000650  6e 61 6d 65 27 20 77 68  65 6e 20 72 65 61 64 20  |name' when read |
00000660  66 72 6f 6d 20 74 68 65  20 64 69 72 65 63 74 6f  |from the directo|
00000670  72 69 65 73 2e 0d 0d 50  52 4f 43 70 72 69 6e 74  |ries...PROCprint|
00000680  0d 7e 7e 7e 7e 7e 7e 7e  7e 7e 0d 4c 69 6e 65 20  |.~~~~~~~~~.Line |
00000690  33 37 30 20 73 65 74 73  20 74 68 65 20 4d 4f 44  |370 sets the MOD|
000006a0  45 20 74 6f 20 4d 4f 44  45 36 20 74 6f 20 61 76  |E to MODE6 to av|
000006b0  6f 69 64 20 74 68 65 20  73 63 72 65 65 6e 20 66  |oid the screen f|
000006c0  6c 69 63 6b 65 72 20 77  68 69 6c 65 20 6c 6f 61  |licker while loa|
000006d0  64 69 6e 67 0d 74 68 65  20 66 69 6c 65 73 20 61  |ding.the files a|
000006e0  6e 64 20 63 61 6c 6c 73  20 27 63 6c 65 61 72 27  |nd calls 'clear'|
000006f0  20 74 6f 20 63 6c 65 61  72 20 74 68 65 20 6d 65  | to clear the me|
00000700  6d 6f 72 79 2e 20 20 0d  0d 54 68 65 20 66 69 6c  |mory.  ..The fil|
00000710  65 73 20 61 72 65 20 6c  6f 61 64 65 64 20 61 74  |es are loaded at|
00000720  20 6c 69 6e 65 20 33 38  30 20 28 2a 4c 4f 41 44  | line 380 (*LOAD|
00000730  20 66 6e 24 20 32 36 30  30 29 2e 20 20 4c 69 6e  | fn$ 2600).  Lin|
00000740  65 20 33 39 30 20 74 68  65 6e 20 73 65 74 73 20  |e 390 then sets |
00000750  74 68 65 0d 4d 4f 44 45  20 74 6f 20 74 68 65 20  |the.MODE to the |
00000760  76 61 6c 75 65 20 6f 66  20 6d 25 20 61 6e 64 20  |value of m% and |
00000770  69 66 20 54 25 20 69 73  20 54 52 55 45 2c 20 70  |if T% is TRUE, p|
00000780  72 69 6e 74 69 6e 67 20  74 6f 20 70 72 69 6e 74  |rinting to print|
00000790  65 72 2c 20 56 44 55 31  35 2c 32 0d 72 65 73 65  |er, VDU15,2.rese|
000007a0  74 73 20 70 61 67 65 20  6d 6f 64 65 20 61 6e 64  |ts page mode and|
000007b0  20 74 75 72 6e 73 20 74  68 65 20 70 72 69 6e 74  | turns the print|
000007c0  65 72 20 6f 6e 20 6f 72  20 73 65 74 73 20 70 61  |er on or sets pa|
000007d0  67 65 20 6d 6f 64 65 20  61 6e 64 20 70 72 69 6e  |ge mode and prin|
000007e0  74 73 20 74 68 65 0d 63  75 65 20 74 6f 20 53 63  |ts the.cue to Sc|
000007f0  72 6f 6c 6c 20 69 66 20  54 25 20 69 73 20 46 41  |roll if T% is FA|
00000800  4c 53 45 20 66 6f 72 20  70 72 69 6e 74 69 6e 67  |LSE for printing|
00000810  20 74 6f 20 73 63 72 65  65 6e 2e 0d 0d 50 52 4f  | to screen...PRO|
00000820  43 74 65 78 74 0d 7e 7e  7e 7e 7e 7e 7e 7e 0d 54  |Ctext.~~~~~~~~.T|
00000830  68 69 73 20 72 6f 75 74  69 6e 65 20 69 73 20 63  |his routine is c|
00000840  61 6c 6c 65 64 20 77 68  65 6e 20 5a 25 20 69 73  |alled when Z% is|
00000850  20 54 52 55 45 20 77 68  65 6e 20 69 6e 64 69 76  | TRUE when indiv|
00000860  69 64 75 61 6c 20 66 69  6c 65 73 20 61 72 65 20  |idual files are |
00000870  74 6f 20 62 65 0d 70 72  69 6e 74 65 64 20 61 6e  |to be.printed an|
00000880  64 20 61 72 65 20 73 65  6c 65 63 74 65 64 20 66  |d are selected f|
00000890  72 6f 6d 20 74 68 65 20  6d 65 6e 75 73 2e 0d 0d  |rom the menus...|
000008a0  4c 69 6e 65 20 34 38 30  20 6c 6f 61 64 73 20 74  |Line 480 loads t|
000008b0  68 65 20 73 74 72 69 6e  67 20 76 61 72 69 61 62  |he string variab|
000008c0  6c 65 73 20 66 24 2c 20  50 24 20 61 6e 64 20 53  |les f$, P$ and S|
000008d0  24 20 66 72 6f 6d 20 74  68 65 20 73 74 61 63 6b  |$ from the stack|
000008e0  20 61 6e 64 20 74 68 65  0d 4d 4f 44 45 20 76 61  | and the.MODE va|
000008f0  6c 75 65 20 6d 25 20 69  73 20 73 65 74 20 74 6f  |lue m% is set to|
00000900  20 36 20 69 66 20 4d 25  20 69 73 20 54 52 55 45  | 6 if M% is TRUE|
00000910  20 6f 72 20 33 20 69 66  20 4d 25 20 69 73 20 46  | or 3 if M% is F|
00000920  41 4c 53 45 0d 0d 54 68  65 20 76 61 72 69 61 62  |ALSE..The variab|
00000930  6c 65 20 66 25 20 69 73  20 69 6e 69 74 69 61 6c  |le f% is initial|
00000940  6c 79 20 73 65 74 20 74  6f 20 7a 65 72 6f 20 61  |ly set to zero a|
00000950  6e 64 20 69 73 20 69 6e  63 72 65 61 73 65 64 20  |nd is increased |
00000960  65 61 63 68 20 74 69 6d  65 20 6c 69 6e 65 0d 34  |each time line.4|
00000970  36 30 20 69 73 20 63 61  6c 6c 65 64 2e 20 20 54  |60 is called.  T|
00000980  68 69 73 20 6c 69 6e 65  20 61 64 64 73 20 74 68  |his line adds th|
00000990  65 20 73 65 72 69 61 6c  20 6e 75 6d 62 65 72 20  |e serial number |
000009a0  74 6f 20 74 68 65 20 66  69 6c 65 6e 61 6d 65 20  |to the filename |
000009b0  66 6f 72 0d 70 72 69 6e  74 69 6e 67 20 74 68 65  |for.printing the|
000009c0  20 66 69 6c 65 73 20 69  6e 20 73 65 71 75 65 6e  | files in sequen|
000009d0  63 65 20 2d 20 2a 4c 4f  41 44 20 66 24 2b 53 54  |ce - *LOAD f$+ST|
000009e0  52 24 66 25 20 2b 32 36  30 30 2e 0d 0d 54 68 65  |R$f% +2600...The|
000009f0  20 63 6f 6d 70 61 72 69  73 6f 6e 20 61 74 20 6c  | comparison at l|
00000a00  69 6e 65 20 34 37 30 20  62 65 74 77 65 65 6e 20  |ine 470 between |
00000a10  66 25 20 61 6e 64 20 46  25 20 63 68 65 63 6b 73  |f% and F% checks|
00000a20  20 69 66 20 61 6c 6c 20  66 69 6c 65 73 20 68 61  | if all files ha|
00000a30  76 65 20 62 65 65 6e 0d  70 72 69 6e 74 65 64 2e  |ve been.printed.|
00000a40  20 20 49 66 20 74 68 69  73 20 69 73 20 6e 6f 74  |  If this is not|
00000a50  20 65 71 75 61 6c 2c 20  74 68 65 20 70 72 6f 67  | equal, the prog|
00000a60  72 61 6d 20 67 6f 65 73  20 74 6f 20 6c 69 6e 65  |ram goes to line|
00000a70  20 34 39 30 20 74 6f 20  70 72 69 6e 74 20 74 68  | 490 to print th|
00000a80  65 0d 63 75 65 20 66 6f  72 20 53 70 61 63 65 20  |e.cue for Space |
00000a90  69 66 20 6e 65 65 64 65  64 20 61 6e 64 20 74 68  |if needed and th|
00000aa0  65 6e 20 72 65 74 75 72  6e 20 74 6f 20 6c 69 6e  |en return to lin|
00000ab0  65 20 34 36 30 20 66 6f  72 20 74 68 65 20 6e 65  |e 460 for the ne|
00000ac0  78 74 20 66 69 6c 65 20  69 6e 0d 74 68 65 20 73  |xt file in.the s|
00000ad0  65 71 75 65 6e 63 65 20  74 6f 20 70 72 69 6e 74  |equence to print|
00000ae0  65 64 2e 0d 0d 49 66 20  66 25 20 65 71 75 61 6c  |ed...If f% equal|
00000af0  73 20 46 25 20 74 68 65  20 74 65 78 74 20 66 69  |s F% the text fi|
00000b00  6c 65 73 20 68 61 76 65  20 61 6c 6c 20 62 65 65  |les have all bee|
00000b10  6e 20 70 72 69 6e 74 65  64 20 61 6e 64 20 69 66  |n printed and if|
00000b20  20 44 25 20 69 73 20 54  52 55 45 20 74 68 65 0d  | D% is TRUE the.|
00000b30  50 52 4f 43 70 69 63 20  69 73 20 63 61 6c 6c 65  |PROCpic is calle|
00000b40  64 20 74 6f 20 70 72 69  6e 74 20 74 68 65 20 64  |d to print the d|
00000b50  72 61 77 69 6e 67 73 20  61 73 20 64 65 73 63 72  |rawings as descr|
00000b60  69 62 65 64 20 62 65 6c  6f 77 2e 20 20 4f 74 68  |ibed below.  Oth|
00000b70  65 72 77 69 73 65 20 74  68 65 0d 70 72 6f 67 72  |erwise the.progr|
00000b80  61 6d 20 67 6f 65 73 20  74 6f 20 6c 69 6e 65 20  |am goes to line |
00000b90  35 31 30 2e 0d 0d 54 68  69 73 20 66 69 72 73 74  |510...This first|
00000ba0  20 73 77 69 74 63 68 65  73 20 6f 66 66 20 74 68  | switches off th|
00000bb0  65 20 70 72 69 6e 74 65  72 2c 20 69 66 20 69 74  |e printer, if it|
00000bc0  20 75 73 65 64 2c 20 61  6e 64 20 74 68 65 6e 20  | used, and then |
00000bd0  70 72 69 6e 74 73 20 74  68 65 20 63 75 65 73 2e  |prints the cues.|
00000be0  20 20 0d 49 66 20 52 25  20 69 73 20 54 52 55 45  |  .If R% is TRUE|
00000bf0  20 66 6f 72 20 61 20 70  72 6f 67 72 61 6d 20 74  | for a program t|
00000c00  6f 20 62 65 20 72 75 6e  2c 20 74 68 65 20 65 78  |o be run, the ex|
00000c10  74 72 61 20 63 75 65 20  69 73 20 61 64 64 65 64  |tra cue is added|
00000c20  2e 0d 0d 4c 69 6e 65 20  35 36 30 20 73 65 74 73  |...Line 560 sets|
00000c30  20 4d 4f 44 45 20 36 20  61 6e 64 20 72 65 73 74  | MODE 6 and rest|
00000c40  6f 72 65 73 20 48 49 4d  45 4d 20 74 6f 20 26 36  |ores HIMEM to &6|
00000c50  30 30 30 20 62 65 66 6f  72 65 20 43 48 41 49 4e  |000 before CHAIN|
00000c60  69 6e 67 20 70 72 6f 67  72 61 6d 0d 50 24 2e 0d  |ing program.P$..|
00000c70  0d 50 52 4f 43 70 69 63  0d 7e 7e 7e 7e 7e 7e 7e  |.PROCpic.~~~~~~~|
00000c80  20 20 0d 54 68 69 73 20  72 6f 75 74 69 6e 65 20  |  .This routine |
00000c90  70 72 69 6e 74 73 20 74  68 65 20 64 72 61 77 69  |prints the drawi|
00000ca0  6e 67 73 2c 20 69 66 20  61 6e 79 2c 20 69 6e 20  |ngs, if any, in |
00000cb0  61 20 73 69 6d 69 6c 61  72 20 77 61 79 20 61 73  |a similar way as|
00000cc0  20 74 68 65 20 74 65 78  74 0d 66 69 6c 65 73 20  | the text.files |
00000cd0  61 72 65 20 70 72 69 6e  74 65 64 2e 0d 0d 54 68  |are printed...Th|
00000ce0  65 20 76 61 72 69 61 62  6c 65 73 20 64 25 20 61  |e variables d% a|
00000cf0  6e 64 20 44 25 20 63 6f  75 6e 74 20 74 68 65 20  |nd D% count the |
00000d00  66 69 6c 65 73 20 61 73  20 64 6f 20 66 25 20 61  |files as do f% a|
00000d10  6e 64 20 46 25 2e 20 4e  25 20 69 73 20 74 68 65  |nd F%. N% is the|
00000d20  20 4d 4f 44 45 0d 6e 75  6d 62 65 72 20 69 6e 20  | MODE.number in |
00000d30  6c 69 6e 65 20 36 30 30  20 77 68 69 63 68 20 6c  |line 600 which l|
00000d40  6f 61 64 73 20 74 68 65  20 64 72 61 77 69 6e 67  |oads the drawing|
00000d50  20 2d 20 2a 4c 4f 41 44  20 53 24 2b 53 54 52 24  | - *LOAD S$+STR$|
00000d60  64 25 20 28 74 68 65 20  73 65 72 69 61 6c 0d 6e  |d% (the serial.n|
00000d70  75 6d 62 65 72 29 2e 0d  0d 54 68 65 20 4d 2f 63  |umber)...The M/c|
00000d80  6f 64 65 20 70 72 6f 67  72 61 6d 20 55 43 4f 44  |ode program UCOD|
00000d90  45 20 69 73 20 63 61 6c  6c 65 64 20 61 74 20 6c  |E is called at l|
00000da0  69 6e 65 20 36 31 30 20  66 6f 72 20 70 72 69 6e  |ine 610 for prin|
00000db0  74 69 6e 67 20 74 6f 20  70 72 69 6e 74 65 72 20  |ting to printer |
00000dc0  69 66 0d 54 25 20 69 73  20 54 52 55 45 20 6f 72  |if.T% is TRUE or|
00000dd0  20 74 68 65 20 63 75 65  20 66 6f 72 20 53 70 61  | the cue for Spa|
00000de0  63 65 20 69 66 20 6e 6f  74 2e 20 20 57 68 65 6e  |ce if not.  When|
00000df0  20 61 6c 6c 20 64 72 61  77 69 6e 67 73 20 68 61  | all drawings ha|
00000e00  76 65 20 62 65 65 6e 0d  70 72 69 6e 74 65 64 2c  |ve been.printed,|
00000e10  20 74 68 65 20 70 72 69  6e 74 65 72 20 69 73 20  | the printer is |
00000e20  74 75 72 6e 65 64 20 6f  66 66 2c 20 69 66 20 75  |turned off, if u|
00000e30  73 65 64 2c 20 61 6e 64  20 74 68 65 20 70 72 6f  |sed, and the pro|
00000e40  63 65 64 75 72 65 20 65  6e 64 65 64 20 61 6e 64  |cedure ended and|
00000e50  0d 74 68 65 20 70 72 6f  67 72 61 6d 20 72 65 74  |.the program ret|
00000e60  75 72 6e 73 20 74 6f 20  6c 69 6e 65 20 35 31 30  |urns to line 510|
00000e70  20 74 6f 20 70 72 69 6e  74 20 74 68 65 20 63 75  | to print the cu|
00000e80  65 73 2c 0d 0d 54 68 65  20 72 65 73 74 20 6f 66  |es,..The rest of|
00000e90  20 74 68 65 20 70 72 6f  67 72 61 6d 20 73 68 6f  | the program sho|
00000ea0  75 6c 64 20 62 65 20 66  61 69 72 6c 79 20 65 61  |uld be fairly ea|
00000eb0  73 69 6c 79 20 66 6f 6c  6c 6f 77 65 64 20 61 6e  |sily followed an|
00000ec0  64 20 49 20 68 6f 70 65  20 49 20 68 61 76 65 0d  |d I hope I have.|
00000ed0  65 78 70 6c 61 69 6e 65  64 20 74 68 65 73 65 20  |explained these |
00000ee0  73 75 66 66 69 63 69 65  6e 74 6c 79 20 63 6c 65  |sufficiently cle|
00000ef0  61 72 6c 79 2e 0d 0d 53  4f 4d 45 20 4e 4f 54 45  |arly...SOME NOTE|
00000f00  53 20 46 4f 52 20 44 46  53 20 55 53 45 52 53 0d  |S FOR DFS USERS.|
00000f10  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |~~~~~~~~~~~~~~~~|
00000f20  7e 7e 7e 7e 7e 7e 7e 7e  0d 54 68 65 20 70 72 6f  |~~~~~~~~.The pro|
00000f30  67 72 61 6d 73 20 66 6f  72 20 44 46 53 20 75 73  |grams for DFS us|
00000f40  65 72 73 20 68 61 76 65  20 74 6f 20 62 65 20 6d  |ers have to be m|
00000f50  6f 64 69 66 69 65 64 20  69 6e 20 73 6f 6d 65 20  |odified in some |
00000f60  77 61 79 73 2e 20 20 0d  0d 46 69 72 73 74 6c 79  |ways.  ..Firstly|
00000f70  2c 20 74 68 65 20 64 69  72 65 63 74 6f 72 69 65  |, the directorie|
00000f80  73 20 61 72 65 20 63 61  6c 6c 65 64 20 77 69 74  |s are called wit|
00000f90  68 20 74 68 65 20 73 69  6e 67 6c 65 20 6c 65 74  |h the single let|
00000fa0  74 65 72 20 6f 66 20 74  68 65 0d 64 69 72 65 63  |ter of the.direc|
00000fb0  74 6f 72 79 20 61 6e 64  20 6e 6f 74 20 77 69 74  |tory and not wit|
00000fc0  68 20 74 68 65 20 24 2e  20 62 65 66 6f 72 65 2e  |h the $. before.|
00000fd0  20 20 54 68 65 20 50 52  4f 43 73 77 61 70 20 69  |  The PROCswap i|
00000fe0  73 20 63 61 6c 6c 65 64  20 77 68 65 6e 20 74 68  |s called when th|
00000ff0  65 0d 64 69 73 63 20 69  73 20 73 70 6c 69 74 20  |e.disc is split |
00001000  69 6e 74 6f 20 74 77 6f  20 64 69 72 65 63 74 6f  |into two directo|
00001010  72 69 65 73 2e 20 20 54  68 69 73 20 63 61 75 73  |ries.  This caus|
00001020  65 64 20 61 20 70 72 6f  62 6c 65 6d 20 77 68 65  |ed a problem whe|
00001030  6e 20 6f 6e 65 0d 70 72  6f 67 72 61 6d 20 66 72  |n one.program fr|
00001040  6f 6d 20 61 20 6d 65 6e  75 20 77 61 73 20 69 6e  |om a menu was in|
00001050  20 74 68 65 20 6f 74 68  65 72 20 64 69 72 65 63  | the other direc|
00001060  74 6f 72 79 20 74 6f 20  6f 74 68 65 72 73 20 6f  |tory to others o|
00001070  6e 20 61 20 73 70 6c 69  74 20 64 69 73 63 2e 20  |n a split disc. |
00001080  0d 54 68 69 73 20 69 73  20 61 6c 6c 6f 77 65 64  |.This is allowed|
00001090  20 66 6f 72 20 62 79 20  61 64 64 69 6e 67 20 31  | for by adding 1|
000010a0  30 20 74 6f 20 52 25 20  74 6f 20 63 61 6c 6c 20  |0 to R% to call |
000010b0  50 52 4f 43 73 77 61 70  20 77 68 65 6e 20 6e 65  |PROCswap when ne|
000010c0  63 65 73 73 61 72 79 2e  20 0d 54 68 69 73 20 74  |cessary. .This t|
000010d0  68 65 6e 20 64 65 64 75  63 74 65 64 20 73 6f 20  |hen deducted so |
000010e0  74 68 61 74 20 52 25 20  66 75 6e 63 74 69 6f 6e  |that R% function|
000010f0  73 20 61 73 20 6e 6f 72  6d 61 6c 6c 79 2e 0d 0d  |s as normally...|
00001100  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00001140  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 0d 0d              |**********..|
0000114c
P/+eugex2.m0
P/+eugex2.m1
P/+eugex2.m2
P/+eugex2.m4
P/+eugex2.m5