// /***************************************************************************
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : Amiga.cs
// Version : 1.0
// Author(s) : Natalia Portillo
//
// Component : Commodore Amiga floppy decoder
//
// Revision : $Revision$
// Last change by : $Author$
// Date : $Date$
//
// --[ Description ] ----------------------------------------------------------
//
// Methods and structures for Commodore Amiga floppy decoding
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
//
// ----------------------------------------------------------------------------
// Copyright (C) 2011-2015 Claunia.com
// ****************************************************************************/
// //$Id$
using System;
using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy
{
///
/// Methods and structures for Commodore Amiga decoding
///
public static class Amiga
{
public struct Sector
{
///
/// Set to 0x00
///
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
public byte[] zero;
///
/// Set to 0xA1
///
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
public byte[] sync;
///
/// Set to 0xFF
///
public byte amiga;
///
/// Track number
///
public byte track;
///
/// Sector number
///
public byte sector;
///
/// Remaining sectors til end of writing
///
public byte remaining;
///
/// OS dependent tag
///
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
public byte[] label;
///
/// Checksum from to
///
public UInt32 headerChecksum;
///
/// Checksum from
///
public UInt32 dataChecksum;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)]
public byte[] data;
}
}
}