• Julie Stamp's avatar
    Allow disc sizes 512MB - 2GB · b34c2929
    Julie Stamp authored
    Detail:
    s.RamFS50:
    - Add patch-through for RamFS_SectorDiscOp
    - Put stars next to NZones2 fields in disc record as this needs filling in now
    - In InitDiscRec, increase the maximum number of zones to 127
      The maximum was previously 16, so this concerns me because I don't know why that was!
      However, raising the maximum like this give smalller minimum fragment sizes at every size of RAM disc tested,
      and enables discs bigger than 512MB.
      (Defined as min frag size in bytes = (idlen + 1) * LFAU size in bytes)
    - Also in InitDiscRec, after the algorithm has completed, save only the LSB of the number of zones (r2) in NZones, and save the MSB in NZones2.
    
    s.RamFS15:
    In MiscOp Mount, don't convert address from sectors to bytes, as it is passed to us in bytes already for this operation.
    
    s.Defns: Enable BigDiscs2 work
    
    Admin:
    Tested at a variety of sizes, including doing
    ChangeDynamicArea -RamFSSize nM, then create a file
    for n = 10 to 900 step 10.
    
    RamFS_SectorDiscOp tested by running
    *DiscKnight -v RamFS 0
    which calls by name and examining sectors through Zap which calls by number.
    
    Tested by others up to 2GB - 4kB
    
    Version 2.33. Tagged as 'RAMFS-2_33'
    b34c2929