mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-06-02 12:41:31 +00:00
7b713e6aaa
Set svn properties on files. --HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4044493
23 lines
615 B
C#
23 lines
615 B
C#
using System;
|
|
|
|
namespace Jellyfish.Virtu
|
|
{
|
|
public sealed class DiskNib : Disk525
|
|
{
|
|
public DiskNib(string name, byte[] data, bool isWriteProtected) :
|
|
base(name, data, isWriteProtected)
|
|
{
|
|
}
|
|
|
|
public override void ReadTrack(int number, int fraction, byte[] buffer)
|
|
{
|
|
Buffer.BlockCopy(Data, (number / 2) * TrackSize, buffer, 0, TrackSize);
|
|
}
|
|
|
|
public override void WriteTrack(int number, int fraction, byte[] buffer)
|
|
{
|
|
Buffer.BlockCopy(buffer, 0, Data, (number / 2) * TrackSize, TrackSize);
|
|
}
|
|
}
|
|
}
|