2017-05-19 20:28:49 +01:00
|
|
|
// /***************************************************************************
|
2020-02-27 12:31:25 +00:00
|
|
|
// Aaru Data Preservation Suite
|
2016-08-26 01:43:15 +01:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Filename : Consts.cs
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
//
|
2016-08-26 01:45:58 +01:00
|
|
|
// Component : CP/M filesystem plugin.
|
2016-08-26 01:43:15 +01:00
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
2016-08-26 01:45:58 +01:00
|
|
|
// CP/M filesystem constants.
|
2016-08-26 01:43:15 +01:00
|
|
|
//
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// This library is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as
|
|
|
|
|
// published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This library is distributed in the hope that it will be useful, but
|
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2025-08-14 02:49:52 +01:00
|
|
|
// Copyright © 2011-2025 Natalia Portillo
|
2016-08-26 01:43:15 +01:00
|
|
|
// ****************************************************************************/
|
2016-08-26 01:45:58 +01:00
|
|
|
|
2020-07-20 21:11:32 +01:00
|
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
|
|
2020-07-20 15:43:52 +01:00
|
|
|
namespace Aaru.Filesystems
|
2016-08-26 01:43:15 +01:00
|
|
|
{
|
2020-07-22 13:20:25 +01:00
|
|
|
public sealed partial class CPM
|
2016-08-26 01:43:15 +01:00
|
|
|
{
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>Enumerates the format identification byte used by CP/M-86</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
enum FormatByte : byte
|
2016-08-26 01:43:15 +01:00
|
|
|
{
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>5.25" double-density single-side 8 sectors/track</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
k160 = 0,
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>5.25" double-density double-side 8 sectors/track</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
k320 = 1,
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>5.25" double-density double-side 9 sectors/track</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
k360 = 0x10,
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>5.25" double-density double-side 9 sectors/track</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
k360Alt = 0x40,
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>3.5" double-density double-side 9 sectors/track</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
k720 = 0x11,
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>3.5" double-density double-side 9 sectors/track using FEAT144</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
f720 = 0x48,
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>5.25" high-density double-side 15 sectors/track using FEAT144</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
f1200 = 0x0C,
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>3.5" high-density double-side 18 sectors/track using FEAT144</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
f1440 = 0x90,
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>5.25" double-density double-side 9 sectors/track</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
k360Alt2 = 0x26,
|
2020-02-29 18:03:35 +00:00
|
|
|
/// <summary>3.5" double-density double-side 9 sectors/track</summary>
|
2016-08-26 01:45:58 +01:00
|
|
|
k720Alt = 0x94
|
2016-08-26 01:43:15 +01:00
|
|
|
}
|
|
|
|
|
}
|
2017-12-19 20:33:03 +00:00
|
|
|
}
|