Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_27.ADF » P/+autor1

P/+autor1

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_27.ADF
Filename: P/+autor1
Read OK:
File size: 07DC bytes
Load address: D204556
Exec address: 1010101
File contents
AUTOROM
~~~~~~~
By Richard Dimond

This program was published in Acornuser, January 1992 and I have found it
very useful. It allowed you to save up to 16 short M/code files in SW RAM
and these then may be *RUN in the usual way.  When this is done, the
program is downloaded to the normal address each time.  There are &3700
bytes of memory for the programs and a 'Too big' error given if there is
not enough memory to save a file.  A *HELP facility gives the commands to
use it and a list of files held in memory.  The 4 commands are -

     *CLEAR  Clear memory.
     *CACHE  <filename> Save file
     *SCRAP  <filename> Delete file
     *DATA   List files CACHEd with file info

The program as published was intended for DFS use as it allowed for a
filename of 7 characters only.  As I usually use  ADFS,  I found that, if
a 10 character filename was entered, while the file was allowed to be
*CACHEd, it was not possible to use it as the filename was shortened to 8
characters.  Also it was impossible to *SCRAP it and the only way to
correct this was to *CLEAR the memory and *CACHE the files again.  

While I usually use short filenames, I thought I could modify the program
so that it would accept a 10 character filename to avoid this problem.  I
have now done this with several small changes to the program and this made
the totals for the checking needed to be altered too.

As the data for each program needed to be increased by 3 bytes giving a
total of 19 bytes for each index entry, it is not possible to allow for 16
programs as the length of the index is only 256 bytes and there is now
only room for 13.

To use the program, load it into SW RAM and press Ctrl/Brk to set it up. 
You must then enter *CLEAR <RETURN> to set up the memory.  If you then
enter *DATA, you will get the report - &3700 bytes free.  After *CACHEing
the files you must then re-save the program.

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

00000000  0d 41 55 54 4f 52 4f 4d  0d 7e 7e 7e 7e 7e 7e 7e  |.AUTOROM.~~~~~~~|
00000010  0d 42 79 20 52 69 63 68  61 72 64 20 44 69 6d 6f  |.By Richard Dimo|
00000020  6e 64 0d 0d 54 68 69 73  1a 20 70 72 6f 67 72 61  |nd..This. progra|
00000030  6d 20 77 61 73 20 70 75  62 6c 69 73 68 65 64 20  |m was published |
00000040  69 6e 20 41 63 6f 72 6e  75 73 65 72 2c 20 4a 61  |in Acornuser, Ja|
00000050  6e 75 61 72 79 20 31 39  39 32 20 61 6e 64 20 49  |nuary 1992 and I|
00000060  20 68 61 76 65 20 66 6f  75 6e 64 20 69 74 0d 76  | have found it.v|
00000070  65 72 79 20 75 73 65 66  75 6c 2e 1a 20 49 74 20  |ery useful.. It |
00000080  61 6c 6c 6f 77 65 64 20  79 6f 75 20 74 6f 20 73  |allowed you to s|
00000090  61 76 65 20 75 70 20 74  6f 20 31 36 20 73 68 6f  |ave up to 16 sho|
000000a0  72 74 20 4d 2f 63 6f 64  65 20 66 69 6c 65 73 20  |rt M/code files |
000000b0  69 6e 20 53 57 20 52 41  4d 0d 61 6e 64 20 74 68  |in SW RAM.and th|
000000c0  65 73 65 20 74 68 65 6e  20 6d 61 79 20 62 65 1a  |ese then may be.|
000000d0  20 2a 52 55 4e 1a 20 69  6e 1a 20 74 68 65 1a 20  | *RUN. in. the. |
000000e0  75 73 75 61 6c 1a 20 77  61 79 2e 1a 20 20 57 68  |usual. way..  Wh|
000000f0  65 6e 20 74 68 69 73 20  69 73 20 64 6f 6e 65 2c  |en this is done,|
00000100  20 74 68 65 0d 70 72 6f  67 72 61 6d 1a 20 69 73  | the.program. is|
00000110  1a 20 64 6f 77 6e 6c 6f  61 64 65 64 1a 20 74 6f  |. downloaded. to|
00000120  20 74 68 65 20 6e 6f 72  6d 61 6c 20 61 64 64 72  | the normal addr|
00000130  65 73 73 20 65 61 63 68  20 74 69 6d 65 2e 20 20  |ess each time.  |
00000140  54 68 65 72 65 20 61 72  65 20 26 33 37 30 30 0d  |There are &3700.|
00000150  62 79 74 65 73 20 6f 66  20 6d 65 6d 6f 72 79 20  |bytes of memory |
00000160  66 6f 72 1a 20 74 68 65  1a 20 70 72 6f 67 72 61  |for. the. progra|
00000170  6d 73 20 61 6e 64 20 61  20 27 54 6f 6f 20 62 69  |ms and a 'Too bi|
00000180  67 27 20 65 72 72 6f 72  20 67 69 76 65 6e 20 69  |g' error given i|
00000190  66 20 74 68 65 72 65 20  69 73 0d 6e 6f 74 20 65  |f there is.not e|
000001a0  6e 6f 75 67 68 20 6d 65  6d 6f 72 79 20 74 6f 20  |nough memory to |
000001b0  73 61 76 65 20 61 1a 20  66 69 6c 65 2e 20 20 41  |save a. file.  A|
000001c0  20 2a 48 45 4c 50 20 66  61 63 69 6c 69 74 79 20  | *HELP facility |
000001d0  67 69 76 65 73 20 74 68  65 20 63 6f 6d 6d 61 6e  |gives the comman|
000001e0  64 73 20 74 6f 0d 75 73  65 20 69 74 20 61 6e 64  |ds to.use it and|
000001f0  20 61 20 6c 69 73 74 20  6f 66 20 66 69 6c 65 73  | a list of files|
00000200  20 68 65 6c 64 20 69 6e  20 6d 65 6d 6f 72 79 2e  | held in memory.|
00000210  20 20 54 68 65 20 34 20  63 6f 6d 6d 61 6e 64 73  |  The 4 commands|
00000220  20 61 72 65 20 2d 0d 0d  20 20 20 20 20 2a 43 4c  | are -..     *CL|
00000230  45 41 52 20 20 43 6c 65  61 72 20 6d 65 6d 6f 72  |EAR  Clear memor|
00000240  79 2e 0d 20 20 20 20 20  2a 43 41 43 48 45 20 20  |y..     *CACHE  |
00000250  3c 66 69 6c 65 6e 61 6d  65 3e 20 53 61 76 65 20  |<filename> Save |
00000260  66 69 6c 65 0d 20 20 20  20 20 2a 53 43 52 41 50  |file.     *SCRAP|
00000270  20 20 3c 66 69 6c 65 6e  61 6d 65 3e 20 44 65 6c  |  <filename> Del|
00000280  65 74 65 20 66 69 6c 65  0d 20 20 20 20 20 2a 44  |ete file.     *D|
00000290  41 54 41 20 20 20 4c 69  73 74 20 66 69 6c 65 73  |ATA   List files|
000002a0  20 43 41 43 48 45 64 20  77 69 74 68 20 66 69 6c  | CACHEd with fil|
000002b0  65 20 69 6e 66 6f 0d 0d  54 68 65 20 70 72 6f 67  |e info..The prog|
000002c0  72 61 6d 20 61 73 20 70  75 62 6c 69 73 68 65 64  |ram as published|
000002d0  20 77 61 73 1a 20 69 6e  74 65 6e 64 65 64 1a 20  | was. intended. |
000002e0  66 6f 72 1a 20 44 46 53  1a 20 75 73 65 1a 20 61  |for. DFS. use. a|
000002f0  73 20 69 74 20 61 6c 6c  6f 77 65 64 20 66 6f 72  |s it allowed for|
00000300  20 61 0d 66 69 6c 65 6e  61 6d 65 20 6f 66 20 37  | a.filename of 7|
00000310  20 63 68 61 72 61 63 74  65 72 73 20 6f 6e 6c 79  | characters only|
00000320  2e 20 20 41 73 20 49 20  75 73 75 61 6c 6c 79 20  |.  As I usually |
00000330  75 73 65 20 20 41 44 46  53 2c 1a 20 20 49 20 66  |use  ADFS,.  I f|
00000340  6f 75 6e 64 20 74 68 61  74 2c 20 69 66 0d 61 20  |ound that, if.a |
00000350  31 30 20 63 68 61 72 61  63 74 65 72 20 66 69 6c  |10 character fil|
00000360  65 6e 61 6d 65 20 77 61  73 1a 20 65 6e 74 65 72  |ename was. enter|
00000370  65 64 2c 1a 20 77 68 69  6c 65 1a 20 74 68 65 1a  |ed,. while. the.|
00000380  20 66 69 6c 65 1a 20 77  61 73 20 61 6c 6c 6f 77  | file. was allow|
00000390  65 64 20 74 6f 20 62 65  0d 2a 43 41 43 48 45 64  |ed to be.*CACHEd|
000003a0  2c 20 69 74 20 77 61 73  20 6e 6f 74 20 70 6f 73  |, it was not pos|
000003b0  73 69 62 6c 65 1a 20 74  6f 20 75 73 65 20 69 74  |sible. to use it|
000003c0  20 61 73 20 74 68 65 20  66 69 6c 65 6e 61 6d 65  | as the filename|
000003d0  20 77 61 73 20 73 68 6f  72 74 65 6e 65 64 20 74  | was shortened t|
000003e0  6f 20 38 0d 63 68 61 72  61 63 74 65 72 73 2e 20  |o 8.characters. |
000003f0  20 41 6c 73 6f 20 69 74  20 77 61 73 20 69 6d 70  | Also it was imp|
00000400  6f 73 73 69 62 6c 65 20  74 6f 1a 20 2a 53 43 52  |ossible to. *SCR|
00000410  41 50 1a 20 69 74 1a 20  61 6e 64 1a 20 74 68 65  |AP. it. and. the|
00000420  1a 20 6f 6e 6c 79 1a 20  77 61 79 20 74 6f 0d 63  |. only. way to.c|
00000430  6f 72 72 65 63 74 20 74  68 69 73 20 77 61 73 20  |orrect this was |
00000440  74 6f 20 2a 43 4c 45 41  52 20 74 68 65 20 6d 65  |to *CLEAR the me|
00000450  6d 6f 72 79 20 61 6e 64  20 2a 43 41 43 48 45 20  |mory and *CACHE |
00000460  74 68 65 20 66 69 6c 65  73 20 61 67 61 69 6e 2e  |the files again.|
00000470  20 20 0d 0d 57 68 69 6c  65 20 49 20 75 73 75 61  |  ..While I usua|
00000480  6c 6c 79 20 75 73 65 1a  20 73 68 6f 72 74 20 66  |lly use. short f|
00000490  69 6c 65 6e 61 6d 65 73  2c 20 49 20 74 68 6f 75  |ilenames, I thou|
000004a0  67 68 74 20 49 20 63 6f  75 6c 64 20 6d 6f 64 69  |ght I could modi|
000004b0  66 79 20 74 68 65 20 70  72 6f 67 72 61 6d 0d 73  |fy the program.s|
000004c0  6f 1a 20 74 68 61 74 20  69 74 20 77 6f 75 6c 64  |o. that it would|
000004d0  20 61 63 63 65 70 74 20  61 20 31 30 20 63 68 61  | accept a 10 cha|
000004e0  72 61 63 74 65 72 20 66  69 6c 65 6e 61 6d 65 20  |racter filename |
000004f0  74 6f 20 61 76 6f 69 64  20 74 68 69 73 20 70 72  |to avoid this pr|
00000500  6f 62 6c 65 6d 2e 20 20  49 0d 68 61 76 65 20 6e  |oblem.  I.have n|
00000510  6f 77 20 64 6f 6e 65 20  74 68 69 73 20 77 69 74  |ow done this wit|
00000520  68 20 73 65 76 65 72 61  6c 20 73 6d 61 6c 6c 20  |h several small |
00000530  63 68 61 6e 67 65 73 20  74 6f 20 74 68 65 20 70  |changes to the p|
00000540  72 6f 67 72 61 6d 20 61  6e 64 20 74 68 69 73 20  |rogram and this |
00000550  6d 61 64 65 0d 74 68 65  20 74 6f 74 61 6c 73 20  |made.the totals |
00000560  66 6f 72 20 74 68 65 20  63 68 65 63 6b 69 6e 67  |for the checking|
00000570  20 6e 65 65 64 65 64 20  74 6f 20 62 65 20 61 6c  | needed to be al|
00000580  74 65 72 65 64 20 74 6f  6f 2e 0d 0d 41 73 20 74  |tered too...As t|
00000590  68 65 20 64 61 74 61 20  66 6f 72 1a 20 65 61 63  |he data for. eac|
000005a0  68 1a 20 70 72 6f 67 72  61 6d 1a 20 6e 65 65 64  |h. program. need|
000005b0  65 64 20 74 6f 20 62 65  20 69 6e 63 72 65 61 73  |ed to be increas|
000005c0  65 64 20 62 79 20 33 20  62 79 74 65 73 20 67 69  |ed by 3 bytes gi|
000005d0  76 69 6e 67 20 61 0d 74  6f 74 61 6c 20 6f 66 20  |ving a.total of |
000005e0  31 39 20 62 79 74 65 73  20 66 6f 72 20 65 61 63  |19 bytes for eac|
000005f0  68 20 69 6e 64 65 78 20  65 6e 74 72 79 2c 20 69  |h index entry, i|
00000600  74 20 69 73 20 6e 6f 74  20 70 6f 73 73 69 62 6c  |t is not possibl|
00000610  65 20 74 6f 20 61 6c 6c  6f 77 20 66 6f 72 20 31  |e to allow for 1|
00000620  36 0d 70 72 6f 67 72 61  6d 73 20 61 73 20 74 68  |6.programs as th|
00000630  65 20 6c 65 6e 67 74 68  20 6f 66 1a 20 74 68 65  |e length of. the|
00000640  1a 20 69 6e 64 65 78 1a  20 69 73 1a 20 6f 6e 6c  |. index. is. onl|
00000650  79 20 32 35 36 20 62 79  74 65 73 20 61 6e 64 20  |y 256 bytes and |
00000660  74 68 65 72 65 20 69 73  20 6e 6f 77 0d 6f 6e 6c  |there is now.onl|
00000670  79 20 72 6f 6f 6d 20 66  6f 72 20 31 33 2e 0d 0d  |y room for 13...|
00000680  54 6f 1a 20 75 73 65 1a  20 74 68 65 20 70 72 6f  |To. use. the pro|
00000690  67 72 61 6d 2c 20 6c 6f  61 64 20 69 74 20 69 6e  |gram, load it in|
000006a0  74 6f 20 53 57 20 52 41  4d 20 61 6e 64 20 70 72  |to SW RAM and pr|
000006b0  65 73 73 20 43 74 72 6c  2f 42 72 6b 20 74 6f 20  |ess Ctrl/Brk to |
000006c0  73 65 74 20 69 74 20 75  70 2e 20 0d 59 6f 75 20  |set it up. .You |
000006d0  6d 75 73 74 20 74 68 65  6e 1a 20 65 6e 74 65 72  |must then. enter|
000006e0  1a 20 2a 43 4c 45 41 52  1a 20 3c 52 45 54 55 52  |. *CLEAR. <RETUR|
000006f0  4e 3e 1a 20 74 6f 20 73  65 74 20 75 70 20 74 68  |N>. to set up th|
00000700  65 20 6d 65 6d 6f 72 79  2e 20 20 49 66 20 79 6f  |e memory.  If yo|
00000710  75 20 74 68 65 6e 0d 65  6e 74 65 72 20 2a 44 41  |u then.enter *DA|
00000720  54 41 2c 20 79 6f 75 20  77 69 6c 6c 20 67 65 74  |TA, you will get|
00000730  20 74 68 65 20 72 65 70  6f 72 74 1a 20 2d 20 26  | the report. - &|
00000740  33 37 30 30 20 62 79 74  65 73 20 66 72 65 65 2e  |3700 bytes free.|
00000750  20 20 41 66 74 65 72 20  2a 43 41 43 48 45 69 6e  |  After *CACHEin|
00000760  67 0d 74 68 65 20 66 69  6c 65 73 20 79 6f 75 20  |g.the files you |
00000770  6d 75 73 74 20 74 68 65  6e 20 72 65 2d 73 61 76  |must then re-sav|
00000780  65 20 74 68 65 20 70 72  6f 67 72 61 6d 2e 0d 0d  |e the program...|
00000790  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
000007d0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 0d 0d              |**********..|
000007dc
P/+autor1.m0
P/+autor1.m1
P/+autor1.m2
P/+autor1.m4
P/+autor1.m5