27 using System.Collections.Generic;
30 using System.Threading.Tasks;
32 using System.Windows.Media;
71 return String.Format(
"Pasti file version {0}.{1} Image Tool={2:X2} - Number of tracks={3}",
72 version, revision, tool, trackCount);
130 return String.Format(
"Track {0:D2}.{1:D1} {2} bytes {3} sect FuzBytes={4} Flag={5:X2} {6} {7} RecSize={8}",
131 trackNumber & 0x7F, (trackNumber & 0x80) >> 7, trackLength, sectorCount, (fuzzyCount == 0) ?
"No" : String.Format(
"{0}", fuzzyCount),
trackFlags,
132 ((trackFlags &
TRK_IMAGE)) != 0 ?
"TImage" :
"",
159 return String.Format(
"T={0,-2} H={1} SN={2,-3} S={3} CRC={4:X4}",
160 track, side, number, size,crc);
235 return String.Format(
" Sector {0} bitPos={1,-6} Time={2,-5} Flags={3:X2} {4}{5} Off={6,-6}",
236 id.
ToString(), bitPosition, readTime, fdcFlags, ((fdcFlags & FUZZY_BITS) != 0) ?
"F" :
" ",
237 ((fdcFlags & BIT_WIDTH) != 0) ?
"T" :
" ", dataOffset);
Pasti File Track Descriptor
Pasti File Header Descriptor
override string ToString()
Override ToString() to display Track header information
override string ToString()
Override ToString() to display Address field information
ushort trackFlags
This field contain bit-mask flags that provide information about the content of the track record as f...
byte reserved
Reserved (should be 0x00)
ushort crc
CRC Value from address field
const byte TRK_PROT
track contains protections ? not used
override string ToString()
Override ToString() to display File header information
byte trackType
track image type (not used)
const byte FUZZY_BITS
Sector has Fuzzy Bits
const byte TRK_SYNC
2 bytes track_image header contains sync offset info
byte track
Track number from address field
ushort sectorCount
number of sectors in the track
uint fuzzyCount
number of bytes in the fuzzy mask
ushort readTime
This field contains either zero or the read time for the sector data block.
const byte TRK_SECT_DESC
The track record contains sectorCount SectDesc
ushort bitPosition
This field store the position in number of bits of this sector address block from the index...
byte size
Size value from address field
const byte REC_TYPE
Record Type (1 = deleted data)
const byte SECT_RNF
RNF or Seek error
const byte TRK_IMAGE
track record contains track_image
byte trackCount
Number of track records
ushort trackLength
length of the track in number of bytes. Usually around 6250 bytes.
ushort version
File version number: Should be equal to 3.
byte trackNumber
Bit 7 contains the side (0 or 1) and bits 6-0 contain the track number (usually 0 to 79)...
const byte CRC_ERR
CRC Error (in Data if RNF=0 else in ID)
Pasti File Sector Descriptor
override string ToString()
Override ToString() to display Pasti Sector descriptor information
byte number
Sector number from address field
ushort tool
Tool used to create image
uint recordSize
Total size of this track record.
byte revision
revision number of the file.
byte fdcFlags
This field contains a mixture of the FDC status, as it would have been read by the WD1772...
string pastiFileId
Identify a Pasti file and should be equal to the null terminated string “RSY”
uint dataOffset
Offset of sector data inside the track record
byte side
Head number from address field
ushort reserved_1
Reserved
const byte BIT_WIDTH
Sector has bit width variation