Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_22.ADF » P/Safe1

P/Safe1

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_22.ADF
Filename: P/Safe1
Read OK:
File size: 09F3 bytes
Load address: 53206576
Exec address: 61454641
File contents
	    MY LAST BIT ON SAVE PROTECTION ... PROBABLY
	    ~~ ~~~~ ~~~ ~~ ~~~~ ~~~~~~~~~~     ~~~~~~~~

Thanks to Matthew Ford's article in the last issue of EUG, all the bugs in
my two SAFE Protection utilities have been found and rectified.

Since he comprehensively detailed the problems, it was possible to upgrade
both of the programs, although I did feel that most people would not be
able to do it themselves. Therefore I felt it right to submit the two
upgraded programs, which can now be used problem free, without much
difficulty. For ease of use, as soon as the assembly language is
in memory, the machine code is saved to disk, under the filename 'SAFE'
for both of the versions. The filenames of the source code are 'DFSsrc'
and 'ADFSsrc' for the versions for DFS and ADFS respectively.

Something to note is that whilst the DFS code was written with this filing
system in mind, it was written more specifically to work on all formats.
It could do this because it used only 'legal' OS calls, unlike the ADFS
version. If you use either DFS, a non-Acorn filing system, or ADFS with
PAGE at &E00, then the DFS version is for you. You'll know if you have
PAGE this memory address; as standard it comes at &1D00 but some people
tell ADFS to use Sideways RAM for memory space, and therefore free the
extra memory, lowering PAGE.

As the title implies, I hope this to be the last thing I do on SAVE
protection. As far as I know, the updated programs are 100% vermin free;
if they aren't, I would appreciate you telling me.

HE'S DIGRESSING AGAIN!
~~~~ ~~~~~~~~~~ ~~~~~~
Do you remember that old gem Game Show? Well, if you hadn't noticed, it's
not here this month. Wanna know why? Tough. BUT - last time there was a
bug in the game Astermene. It's not serious, but it bothered me when I
discovered it. When you go to the Escape menu, and choose to sell your
company, the text "REALLY SELL?" comes up, all over the top of the
choices. All that needs to be done is a CLS command inserted in the
relevant line. So, load in the game off of EUG21, the file
'$.G.ASTERMENE', and type in the following line:

     6400 DEF PROCdouble:CLS

Please note that the space between the line number and the commands is for
clarity only and should be omitted when the line is entered. The game
should now be saved onto a different disk.

For now, that's all from me. Game Show will probably be back next time.
See you later.

Ross Little
September 1995
00000000  09 20 20 20 20 4d 59 20  4c 41 53 54 20 42 49 54  |.    MY LAST BIT|
00000010  20 4f 4e 20 53 41 56 45  20 50 52 4f 54 45 43 54  | ON SAVE PROTECT|
00000020  49 4f 4e 20 2e 2e 2e 20  50 52 4f 42 41 42 4c 59  |ION ... PROBABLY|
00000030  0d 09 20 20 20 20 7e 7e  20 7e 7e 7e 7e 20 7e 7e  |..    ~~ ~~~~ ~~|
00000040  7e 20 7e 7e 20 7e 7e 7e  7e 20 7e 7e 7e 7e 7e 7e  |~ ~~ ~~~~ ~~~~~~|
00000050  7e 7e 7e 7e 20 20 20 20  20 7e 7e 7e 7e 7e 7e 7e  |~~~~     ~~~~~~~|
00000060  7e 0d 0d 54 68 61 6e 6b  73 20 74 6f 20 4d 61 74  |~..Thanks to Mat|
00000070  74 68 65 77 20 46 6f 72  64 27 73 20 61 72 74 69  |thew Ford's arti|
00000080  63 6c 65 20 69 6e 20 74  68 65 20 6c 61 73 74 20  |cle in the last |
00000090  69 73 73 75 65 20 6f 66  20 45 55 47 2c 20 61 6c  |issue of EUG, al|
000000a0  6c 20 74 68 65 20 62 75  67 73 20 69 6e 0d 6d 79  |l the bugs in.my|
000000b0  20 74 77 6f 20 53 41 46  45 20 50 72 6f 74 65 63  | two SAFE Protec|
000000c0  74 69 6f 6e 20 75 74 69  6c 69 74 69 65 73 20 68  |tion utilities h|
000000d0  61 76 65 20 62 65 65 6e  20 66 6f 75 6e 64 20 61  |ave been found a|
000000e0  6e 64 20 72 65 63 74 69  66 69 65 64 2e 0d 0d 53  |nd rectified...S|
000000f0  69 6e 63 65 20 68 65 20  63 6f 6d 70 72 65 68 65  |ince he comprehe|
00000100  6e 73 69 76 65 6c 79 20  64 65 74 61 69 6c 65 64  |nsively detailed|
00000110  20 74 68 65 20 70 72 6f  62 6c 65 6d 73 2c 20 69  | the problems, i|
00000120  74 20 77 61 73 20 70 6f  73 73 69 62 6c 65 20 74  |t was possible t|
00000130  6f 20 75 70 67 72 61 64  65 0d 62 6f 74 68 20 6f  |o upgrade.both o|
00000140  66 20 74 68 65 20 70 72  6f 67 72 61 6d 73 2c 20  |f the programs, |
00000150  61 6c 74 68 6f 75 67 68  1a 20 49 1a 20 64 69 64  |although. I. did|
00000160  1a 20 66 65 65 6c 20 74  68 61 74 20 6d 6f 73 74  |. feel that most|
00000170  20 70 65 6f 70 6c 65 20  77 6f 75 6c 64 20 6e 6f  | people would no|
00000180  74 20 62 65 0d 61 62 6c  65 20 74 6f 20 64 6f 20  |t be.able to do |
00000190  69 74 20 74 68 65 6d 73  65 6c 76 65 73 2e 20 54  |it themselves. T|
000001a0  68 65 72 65 66 6f 72 65  20 49 20 66 65 6c 74 1a  |herefore I felt.|
000001b0  20 69 74 1a 20 72 69 67  68 74 1a 20 74 6f 1a 20  | it. right. to. |
000001c0  73 75 62 6d 69 74 1a 20  74 68 65 20 74 77 6f 0d  |submit. the two.|
000001d0  75 70 67 72 61 64 65 64  1a 20 70 72 6f 67 72 61  |upgraded. progra|
000001e0  6d 73 2c 1a 20 77 68 69  63 68 1a 20 63 61 6e 1a  |ms,. which. can.|
000001f0  20 6e 6f 77 1a 20 62 65  1a 20 75 73 65 64 1a 20  | now. be. used. |
00000200  70 72 6f 62 6c 65 6d 20  66 72 65 65 2c 20 77 69  |problem free, wi|
00000210  74 68 6f 75 74 20 6d 75  63 68 0d 64 69 66 66 69  |thout much.diffi|
00000220  63 75 6c 74 79 2e 1a 20  46 6f 72 1a 20 65 61 73  |culty.. For. eas|
00000230  65 1a 20 6f 66 1a 20 75  73 65 2c 1a 20 61 73 1a  |e. of. use,. as.|
00000240  20 73 6f 6f 6e 20 61 73  1a 20 74 68 65 1a 20 61  | soon as. the. a|
00000250  73 73 65 6d 62 6c 79 1a  20 6c 61 6e 67 75 61 67  |ssembly. languag|
00000260  65 1a 20 69 73 0d 69 6e  20 6d 65 6d 6f 72 79 2c  |e. is.in memory,|
00000270  20 74 68 65 20 6d 61 63  68 69 6e 65 20 63 6f 64  | the machine cod|
00000280  65 1a 20 69 73 1a 20 73  61 76 65 64 1a 20 74 6f  |e. is. saved. to|
00000290  20 64 69 73 6b 2c 20 75  6e 64 65 72 20 74 68 65  | disk, under the|
000002a0  20 66 69 6c 65 6e 61 6d  65 20 27 53 41 46 45 27  | filename 'SAFE'|
000002b0  0d 66 6f 72 20 62 6f 74  68 20 6f 66 20 74 68 65  |.for both of the|
000002c0  20 76 65 72 73 69 6f 6e  73 2e 1a 20 54 68 65 1a  | versions.. The.|
000002d0  20 66 69 6c 65 6e 61 6d  65 73 1a 20 6f 66 20 74  | filenames. of t|
000002e0  68 65 20 73 6f 75 72 63  65 20 63 6f 64 65 20 61  |he source code a|
000002f0  72 65 20 27 44 46 53 73  72 63 27 0d 61 6e 64 20  |re 'DFSsrc'.and |
00000300  27 41 44 46 53 73 72 63  27 20 66 6f 72 20 74 68  |'ADFSsrc' for th|
00000310  65 20 76 65 72 73 69 6f  6e 73 20 66 6f 72 20 44  |e versions for D|
00000320  46 53 20 61 6e 64 20 41  44 46 53 20 72 65 73 70  |FS and ADFS resp|
00000330  65 63 74 69 76 65 6c 79  2e 0d 0d 53 6f 6d 65 74  |ectively...Somet|
00000340  68 69 6e 67 20 74 6f 20  6e 6f 74 65 20 69 73 20  |hing to note is |
00000350  74 68 61 74 20 77 68 69  6c 73 74 20 74 68 65 20  |that whilst the |
00000360  44 46 53 20 63 6f 64 65  20 77 61 73 20 77 72 69  |DFS code was wri|
00000370  74 74 65 6e 20 77 69 74  68 20 74 68 69 73 20 66  |tten with this f|
00000380  69 6c 69 6e 67 0d 73 79  73 74 65 6d 20 69 6e 20  |iling.system in |
00000390  6d 69 6e 64 2c 20 69 74  20 77 61 73 1a 20 77 72  |mind, it was. wr|
000003a0  69 74 74 65 6e 1a 20 6d  6f 72 65 20 73 70 65 63  |itten. more spec|
000003b0  69 66 69 63 61 6c 6c 79  20 74 6f 20 77 6f 72 6b  |ifically to work|
000003c0  20 6f 6e 20 61 6c 6c 20  66 6f 72 6d 61 74 73 2e  | on all formats.|
000003d0  0d 49 74 20 63 6f 75 6c  64 20 64 6f 20 74 68 69  |.It could do thi|
000003e0  73 20 62 65 63 61 75 73  65 20 69 74 20 75 73 65  |s because it use|
000003f0  64 1a 20 6f 6e 6c 79 1a  20 27 6c 65 67 61 6c 27  |d. only. 'legal'|
00000400  1a 20 4f 53 20 63 61 6c  6c 73 2c 20 75 6e 6c 69  |. OS calls, unli|
00000410  6b 65 20 74 68 65 20 41  44 46 53 0d 76 65 72 73  |ke the ADFS.vers|
00000420  69 6f 6e 2e 20 49 66 20  79 6f 75 20 75 73 65 20  |ion. If you use |
00000430  65 69 74 68 65 72 20 44  46 53 2c 20 61 20 6e 6f  |either DFS, a no|
00000440  6e 2d 41 63 6f 72 6e 20  66 69 6c 69 6e 67 20 73  |n-Acorn filing s|
00000450  79 73 74 65 6d 2c 1a 20  6f 72 1a 20 41 44 46 53  |ystem,. or. ADFS|
00000460  1a 20 77 69 74 68 0d 50  41 47 45 1a 20 61 74 1a  |. with.PAGE. at.|
00000470  20 26 45 30 30 2c 1a 20  74 68 65 6e 1a 20 74 68  | &E00,. then. th|
00000480  65 20 44 46 53 20 76 65  72 73 69 6f 6e 20 69 73  |e DFS version is|
00000490  20 66 6f 72 20 79 6f 75  2e 20 59 6f 75 27 6c 6c  | for you. You'll|
000004a0  20 6b 6e 6f 77 20 69 66  20 79 6f 75 20 68 61 76  | know if you hav|
000004b0  65 0d 50 41 47 45 20 74  68 69 73 20 6d 65 6d 6f  |e.PAGE this memo|
000004c0  72 79 20 61 64 64 72 65  73 73 3b 20 61 73 1a 20  |ry address; as. |
000004d0  73 74 61 6e 64 61 72 64  1a 20 69 74 1a 20 63 6f  |standard. it. co|
000004e0  6d 65 73 20 61 74 20 26  31 44 30 30 20 62 75 74  |mes at &1D00 but|
000004f0  20 73 6f 6d 65 20 70 65  6f 70 6c 65 0d 74 65 6c  | some people.tel|
00000500  6c 20 41 44 46 53 20 74  6f 20 75 73 65 20 53 69  |l ADFS to use Si|
00000510  64 65 77 61 79 73 20 52  41 4d 20 66 6f 72 20 6d  |deways RAM for m|
00000520  65 6d 6f 72 79 1a 20 73  70 61 63 65 2c 1a 20 61  |emory. space,. a|
00000530  6e 64 1a 20 74 68 65 72  65 66 6f 72 65 1a 20 66  |nd. therefore. f|
00000540  72 65 65 20 74 68 65 0d  65 78 74 72 61 20 6d 65  |ree the.extra me|
00000550  6d 6f 72 79 2c 20 6c 6f  77 65 72 69 6e 67 20 50  |mory, lowering P|
00000560  41 47 45 2e 0d 0d 41 73  1a 20 74 68 65 1a 20 74  |AGE...As. the. t|
00000570  69 74 6c 65 1a 20 69 6d  70 6c 69 65 73 2c 20 49  |itle. implies, I|
00000580  20 68 6f 70 65 20 74 68  69 73 20 74 6f 20 62 65  | hope this to be|
00000590  20 74 68 65 20 6c 61 73  74 20 74 68 69 6e 67 1a  | the last thing.|
000005a0  20 49 1a 20 64 6f 1a 20  6f 6e 1a 20 53 41 56 45  | I. do. on. SAVE|
000005b0  0d 70 72 6f 74 65 63 74  69 6f 6e 2e 20 41 73 20  |.protection. As |
000005c0  66 61 72 20 61 73 1a 20  49 1a 20 6b 6e 6f 77 2c  |far as. I. know,|
000005d0  20 74 68 65 20 75 70 64  61 74 65 64 20 70 72 6f  | the updated pro|
000005e0  67 72 61 6d 73 20 61 72  65 20 31 30 30 25 20 76  |grams are 100% v|
000005f0  65 72 6d 69 6e 20 66 72  65 65 3b 0d 69 66 20 74  |ermin free;.if t|
00000600  68 65 79 20 61 72 65 6e  27 74 2c 20 49 20 77 6f  |hey aren't, I wo|
00000610  75 6c 64 20 61 70 70 72  65 63 69 61 74 65 20 79  |uld appreciate y|
00000620  6f 75 20 74 65 6c 6c 69  6e 67 20 6d 65 2e 0d 0d  |ou telling me...|
00000630  48 45 27 53 20 44 49 47  52 45 53 53 49 4e 47 20  |HE'S DIGRESSING |
00000640  41 47 41 49 4e 21 0d 7e  7e 7e 7e 20 7e 7e 7e 7e  |AGAIN!.~~~~ ~~~~|
00000650  7e 7e 7e 7e 7e 7e 20 7e  7e 7e 7e 7e 7e 0d 44 6f  |~~~~~~ ~~~~~~.Do|
00000660  20 79 6f 75 20 72 65 6d  65 6d 62 65 72 20 74 68  | you remember th|
00000670  61 74 20 6f 6c 64 20 67  65 6d 1a 20 47 61 6d 65  |at old gem. Game|
00000680  20 53 68 6f 77 3f 20 57  65 6c 6c 2c 20 69 66 20  | Show? Well, if |
00000690  79 6f 75 20 68 61 64 6e  27 74 20 6e 6f 74 69 63  |you hadn't notic|
000006a0  65 64 2c 20 69 74 27 73  0d 6e 6f 74 20 68 65 72  |ed, it's.not her|
000006b0  65 20 74 68 69 73 20 6d  6f 6e 74 68 2e 20 57 61  |e this month. Wa|
000006c0  6e 6e 61 1a 20 6b 6e 6f  77 1a 20 77 68 79 3f 1a  |nna. know. why?.|
000006d0  20 54 6f 75 67 68 2e 20  42 55 54 20 2d 20 6c 61  | Tough. BUT - la|
000006e0  73 74 20 74 69 6d 65 20  74 68 65 72 65 20 77 61  |st time there wa|
000006f0  73 20 61 0d 62 75 67 20  69 6e 20 74 68 65 20 67  |s a.bug in the g|
00000700  61 6d 65 20 41 73 74 65  72 6d 65 6e 65 2e 20 49  |ame Astermene. I|
00000710  74 27 73 20 6e 6f 74 20  73 65 72 69 6f 75 73 2c  |t's not serious,|
00000720  1a 20 62 75 74 1a 20 69  74 1a 20 62 6f 74 68 65  |. but. it. bothe|
00000730  72 65 64 1a 20 6d 65 20  77 68 65 6e 20 49 0d 64  |red. me when I.d|
00000740  69 73 63 6f 76 65 72 65  64 1a 20 69 74 2e 1a 20  |iscovered. it.. |
00000750  57 68 65 6e 20 79 6f 75  20 67 6f 20 74 6f 20 74  |When you go to t|
00000760  68 65 20 45 73 63 61 70  65 20 6d 65 6e 75 2c 20  |he Escape menu, |
00000770  61 6e 64 20 63 68 6f 6f  73 65 20 74 6f 1a 20 73  |and choose to. s|
00000780  65 6c 6c 1a 20 79 6f 75  72 0d 63 6f 6d 70 61 6e  |ell. your.compan|
00000790  79 2c 20 74 68 65 20 74  65 78 74 20 22 52 45 41  |y, the text "REA|
000007a0  4c 4c 59 20 53 45 4c 4c  3f 22 1a 20 63 6f 6d 65  |LLY SELL?". come|
000007b0  73 1a 20 75 70 2c 1a 20  61 6c 6c 1a 20 6f 76 65  |s. up,. all. ove|
000007c0  72 1a 20 74 68 65 1a 20  74 6f 70 1a 20 6f 66 1a  |r. the. top. of.|
000007d0  20 74 68 65 0d 63 68 6f  69 63 65 73 2e 1a 20 41  | the.choices.. A|
000007e0  6c 6c 1a 20 74 68 61 74  1a 20 6e 65 65 64 73 1a  |ll. that. needs.|
000007f0  20 74 6f 1a 20 62 65 1a  20 64 6f 6e 65 1a 20 69  | to. be. done. i|
00000800  73 20 61 20 43 4c 53 20  63 6f 6d 6d 61 6e 64 20  |s a CLS command |
00000810  69 6e 73 65 72 74 65 64  20 69 6e 20 74 68 65 0d  |inserted in the.|
00000820  72 65 6c 65 76 61 6e 74  1a 20 6c 69 6e 65 2e 1a  |relevant. line..|
00000830  20 53 6f 2c 1a 20 6c 6f  61 64 1a 20 69 6e 1a 1a  | So,. load. in..|
00000840  20 74 68 65 1a 1a 20 67  61 6d 65 1a 1a 20 6f 66  | the.. game.. of|
00000850  66 1a 1a 20 6f 66 1a 1a  20 45 55 47 32 31 2c 1a  |f.. of.. EUG21,.|
00000860  20 74 68 65 1a 20 66 69  6c 65 0d 27 24 2e 47 2e  | the. file.'$.G.|
00000870  41 53 54 45 52 4d 45 4e  45 27 2c 20 61 6e 64 20  |ASTERMENE', and |
00000880  74 79 70 65 20 69 6e 20  74 68 65 20 66 6f 6c 6c  |type in the foll|
00000890  6f 77 69 6e 67 20 6c 69  6e 65 3a 0d 0d 20 20 20  |owing line:..   |
000008a0  20 20 36 34 30 30 20 44  45 46 20 50 52 4f 43 64  |  6400 DEF PROCd|
000008b0  6f 75 62 6c 65 3a 43 4c  53 0d 0d 50 6c 65 61 73  |ouble:CLS..Pleas|
000008c0  65 20 6e 6f 74 65 20 74  68 61 74 20 74 68 65 20  |e note that the |
000008d0  73 70 61 63 65 20 62 65  74 77 65 65 6e 20 74 68  |space between th|
000008e0  65 20 6c 69 6e 65 20 6e  75 6d 62 65 72 20 61 6e  |e line number an|
000008f0  64 20 74 68 65 20 63 6f  6d 6d 61 6e 64 73 20 69  |d the commands i|
00000900  73 20 66 6f 72 0d 63 6c  61 72 69 74 79 20 6f 6e  |s for.clarity on|
00000910  6c 79 20 61 6e 64 20 73  68 6f 75 6c 64 20 62 65  |ly and should be|
00000920  1a 20 6f 6d 69 74 74 65  64 1a 20 77 68 65 6e 1a  |. omitted. when.|
00000930  20 74 68 65 1a 20 6c 69  6e 65 1a 20 69 73 20 65  | the. line. is e|
00000940  6e 74 65 72 65 64 2e 20  54 68 65 20 67 61 6d 65  |ntered. The game|
00000950  0d 73 68 6f 75 6c 64 20  6e 6f 77 20 62 65 20 73  |.should now be s|
00000960  61 76 65 64 20 6f 6e 74  6f 20 61 20 64 69 66 66  |aved onto a diff|
00000970  65 72 65 6e 74 20 64 69  73 6b 2e 0d 0d 46 6f 72  |erent disk...For|
00000980  20 6e 6f 77 2c 20 74 68  61 74 27 73 20 61 6c 6c  | now, that's all|
00000990  20 66 72 6f 6d 1a 20 6d  65 2e 1a 20 47 61 6d 65  | from. me.. Game|
000009a0  1a 20 53 68 6f 77 20 77  69 6c 6c 20 70 72 6f 62  |. Show will prob|
000009b0  61 62 6c 79 20 62 65 20  62 61 63 6b 20 6e 65 78  |ably be back nex|
000009c0  74 20 74 69 6d 65 2e 0d  53 65 65 20 79 6f 75 20  |t time..See you |
000009d0  6c 61 74 65 72 2e 0d 0d  52 6f 73 73 20 4c 69 74  |later...Ross Lit|
000009e0  74 6c 65 0d 53 65 70 74  65 6d 62 65 72 20 31 39  |tle.September 19|
000009f0  39 35 0d                                          |95.|
000009f3
P/Safe1.m0
P/Safe1.m1
P/Safe1.m2
P/Safe1.m4
P/Safe1.m5