Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_50.ADF » V/+RAMFS1

V/+RAMFS1

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_50.ADF
Filename: V/+RAMFS1
Read OK:
File size: 101E bytes
Load address: 2B204556
Exec address: 464D4152
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
                            MANUAL FOR RAMFS
                  A 6502 ROM image by Robert Sprowson

THIS file describes the ROM image RAMFS which drives the RAM board 
connected via a 24 bit latched address bus to the 1MHz port.
   The image requires at least one 16k bank of Sideways RAM, or to be 
put onto a ROM, to work.

Instructions:
AT the prompt, type:
On A Master:             *SRLOAD U.RAMFS 8000 <socket#>
                         *INSERT <socket#>
                         where socket# may be 7, 6, 5 or 4
On A Machine With SWRam: *LOAD U.RAMFS 8000

Then press CTRL-BREAK to initialise.
   The image will then be installed into the chosen socket where it will
wait until selected as the current filing system. To do this, you can
either type *RAM <RETURN>, press <R>-<BREAK>, issue a sideways ROM ser-
vice call with FS id 23 or, only on the Master series, by the inclusion
of "-RAM-" in the filename.
   One page (256 bytes) of memory is claimed as private workspace above
OSHWM in the BBC or in the hidden RAM on a Master. This contains 
pointers, etc, that RAMFS uses. It must not be tampered with.
   Note that a hard or power on reset has the effect of 'formatting' the
disk and all information will be lost.
   Looking at performance, a BASIC program using BGETs/BPUTs/OSGbPb 
noted the following performance increases over DFS 1.20:
      Multiple 411 byte OSGbPb reads ................. x4.05 faster
      Multiple 10 byte BGet sequences ................ x1.32 faster
      Random setting of PTR then OSGbPb .............. x1.72 faster

Plus of course, there is no overhead for waiting to spin the disk up to
speed.

Properties:
FILENAMES can be up to ten letters long with a 1 letter directory name.
There can be up to 127 files in the catalogue.
   The media title can be up to 16 letters long.
   The drive number must always be zero where drive numbers are 
requested.
   File attributes are ignored. Attributes are read/writeable via the 
OSFile call though there is no *ACCESS command. By default access is set
to local RW access.
   The filing system id is 23 for RAMFS.
   The 'cycle number' does not increment with each write to the RAM 
disk. Instead it is a 'number of files currently open' status byte, tak-
ing the value 0-3. Up to three files may be open at once for any mixture
of input, output or random access. The SPOOL/EXEC files are not held 
open over a filing system change.

Supported OS Calls:
OSArgs
   Y=0 A=0 (Read fs id)
   Y=0 A=1 (Read address of *RUN parameters)
   Y=0 A=255 (Update all files to media)
   Y=handle A=0 (Read sequential pointer)
   Y=handle A=1 (Write sequential pointer)
   Y=handle A=2 (Read file length)
   Y=handle A=255 (Update this file to media)
OSBGet
   Y=handle, byte returned in A is valid only if C=0
OSBPut
   Y=handle, A=byte to write
OSFile
   A=0 (Save a section of memory)
       If this call fails due to lack of disk space and the filename
       given already existed, this results in the DELETION of that file!
   A=1 (Write cat info)
   A=2 (Write load address for file)
   A=3 (Write exec address for file)
   A=4 (Write attributes for file)
   A=5 (Read cat info)
   A=6 (Delete named file)
   A=255 (Load named file,using stored/given address)
OSGbPb 
   A=1,2 (Put bytes to media)
   A=3,4 (Get bytes from media)
   A=5 (Read media title and boot option)
   A=6 (Read device name and current dir)
   A=7 (Read device name and current lib)
   A=8 (Read names from current dir)
OSFind
   A=0 (Close file, or files)
   A=&40 (openin an existing file)
   A=&80 (openout a file,deleting the old if it already exists)
   A=&C0 (openup an existing file)
OSFSControl
   A=0  (Set option)
        X=0,Y=0 (Reset default OPTions)
        X=1,Y=0/1 (Turn off/on extended messages)
        X=4,Y=0/1/2/3 (Set boot option)
   A=1  (test for EOF)
   A=2/3/4 (Run the given file)
   A=5  (Produce catalogue)
   A=6  (Shut down filing system)
   A=7  (Return handle range)
   A=8  (Command about to be executed)
   A=9  (Do a *EX)
   A=10 (Do a *INFO)

The file V.+RAMFS2 contains the additional OS commands and exit messages
for the RAMFS ROM. 
00000000  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 4d 41 4e 55  |            MANU|
00000020  41 4c 20 46 4f 52 20 52  41 4d 46 53 0d 20 20 20  |AL FOR RAMFS.   |
00000030  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 41  |               A|
00000040  20 36 35 30 32 20 52 4f  4d 20 69 6d 61 67 65 20  | 6502 ROM image |
00000050  62 79 20 52 6f 62 65 72  74 20 53 70 72 6f 77 73  |by Robert Sprows|
00000060  6f 6e 0d 0d 54 48 49 53  20 66 69 6c 65 20 64 65  |on..THIS file de|
00000070  73 63 72 69 62 65 73 20  74 68 65 20 52 4f 4d 20  |scribes the ROM |
00000080  69 6d 61 67 65 20 52 41  4d 46 53 20 77 68 69 63  |image RAMFS whic|
00000090  68 20 64 72 69 76 65 73  20 74 68 65 20 52 41 4d  |h drives the RAM|
000000a0  20 62 6f 61 72 64 20 0d  63 6f 6e 6e 65 63 74 65  | board .connecte|
000000b0  64 20 76 69 61 20 61 20  32 34 20 62 69 74 20 6c  |d via a 24 bit l|
000000c0  61 74 63 68 65 64 20 61  64 64 72 65 73 73 20 62  |atched address b|
000000d0  75 73 20 74 6f 20 74 68  65 20 31 4d 48 7a 20 70  |us to the 1MHz p|
000000e0  6f 72 74 2e 0d 20 20 20  54 68 65 20 69 6d 61 67  |ort..   The imag|
000000f0  65 20 72 65 71 75 69 72  65 73 20 61 74 20 6c 65  |e requires at le|
00000100  61 73 74 20 6f 6e 65 20  31 36 6b 20 62 61 6e 6b  |ast one 16k bank|
00000110  20 6f 66 20 53 69 64 65  77 61 79 73 20 52 41 4d  | of Sideways RAM|
00000120  2c 20 6f 72 20 74 6f 20  62 65 20 0d 70 75 74 20  |, or to be .put |
00000130  6f 6e 74 6f 20 61 20 52  4f 4d 2c 20 74 6f 20 77  |onto a ROM, to w|
00000140  6f 72 6b 2e 0d 0d 49 6e  73 74 72 75 63 74 69 6f  |ork...Instructio|
00000150  6e 73 3a 0d 41 54 20 74  68 65 20 70 72 6f 6d 70  |ns:.AT the promp|
00000160  74 2c 20 74 79 70 65 3a  0d 4f 6e 20 41 20 4d 61  |t, type:.On A Ma|
00000170  73 74 65 72 3a 20 20 20  20 20 20 20 20 20 20 20  |ster:           |
00000180  20 20 2a 53 52 4c 4f 41  44 20 55 2e 52 41 4d 46  |  *SRLOAD U.RAMF|
00000190  53 20 38 30 30 30 20 3c  73 6f 63 6b 65 74 23 3e  |S 8000 <socket#>|
000001a0  0d 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
000001b0  20 20 20 20 20 20 20 20  20 20 2a 49 4e 53 45 52  |          *INSER|
000001c0  54 20 3c 73 6f 63 6b 65  74 23 3e 0d 20 20 20 20  |T <socket#>.    |
000001d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000001e0  20 20 20 20 20 77 68 65  72 65 20 73 6f 63 6b 65  |     where socke|
000001f0  74 23 20 6d 61 79 20 62  65 20 37 2c 20 36 2c 20  |t# may be 7, 6, |
00000200  35 20 6f 72 20 34 0d 4f  6e 20 41 20 4d 61 63 68  |5 or 4.On A Mach|
00000210  69 6e 65 20 57 69 74 68  20 53 57 52 61 6d 3a 20  |ine With SWRam: |
00000220  2a 4c 4f 41 44 20 55 2e  52 41 4d 46 53 20 38 30  |*LOAD U.RAMFS 80|
00000230  30 30 0d 0d 54 68 65 6e  20 70 72 65 73 73 20 43  |00..Then press C|
00000240  54 52 4c 2d 42 52 45 41  4b 20 74 6f 20 69 6e 69  |TRL-BREAK to ini|
00000250  74 69 61 6c 69 73 65 2e  0d 20 20 20 54 68 65 20  |tialise..   The |
00000260  69 6d 61 67 65 20 77 69  6c 6c 20 74 68 65 6e 20  |image will then |
00000270  62 65 20 69 6e 73 74 61  6c 6c 65 64 20 69 6e 74  |be installed int|
00000280  6f 20 74 68 65 20 63 68  6f 73 65 6e 20 73 6f 63  |o the chosen soc|
00000290  6b 65 74 20 77 68 65 72  65 20 69 74 20 77 69 6c  |ket where it wil|
000002a0  6c 0d 77 61 69 74 20 75  6e 74 69 6c 20 73 65 6c  |l.wait until sel|
000002b0  65 63 74 65 64 20 61 73  20 74 68 65 20 63 75 72  |ected as the cur|
000002c0  72 65 6e 74 20 66 69 6c  69 6e 67 20 73 79 73 74  |rent filing syst|
000002d0  65 6d 2e 20 54 6f 20 64  6f 20 74 68 69 73 2c 20  |em. To do this, |
000002e0  79 6f 75 20 63 61 6e 0d  65 69 74 68 65 72 20 74  |you can.either t|
000002f0  79 70 65 20 2a 52 41 4d  20 3c 52 45 54 55 52 4e  |ype *RAM <RETURN|
00000300  3e 2c 20 70 72 65 73 73  20 3c 52 3e 2d 3c 42 52  |>, press <R>-<BR|
00000310  45 41 4b 3e 2c 20 69 73  73 75 65 20 61 20 73 69  |EAK>, issue a si|
00000320  64 65 77 61 79 73 20 52  4f 4d 20 73 65 72 2d 0d  |deways ROM ser-.|
00000330  76 69 63 65 20 63 61 6c  6c 20 77 69 74 68 20 46  |vice call with F|
00000340  53 20 69 64 20 32 33 20  6f 72 2c 20 6f 6e 6c 79  |S id 23 or, only|
00000350  20 6f 6e 20 74 68 65 20  4d 61 73 74 65 72 20 73  | on the Master s|
00000360  65 72 69 65 73 2c 20 62  79 20 74 68 65 20 69 6e  |eries, by the in|
00000370  63 6c 75 73 69 6f 6e 0d  6f 66 20 22 2d 52 41 4d  |clusion.of "-RAM|
00000380  2d 22 20 69 6e 20 74 68  65 20 66 69 6c 65 6e 61  |-" in the filena|
00000390  6d 65 2e 0d 20 20 20 4f  6e 65 20 70 61 67 65 20  |me..   One page |
000003a0  28 32 35 36 20 62 79 74  65 73 29 20 6f 66 20 6d  |(256 bytes) of m|
000003b0  65 6d 6f 72 79 20 69 73  20 63 6c 61 69 6d 65 64  |emory is claimed|
000003c0  20 61 73 20 70 72 69 76  61 74 65 20 77 6f 72 6b  | as private work|
000003d0  73 70 61 63 65 20 61 62  6f 76 65 0d 4f 53 48 57  |space above.OSHW|
000003e0  4d 20 69 6e 20 74 68 65  20 42 42 43 20 6f 72 20  |M in the BBC or |
000003f0  69 6e 20 74 68 65 20 68  69 64 64 65 6e 20 52 41  |in the hidden RA|
00000400  4d 20 6f 6e 20 61 20 4d  61 73 74 65 72 2e 20 54  |M on a Master. T|
00000410  68 69 73 20 63 6f 6e 74  61 69 6e 73 20 0d 70 6f  |his contains .po|
00000420  69 6e 74 65 72 73 2c 20  65 74 63 2c 20 74 68 61  |inters, etc, tha|
00000430  74 20 52 41 4d 46 53 20  75 73 65 73 2e 20 49 74  |t RAMFS uses. It|
00000440  20 6d 75 73 74 20 6e 6f  74 20 62 65 20 74 61 6d  | must not be tam|
00000450  70 65 72 65 64 20 77 69  74 68 2e 0d 20 20 20 4e  |pered with..   N|
00000460  6f 74 65 20 74 68 61 74  20 61 20 68 61 72 64 20  |ote that a hard |
00000470  6f 72 20 70 6f 77 65 72  20 6f 6e 20 72 65 73 65  |or power on rese|
00000480  74 20 68 61 73 20 74 68  65 20 65 66 66 65 63 74  |t has the effect|
00000490  20 6f 66 20 27 66 6f 72  6d 61 74 74 69 6e 67 27  | of 'formatting'|
000004a0  20 74 68 65 0d 64 69 73  6b 20 61 6e 64 20 61 6c  | the.disk and al|
000004b0  6c 20 69 6e 66 6f 72 6d  61 74 69 6f 6e 20 77 69  |l information wi|
000004c0  6c 6c 20 62 65 20 6c 6f  73 74 2e 0d 20 20 20 4c  |ll be lost..   L|
000004d0  6f 6f 6b 69 6e 67 20 61  74 20 70 65 72 66 6f 72  |ooking at perfor|
000004e0  6d 61 6e 63 65 2c 20 61  20 42 41 53 49 43 20 70  |mance, a BASIC p|
000004f0  72 6f 67 72 61 6d 20 75  73 69 6e 67 20 42 47 45  |rogram using BGE|
00000500  54 73 2f 42 50 55 54 73  2f 4f 53 47 62 50 62 20  |Ts/BPUTs/OSGbPb |
00000510  0d 6e 6f 74 65 64 20 74  68 65 20 66 6f 6c 6c 6f  |.noted the follo|
00000520  77 69 6e 67 20 70 65 72  66 6f 72 6d 61 6e 63 65  |wing performance|
00000530  20 69 6e 63 72 65 61 73  65 73 20 6f 76 65 72 20  | increases over |
00000540  44 46 53 20 31 2e 32 30  3a 0d 20 20 20 20 20 20  |DFS 1.20:.      |
00000550  4d 75 6c 74 69 70 6c 65  20 34 31 31 20 62 79 74  |Multiple 411 byt|
00000560  65 20 4f 53 47 62 50 62  20 72 65 61 64 73 20 2e  |e OSGbPb reads .|
00000570  2e 2e 2e 2e 2e 2e 2e 2e  2e 2e 2e 2e 2e 2e 2e 2e  |................|
00000580  20 78 34 2e 30 35 20 66  61 73 74 65 72 0d 20 20  | x4.05 faster.  |
00000590  20 20 20 20 4d 75 6c 74  69 70 6c 65 20 31 30 20  |    Multiple 10 |
000005a0  62 79 74 65 20 42 47 65  74 20 73 65 71 75 65 6e  |byte BGet sequen|
000005b0  63 65 73 20 2e 2e 2e 2e  2e 2e 2e 2e 2e 2e 2e 2e  |ces ............|
000005c0  2e 2e 2e 2e 20 78 31 2e  33 32 20 66 61 73 74 65  |.... x1.32 faste|
000005d0  72 0d 20 20 20 20 20 20  52 61 6e 64 6f 6d 20 73  |r.      Random s|
000005e0  65 74 74 69 6e 67 20 6f  66 20 50 54 52 20 74 68  |etting of PTR th|
000005f0  65 6e 20 4f 53 47 62 50  62 20 2e 2e 2e 2e 2e 2e  |en OSGbPb ......|
00000600  2e 2e 2e 2e 2e 2e 2e 2e  20 78 31 2e 37 32 20 66  |........ x1.72 f|
00000610  61 73 74 65 72 0d 0d 50  6c 75 73 20 6f 66 20 63  |aster..Plus of c|
00000620  6f 75 72 73 65 2c 20 74  68 65 72 65 20 69 73 20  |ourse, there is |
00000630  6e 6f 20 6f 76 65 72 68  65 61 64 20 66 6f 72 20  |no overhead for |
00000640  77 61 69 74 69 6e 67 20  74 6f 20 73 70 69 6e 20  |waiting to spin |
00000650  74 68 65 20 64 69 73 6b  20 75 70 20 74 6f 0d 73  |the disk up to.s|
00000660  70 65 65 64 2e 0d 0d 50  72 6f 70 65 72 74 69 65  |peed...Propertie|
00000670  73 3a 0d 46 49 4c 45 4e  41 4d 45 53 20 63 61 6e  |s:.FILENAMES can|
00000680  20 62 65 20 75 70 20 74  6f 20 74 65 6e 20 6c 65  | be up to ten le|
00000690  74 74 65 72 73 20 6c 6f  6e 67 20 77 69 74 68 20  |tters long with |
000006a0  61 20 31 20 6c 65 74 74  65 72 20 64 69 72 65 63  |a 1 letter direc|
000006b0  74 6f 72 79 20 6e 61 6d  65 2e 0d 54 68 65 72 65  |tory name..There|
000006c0  20 63 61 6e 20 62 65 20  75 70 20 74 6f 20 31 32  | can be up to 12|
000006d0  37 20 66 69 6c 65 73 20  69 6e 20 74 68 65 20 63  |7 files in the c|
000006e0  61 74 61 6c 6f 67 75 65  2e 0d 20 20 20 54 68 65  |atalogue..   The|
000006f0  20 6d 65 64 69 61 20 74  69 74 6c 65 20 63 61 6e  | media title can|
00000700  20 62 65 20 75 70 20 74  6f 20 31 36 20 6c 65 74  | be up to 16 let|
00000710  74 65 72 73 20 6c 6f 6e  67 2e 0d 20 20 20 54 68  |ters long..   Th|
00000720  65 20 64 72 69 76 65 20  6e 75 6d 62 65 72 20 6d  |e drive number m|
00000730  75 73 74 20 61 6c 77 61  79 73 20 62 65 20 7a 65  |ust always be ze|
00000740  72 6f 20 77 68 65 72 65  20 64 72 69 76 65 20 6e  |ro where drive n|
00000750  75 6d 62 65 72 73 20 61  72 65 20 0d 72 65 71 75  |umbers are .requ|
00000760  65 73 74 65 64 2e 0d 20  20 20 46 69 6c 65 20 61  |ested..   File a|
00000770  74 74 72 69 62 75 74 65  73 20 61 72 65 20 69 67  |ttributes are ig|
00000780  6e 6f 72 65 64 2e 20 41  74 74 72 69 62 75 74 65  |nored. Attribute|
00000790  73 20 61 72 65 20 72 65  61 64 2f 77 72 69 74 65  |s are read/write|
000007a0  61 62 6c 65 20 76 69 61  20 74 68 65 20 0d 4f 53  |able via the .OS|
000007b0  46 69 6c 65 20 63 61 6c  6c 20 74 68 6f 75 67 68  |File call though|
000007c0  20 74 68 65 72 65 20 69  73 20 6e 6f 20 2a 41 43  | there is no *AC|
000007d0  43 45 53 53 20 63 6f 6d  6d 61 6e 64 2e 20 42 79  |CESS command. By|
000007e0  20 64 65 66 61 75 6c 74  20 61 63 63 65 73 73 20  | default access |
000007f0  69 73 20 73 65 74 0d 74  6f 20 6c 6f 63 61 6c 20  |is set.to local |
00000800  52 57 20 61 63 63 65 73  73 2e 0d 20 20 20 54 68  |RW access..   Th|
00000810  65 20 66 69 6c 69 6e 67  20 73 79 73 74 65 6d 20  |e filing system |
00000820  69 64 20 69 73 20 32 33  20 66 6f 72 20 52 41 4d  |id is 23 for RAM|
00000830  46 53 2e 0d 20 20 20 54  68 65 20 27 63 79 63 6c  |FS..   The 'cycl|
00000840  65 20 6e 75 6d 62 65 72  27 20 64 6f 65 73 20 6e  |e number' does n|
00000850  6f 74 20 69 6e 63 72 65  6d 65 6e 74 20 77 69 74  |ot increment wit|
00000860  68 20 65 61 63 68 20 77  72 69 74 65 20 74 6f 20  |h each write to |
00000870  74 68 65 20 52 41 4d 20  0d 64 69 73 6b 2e 20 49  |the RAM .disk. I|
00000880  6e 73 74 65 61 64 20 69  74 20 69 73 20 61 20 27  |nstead it is a '|
00000890  6e 75 6d 62 65 72 20 6f  66 20 66 69 6c 65 73 20  |number of files |
000008a0  63 75 72 72 65 6e 74 6c  79 20 6f 70 65 6e 27 20  |currently open' |
000008b0  73 74 61 74 75 73 20 62  79 74 65 2c 20 74 61 6b  |status byte, tak|
000008c0  2d 0d 69 6e 67 20 74 68  65 20 76 61 6c 75 65 20  |-.ing the value |
000008d0  30 2d 33 2e 20 55 70 20  74 6f 20 74 68 72 65 65  |0-3. Up to three|
000008e0  20 66 69 6c 65 73 20 6d  61 79 20 62 65 20 6f 70  | files may be op|
000008f0  65 6e 20 61 74 20 6f 6e  63 65 20 66 6f 72 20 61  |en at once for a|
00000900  6e 79 20 6d 69 78 74 75  72 65 0d 6f 66 20 69 6e  |ny mixture.of in|
00000910  70 75 74 2c 20 6f 75 74  70 75 74 20 6f 72 20 72  |put, output or r|
00000920  61 6e 64 6f 6d 20 61 63  63 65 73 73 2e 20 54 68  |andom access. Th|
00000930  65 20 53 50 4f 4f 4c 2f  45 58 45 43 20 66 69 6c  |e SPOOL/EXEC fil|
00000940  65 73 20 61 72 65 20 6e  6f 74 20 68 65 6c 64 20  |es are not held |
00000950  0d 6f 70 65 6e 20 6f 76  65 72 20 61 20 66 69 6c  |.open over a fil|
00000960  69 6e 67 20 73 79 73 74  65 6d 20 63 68 61 6e 67  |ing system chang|
00000970  65 2e 0d 0d 53 75 70 70  6f 72 74 65 64 20 4f 53  |e...Supported OS|
00000980  20 43 61 6c 6c 73 3a 0d  4f 53 41 72 67 73 0d 20  | Calls:.OSArgs. |
00000990  20 20 59 3d 30 20 41 3d  30 20 28 52 65 61 64 20  |  Y=0 A=0 (Read |
000009a0  66 73 20 69 64 29 0d 20  20 20 59 3d 30 20 41 3d  |fs id).   Y=0 A=|
000009b0  31 20 28 52 65 61 64 20  61 64 64 72 65 73 73 20  |1 (Read address |
000009c0  6f 66 20 2a 52 55 4e 20  70 61 72 61 6d 65 74 65  |of *RUN paramete|
000009d0  72 73 29 0d 20 20 20 59  3d 30 20 41 3d 32 35 35  |rs).   Y=0 A=255|
000009e0  20 28 55 70 64 61 74 65  20 61 6c 6c 20 66 69 6c  | (Update all fil|
000009f0  65 73 20 74 6f 20 6d 65  64 69 61 29 0d 20 20 20  |es to media).   |
00000a00  59 3d 68 61 6e 64 6c 65  20 41 3d 30 20 28 52 65  |Y=handle A=0 (Re|
00000a10  61 64 20 73 65 71 75 65  6e 74 69 61 6c 20 70 6f  |ad sequential po|
00000a20  69 6e 74 65 72 29 0d 20  20 20 59 3d 68 61 6e 64  |inter).   Y=hand|
00000a30  6c 65 20 41 3d 31 20 28  57 72 69 74 65 20 73 65  |le A=1 (Write se|
00000a40  71 75 65 6e 74 69 61 6c  20 70 6f 69 6e 74 65 72  |quential pointer|
00000a50  29 0d 20 20 20 59 3d 68  61 6e 64 6c 65 20 41 3d  |).   Y=handle A=|
00000a60  32 20 28 52 65 61 64 20  66 69 6c 65 20 6c 65 6e  |2 (Read file len|
00000a70  67 74 68 29 0d 20 20 20  59 3d 68 61 6e 64 6c 65  |gth).   Y=handle|
00000a80  20 41 3d 32 35 35 20 28  55 70 64 61 74 65 20 74  | A=255 (Update t|
00000a90  68 69 73 20 66 69 6c 65  20 74 6f 20 6d 65 64 69  |his file to medi|
00000aa0  61 29 0d 4f 53 42 47 65  74 0d 20 20 20 59 3d 68  |a).OSBGet.   Y=h|
00000ab0  61 6e 64 6c 65 2c 20 62  79 74 65 20 72 65 74 75  |andle, byte retu|
00000ac0  72 6e 65 64 20 69 6e 20  41 20 69 73 20 76 61 6c  |rned in A is val|
00000ad0  69 64 20 6f 6e 6c 79 20  69 66 20 43 3d 30 0d 4f  |id only if C=0.O|
00000ae0  53 42 50 75 74 0d 20 20  20 59 3d 68 61 6e 64 6c  |SBPut.   Y=handl|
00000af0  65 2c 20 41 3d 62 79 74  65 20 74 6f 20 77 72 69  |e, A=byte to wri|
00000b00  74 65 0d 4f 53 46 69 6c  65 0d 20 20 20 41 3d 30  |te.OSFile.   A=0|
00000b10  20 28 53 61 76 65 20 61  20 73 65 63 74 69 6f 6e  | (Save a section|
00000b20  20 6f 66 20 6d 65 6d 6f  72 79 29 0d 20 20 20 20  | of memory).    |
00000b30  20 20 20 49 66 20 74 68  69 73 20 63 61 6c 6c 20  |   If this call |
00000b40  66 61 69 6c 73 20 64 75  65 20 74 6f 20 6c 61 63  |fails due to lac|
00000b50  6b 20 6f 66 20 64 69 73  6b 20 73 70 61 63 65 20  |k of disk space |
00000b60  61 6e 64 20 74 68 65 20  66 69 6c 65 6e 61 6d 65  |and the filename|
00000b70  0d 20 20 20 20 20 20 20  67 69 76 65 6e 20 61 6c  |.       given al|
00000b80  72 65 61 64 79 20 65 78  69 73 74 65 64 2c 20 74  |ready existed, t|
00000b90  68 69 73 20 72 65 73 75  6c 74 73 20 69 6e 20 74  |his results in t|
00000ba0  68 65 20 44 45 4c 45 54  49 4f 4e 20 6f 66 20 74  |he DELETION of t|
00000bb0  68 61 74 20 66 69 6c 65  21 0d 20 20 20 41 3d 31  |hat file!.   A=1|
00000bc0  20 28 57 72 69 74 65 20  63 61 74 20 69 6e 66 6f  | (Write cat info|
00000bd0  29 0d 20 20 20 41 3d 32  20 28 57 72 69 74 65 20  |).   A=2 (Write |
00000be0  6c 6f 61 64 20 61 64 64  72 65 73 73 20 66 6f 72  |load address for|
00000bf0  20 66 69 6c 65 29 0d 20  20 20 41 3d 33 20 28 57  | file).   A=3 (W|
00000c00  72 69 74 65 20 65 78 65  63 20 61 64 64 72 65 73  |rite exec addres|
00000c10  73 20 66 6f 72 20 66 69  6c 65 29 0d 20 20 20 41  |s for file).   A|
00000c20  3d 34 20 28 57 72 69 74  65 20 61 74 74 72 69 62  |=4 (Write attrib|
00000c30  75 74 65 73 20 66 6f 72  20 66 69 6c 65 29 0d 20  |utes for file). |
00000c40  20 20 41 3d 35 20 28 52  65 61 64 20 63 61 74 20  |  A=5 (Read cat |
00000c50  69 6e 66 6f 29 0d 20 20  20 41 3d 36 20 28 44 65  |info).   A=6 (De|
00000c60  6c 65 74 65 20 6e 61 6d  65 64 20 66 69 6c 65 29  |lete named file)|
00000c70  0d 20 20 20 41 3d 32 35  35 20 28 4c 6f 61 64 20  |.   A=255 (Load |
00000c80  6e 61 6d 65 64 20 66 69  6c 65 2c 75 73 69 6e 67  |named file,using|
00000c90  20 73 74 6f 72 65 64 2f  67 69 76 65 6e 20 61 64  | stored/given ad|
00000ca0  64 72 65 73 73 29 0d 4f  53 47 62 50 62 20 0d 20  |dress).OSGbPb . |
00000cb0  20 20 41 3d 31 2c 32 20  28 50 75 74 20 62 79 74  |  A=1,2 (Put byt|
00000cc0  65 73 20 74 6f 20 6d 65  64 69 61 29 0d 20 20 20  |es to media).   |
00000cd0  41 3d 33 2c 34 20 28 47  65 74 20 62 79 74 65 73  |A=3,4 (Get bytes|
00000ce0  20 66 72 6f 6d 20 6d 65  64 69 61 29 0d 20 20 20  | from media).   |
00000cf0  41 3d 35 20 28 52 65 61  64 20 6d 65 64 69 61 20  |A=5 (Read media |
00000d00  74 69 74 6c 65 20 61 6e  64 20 62 6f 6f 74 20 6f  |title and boot o|
00000d10  70 74 69 6f 6e 29 0d 20  20 20 41 3d 36 20 28 52  |ption).   A=6 (R|
00000d20  65 61 64 20 64 65 76 69  63 65 20 6e 61 6d 65 20  |ead device name |
00000d30  61 6e 64 20 63 75 72 72  65 6e 74 20 64 69 72 29  |and current dir)|
00000d40  0d 20 20 20 41 3d 37 20  28 52 65 61 64 20 64 65  |.   A=7 (Read de|
00000d50  76 69 63 65 20 6e 61 6d  65 20 61 6e 64 20 63 75  |vice name and cu|
00000d60  72 72 65 6e 74 20 6c 69  62 29 0d 20 20 20 41 3d  |rrent lib).   A=|
00000d70  38 20 28 52 65 61 64 20  6e 61 6d 65 73 20 66 72  |8 (Read names fr|
00000d80  6f 6d 20 63 75 72 72 65  6e 74 20 64 69 72 29 0d  |om current dir).|
00000d90  4f 53 46 69 6e 64 0d 20  20 20 41 3d 30 20 28 43  |OSFind.   A=0 (C|
00000da0  6c 6f 73 65 20 66 69 6c  65 2c 20 6f 72 20 66 69  |lose file, or fi|
00000db0  6c 65 73 29 0d 20 20 20  41 3d 26 34 30 20 28 6f  |les).   A=&40 (o|
00000dc0  70 65 6e 69 6e 20 61 6e  20 65 78 69 73 74 69 6e  |penin an existin|
00000dd0  67 20 66 69 6c 65 29 0d  20 20 20 41 3d 26 38 30  |g file).   A=&80|
00000de0  20 28 6f 70 65 6e 6f 75  74 20 61 20 66 69 6c 65  | (openout a file|
00000df0  2c 64 65 6c 65 74 69 6e  67 20 74 68 65 20 6f 6c  |,deleting the ol|
00000e00  64 20 69 66 20 69 74 20  61 6c 72 65 61 64 79 20  |d if it already |
00000e10  65 78 69 73 74 73 29 0d  20 20 20 41 3d 26 43 30  |exists).   A=&C0|
00000e20  20 28 6f 70 65 6e 75 70  20 61 6e 20 65 78 69 73  | (openup an exis|
00000e30  74 69 6e 67 20 66 69 6c  65 29 0d 4f 53 46 53 43  |ting file).OSFSC|
00000e40  6f 6e 74 72 6f 6c 0d 20  20 20 41 3d 30 20 20 28  |ontrol.   A=0  (|
00000e50  53 65 74 20 6f 70 74 69  6f 6e 29 0d 20 20 20 20  |Set option).    |
00000e60  20 20 20 20 58 3d 30 2c  59 3d 30 20 28 52 65 73  |    X=0,Y=0 (Res|
00000e70  65 74 20 64 65 66 61 75  6c 74 20 4f 50 54 69 6f  |et default OPTio|
00000e80  6e 73 29 0d 20 20 20 20  20 20 20 20 58 3d 31 2c  |ns).        X=1,|
00000e90  59 3d 30 2f 31 20 28 54  75 72 6e 20 6f 66 66 2f  |Y=0/1 (Turn off/|
00000ea0  6f 6e 20 65 78 74 65 6e  64 65 64 20 6d 65 73 73  |on extended mess|
00000eb0  61 67 65 73 29 0d 20 20  20 20 20 20 20 20 58 3d  |ages).        X=|
00000ec0  34 2c 59 3d 30 2f 31 2f  32 2f 33 20 28 53 65 74  |4,Y=0/1/2/3 (Set|
00000ed0  20 62 6f 6f 74 20 6f 70  74 69 6f 6e 29 0d 20 20  | boot option).  |
00000ee0  20 41 3d 31 20 20 28 74  65 73 74 20 66 6f 72 20  | A=1  (test for |
00000ef0  45 4f 46 29 0d 20 20 20  41 3d 32 2f 33 2f 34 20  |EOF).   A=2/3/4 |
00000f00  28 52 75 6e 20 74 68 65  20 67 69 76 65 6e 20 66  |(Run the given f|
00000f10  69 6c 65 29 0d 20 20 20  41 3d 35 20 20 28 50 72  |ile).   A=5  (Pr|
00000f20  6f 64 75 63 65 20 63 61  74 61 6c 6f 67 75 65 29  |oduce catalogue)|
00000f30  0d 20 20 20 41 3d 36 20  20 28 53 68 75 74 20 64  |.   A=6  (Shut d|
00000f40  6f 77 6e 20 66 69 6c 69  6e 67 20 73 79 73 74 65  |own filing syste|
00000f50  6d 29 0d 20 20 20 41 3d  37 20 20 28 52 65 74 75  |m).   A=7  (Retu|
00000f60  72 6e 20 68 61 6e 64 6c  65 20 72 61 6e 67 65 29  |rn handle range)|
00000f70  0d 20 20 20 41 3d 38 20  20 28 43 6f 6d 6d 61 6e  |.   A=8  (Comman|
00000f80  64 20 61 62 6f 75 74 20  74 6f 20 62 65 20 65 78  |d about to be ex|
00000f90  65 63 75 74 65 64 29 0d  20 20 20 41 3d 39 20 20  |ecuted).   A=9  |
00000fa0  28 44 6f 20 61 20 2a 45  58 29 0d 20 20 20 41 3d  |(Do a *EX).   A=|
00000fb0  31 30 20 28 44 6f 20 61  20 2a 49 4e 46 4f 29 0d  |10 (Do a *INFO).|
00000fc0  0d 54 68 65 20 66 69 6c  65 20 56 2e 2b 52 41 4d  |.The file V.+RAM|
00000fd0  46 53 32 20 63 6f 6e 74  61 69 6e 73 20 74 68 65  |FS2 contains the|
00000fe0  20 61 64 64 69 74 69 6f  6e 61 6c 20 4f 53 20 63  | additional OS c|
00000ff0  6f 6d 6d 61 6e 64 73 20  61 6e 64 20 65 78 69 74  |ommands and exit|
00001000  20 6d 65 73 73 61 67 65  73 0d 66 6f 72 20 74 68  | messages.for th|
00001010  65 20 52 41 4d 46 53 20  52 4f 4d 2e 20 0d        |e RAMFS ROM. .|
0000101e
V/+RAMFS1.m0
V/+RAMFS1.m1
V/+RAMFS1.m2
V/+RAMFS1.m4
V/+RAMFS1.m5