Pasti file Reader-Writer  1.0
Pasti files
Public Member Functions | Public Attributes | List of all members
Pasti.TrackDesc Struct Reference

Pasti File Track Descriptor More...

Public Member Functions

override string ToString ()
 Override ToString() to display Track header information More...
 

Public Attributes

uint recordSize
 Total size of this track record. More...
 
uint fuzzyCount
 number of bytes in the fuzzy mask More...
 
ushort sectorCount
 number of sectors in the track More...
 
ushort trackFlags
 This field contain bit-mask flags that provide information about the content of the track record as follow: More...
 
ushort trackLength
 length of the track in number of bytes. Usually around 6250 bytes. More...
 
byte trackNumber
 Bit 7 contains the side (0 or 1) and bits 6-0 contain the track number (usually 0 to 79). More...
 
byte trackType
 track image type (not used) More...
 
const byte TRK_SYNC = 0x80
 2 bytes track_image header contains sync offset info More...
 
const byte TRK_IMAGE = 0x40
 track record contains track_image More...
 
const byte TRK_PROT = 0x20
 track contains protections ? not used More...
 
const byte TRK_SECT_DESC = 0x01
 The track record contains sectorCount SectDesc More...
 

Detailed Description

Pasti File Track Descriptor

There is one track record for each track described in the Pasti file

Definition at line 79 of file PastiStruct.cs.

Member Function Documentation

override string Pasti.TrackDesc.ToString ( )
inline

Override ToString() to display Track header information

Returns
The string

Definition at line 128 of file PastiStruct.cs.

Member Data Documentation

uint Pasti.TrackDesc.fuzzyCount

number of bytes in the fuzzy mask

Sectors with fuzzy bytes have the fuzzy bit indicator set (described by the bit 7 of the fdcFlags in the Sector descriptor)

Definition at line 87 of file PastiStruct.cs.

uint Pasti.TrackDesc.recordSize

Total size of this track record.

Therefore the position of the next Track descriptor (if any) in the file is equal to the position of the current Track descriptor plus recordSize.

Definition at line 83 of file PastiStruct.cs.

ushort Pasti.TrackDesc.sectorCount

number of sectors in the track

If bits 0 of trackFlags (described below) is set this also indicates the number of Sector descriptors in the Track record. A value of 0 indicate an empty or unformatted track.

Definition at line 92 of file PastiStruct.cs.

ushort Pasti.TrackDesc.trackFlags

This field contain bit-mask flags that provide information about the content of the track record as follow:

  • Bit 8-15 not used set to 0
  • Bit 7: This bit is set to indicate that the Track image record contain a two byte Track Image header, otherwise the Track image header is only one byte. This bit can only set if bit 6 is set.
  • Bit 6: This bit is set to indicate that the track record contains an optional Track image
  • Bit 5: always set to 1
  • Bit 1-4: not used and set to 0
  • Bit 0: When this bit is set the track descriptor is followed by sectorCount Sector descriptors. When not set the track record only contains Sector image following immediately this track descriptor. This can only be used for standard 512 bytes sectors with standard sector numbering from 1 to n. In this case the size of the track record is equal to 16 + (sectorCount * 512).

Definition at line 106 of file PastiStruct.cs.

ushort Pasti.TrackDesc.trackLength

length of the track in number of bytes. Usually around 6250 bytes.

Definition at line 108 of file PastiStruct.cs.

byte Pasti.TrackDesc.trackNumber

Bit 7 contains the side (0 or 1) and bits 6-0 contain the track number (usually 0 to 79).

Definition at line 110 of file PastiStruct.cs.

byte Pasti.TrackDesc.trackType

track image type (not used)

Definition at line 112 of file PastiStruct.cs.

const byte Pasti.TrackDesc.TRK_IMAGE = 0x40

track record contains track_image

Definition at line 118 of file PastiStruct.cs.

const byte Pasti.TrackDesc.TRK_PROT = 0x20

track contains protections ? not used

Definition at line 120 of file PastiStruct.cs.

const byte Pasti.TrackDesc.TRK_SECT_DESC = 0x01

The track record contains sectorCount SectDesc

Definition at line 122 of file PastiStruct.cs.

const byte Pasti.TrackDesc.TRK_SYNC = 0x80

2 bytes track_image header contains sync offset info

Definition at line 116 of file PastiStruct.cs.


The documentation for this struct was generated from the following file: