Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the mechanism to access mounted files #93

Merged
merged 12 commits into from Mar 22, 2022

Commits on Aug 25, 2021

  1. Add the UD_SSEC field to the unit descriptor.

    This stores the first data sector of the file that's mounted,
    relative to the start of the drive (3 bytes, we assume 4th byte
    is always 0).
    
    Also, _GDLI temporarily returns that first sector number.
    Konamiman committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    3391b2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78899bc View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2021

  1. Remove the extra code for supporting reentrant file access.

    When mounted files were accessed via file access functions some extra
    code to save and restore variables was needed since these functions
    are not reentrant. Now that the mounted files are accessed via direct
    sector access, this extra code is not needed anymore.
    Konamiman committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    9470baa View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2021

  1. Don't keep mounted files open.

    Once mounted files are accessed via direct sector access there's no need
    to keep the mounted file open. So:
    
    - Remove the code that opens/closes the file on mount/unmount.
    - Store the file name in the unit descriptor, for _GDLI.
    - Check the read only mount flag explicitly in CALL_UNIT.
    - Remove no longer needed auxiliary code and variables.
    Konamiman committed Aug 29, 2021
    Configuration menu
    Copy the full SHA
    f01ce38 View commit details
    Browse the repository at this point in the history
  2. Verify that a file is in consecutive clusters when mounting it.

    _MAPDRV will return an .ICLUS error if the file to mount is not stored
    across consecutive clusters (i.e. it's fragmented).
    Konamiman committed Aug 29, 2021
    Configuration menu
    Copy the full SHA
    92ce718 View commit details
    Browse the repository at this point in the history
  3. Add the "Invalid cluster sequence" BASIC error.

    Also reword "Invalid cluster number" error message to
    "Invalid cluster number or sequence".
    Konamiman committed Aug 29, 2021
    Configuration menu
    Copy the full SHA
    5552556 View commit details
    Browse the repository at this point in the history
  4. Update documentation regarding file mounting.

    * Add new "Invalid cluster sequence" BASIC error to user manual.
    
    * Mention that a file must be stored across consecutive sectors to be
      mountable in the user manual.
    
    * Mention that MAPDRV requires a file to be stored across consecutive
      sectors to be mountable, in the programmers reference.
    
    * Mention that .ICLUS is returned by MAPDRV if a file to be mounted
      is not stored across consecutive sectors,
      in the programmers reference.
    Konamiman committed Aug 29, 2021
    Configuration menu
    Copy the full SHA
    5601825 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. Configuration menu
    Copy the full SHA
    49e652e View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2021

  1. Configuration menu
    Copy the full SHA
    a3ba5e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2a9b551 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2022

  1. Configuration menu
    Copy the full SHA
    d3171ba View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2022

  1. Configuration menu
    Copy the full SHA
    c2d30b7 View commit details
    Browse the repository at this point in the history