2017-05-19 20:28:49 +01:00
|
|
|
// /***************************************************************************
|
2020-02-27 12:31:23 +00:00
|
|
|
// Aaru Data Preservation Suite
|
2015-10-19 02:04:38 +01:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Filename : Enums.cs
|
2016-07-28 18:13:49 +01:00
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
2015-10-19 02:04:38 +01:00
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// Component : Device structures decoders.
|
2015-10-19 02:04:38 +01:00
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// Contains various floppy enumerations.
|
2015-10-19 02:04:38 +01:00
|
|
|
//
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// 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
|
2015-10-19 02:04:38 +01:00
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// 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.
|
2015-10-19 02:04:38 +01:00
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// 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/>.
|
2015-10-19 02:04:38 +01:00
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2022-12-03 16:07:08 +00:00
|
|
|
// Copyright © 2011-2023 Natalia Portillo
|
2015-10-19 02:04:38 +01:00
|
|
|
// ****************************************************************************/
|
2016-07-28 18:13:49 +01:00
|
|
|
|
2022-03-07 07:36:42 +00:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
|
2022-11-15 15:58:41 +00:00
|
|
|
namespace Aaru.Decoders.Floppy;
|
|
|
|
|
|
2022-03-06 13:29:37 +00:00
|
|
|
/// <summary>In-sector code for sector size</summary>
|
|
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
|
|
|
public enum IBMSectorSizeCode : byte
|
2015-10-19 02:04:38 +01:00
|
|
|
{
|
2022-03-06 13:29:37 +00:00
|
|
|
/// <summary>128 bytes/sector</summary>
|
|
|
|
|
EighthKilo = 0,
|
|
|
|
|
/// <summary>256 bytes/sector</summary>
|
|
|
|
|
QuarterKilo = 1,
|
|
|
|
|
/// <summary>512 bytes/sector</summary>
|
|
|
|
|
HalfKilo = 2,
|
|
|
|
|
/// <summary>1024 bytes/sector</summary>
|
|
|
|
|
Kilo = 3,
|
|
|
|
|
/// <summary>2048 bytes/sector</summary>
|
|
|
|
|
TwiceKilo = 4,
|
|
|
|
|
/// <summary>4096 bytes/sector</summary>
|
|
|
|
|
FriceKilo = 5,
|
|
|
|
|
/// <summary>8192 bytes/sector</summary>
|
|
|
|
|
TwiceFriceKilo = 6,
|
|
|
|
|
/// <summary>16384 bytes/sector</summary>
|
|
|
|
|
FricelyFriceKilo = 7
|
|
|
|
|
}
|
2015-10-19 02:04:38 +01:00
|
|
|
|
2022-03-06 13:29:37 +00:00
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
|
|
|
public enum IBMIdType : byte
|
|
|
|
|
{
|
2023-10-03 23:09:28 +01:00
|
|
|
IndexMark = 0xFC,
|
|
|
|
|
AddressMark = 0xFE,
|
|
|
|
|
DataMark = 0xFB,
|
2022-03-06 13:29:37 +00:00
|
|
|
DeletedDataMark = 0xF8
|
|
|
|
|
}
|
2015-10-19 02:04:38 +01:00
|
|
|
|
2022-03-06 13:29:37 +00:00
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
|
|
|
public enum AppleEncodedFormat : byte
|
|
|
|
|
{
|
|
|
|
|
/// <summary>Disk is an Apple II 3.5" disk</summary>
|
|
|
|
|
AppleII = 0x96,
|
|
|
|
|
/// <summary>Disk is an Apple Lisa 3.5" disk</summary>
|
|
|
|
|
Lisa = 0x97,
|
|
|
|
|
/// <summary>Disk is an Apple Macintosh single-sided 3.5" disk</summary>
|
|
|
|
|
MacSingleSide = 0x9A,
|
|
|
|
|
/// <summary>Disk is an Apple Macintosh double-sided 3.5" disk</summary>
|
|
|
|
|
MacDoubleSide = 0xD9
|
2017-12-19 20:33:03 +00:00
|
|
|
}
|