Package libsidplay.components.c1541
Klasse D64
java.lang.Object
libsidplay.components.c1541.DiskImage
libsidplay.components.c1541.D64
- Autor:
- Ken Händel
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate static final intD64 image byte size (35 tracks).private static final intD64 sector byte size.private byteDisk ID.private byteDisk ID.private byte[]Error in each sector appended to the D64 disk image.private static final int[]Number of gap bytes between sectors of the speedzones 0-3.private static final intGCR byte size of a whole sector.private static final int[]Number of sectors per track of the speedzones 0-3.Von Klasse geerbte Felder libsidplay.components.c1541.DiskImage
DIR_TRACK_1541, EXT_TRACKS_1541, extendImageListener, fd, fileName, gcr, MAX_OVERALL_SECTORS, MAX_TRACKS_1541, MIN_TRACKS_1541, RAW_TRACK_SIZE, readOnly, SPEED_MAP_1541, tracks, trackSize -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidattach()Detect 35..42 track d64 image, determine image parameters.private voidExtend disk image to 42 tracks.voidgcrDataWriteback(int track) Write back unsaved disk image data.private voidgcrDataWritebackSector(int offset, int track, int sector) Write back dirty sector into the disk image.private intgetSectorCount(int track, int sector) Count sectors up to the given location.private DOSErrorCodesreadSector(byte[] sectorBytes, int sectorBytesPos, int track, int sector) Read sector of disk image.private voidwriteSector(byte[] sectorBytes, int sectorBytesPos, int track, int sector) Write a sector.Von Klasse geerbte Methoden libsidplay.components.c1541.DiskImage
attach, detach, getDiskSector, isReadOnly, save, setExtendImagePolicy
-
Felddetails
-
D64_FILE_SIZE_35
private static final int D64_FILE_SIZE_35D64 image byte size (35 tracks).- Siehe auch:
-
D64_SECTOR_SIZE
private static final int D64_SECTOR_SIZED64 sector byte size.- Siehe auch:
-
GCR_SECTOR_SIZE_WITH_HEADER
private static final int GCR_SECTOR_SIZE_WITH_HEADERGCR byte size of a whole sector.- Siehe auch:
-
GAPS_BETWEEN_SECTORS
private static final int[] GAPS_BETWEEN_SECTORSNumber of gap bytes between sectors of the speedzones 0-3. -
SECTOR_MAP_D64
private static final int[] SECTOR_MAP_D64Number of sectors per track of the speedzones 0-3. -
diskID1
private byte diskID1Disk ID. -
diskID2
private byte diskID2Disk ID. -
errorInfo
private byte[] errorInfoError in each sector appended to the D64 disk image.
-
-
Konstruktordetails
-
D64
-
-
Methodendetails
-
attach
Detect 35..42 track d64 image, determine image parameters. Walk from 35 to 42, calculate expected image file size for each track, and compare this with the size of the given image.- Angegeben von:
attachin KlasseDiskImage- Löst aus:
IOException- disk image file read error
-
readSector
private DOSErrorCodes readSector(byte[] sectorBytes, int sectorBytesPos, int track, int sector) throws IOException Read sector of disk image.- Parameter:
sectorBytes- sector bytes read from tracksectorBytesPos- offset with the start of the sector bytestrack- tracksector- sector- Gibt zurück:
- DOS error code of the sector to read
- Löst aus:
IOException- error reading disk image
-
getSectorCount
private int getSectorCount(int track, int sector) Count sectors up to the given location.- Parameter:
track- tracksector- sector- Gibt zurück:
- sector number
-
gcrDataWriteback
Beschreibung aus Klasse kopiert:DiskImageWrite back unsaved disk image data.- Angegeben von:
gcrDataWritebackin KlasseDiskImage- Parameter:
track- dirty track- Löst aus:
IOException
-
driveExtendDiskImage
Extend disk image to 42 tracks.- Löst aus:
IOException- disk image write error
-
gcrDataWritebackSector
Write back dirty sector into the disk image.- Parameter:
offset- offset of the GCR datatrack- tracksector- sector- Löst aus:
IOException- disk image write error
-
writeSector
private void writeSector(byte[] sectorBytes, int sectorBytesPos, int track, int sector) throws IOException Write a sector.- Parameter:
sectorBytes- sector bytes to writesectorBytesPos- offset of the sector bytestrack- tracksector- sector- Löst aus:
IOException- disk image write error
-