Added 010 Editor templates.

This commit is contained in:
2017-11-29 15:18:09 +00:00
commit a48dec3f6d
2 changed files with 76 additions and 0 deletions

55
atip Normal file
View File

@@ -0,0 +1,55 @@
//------------------------------------------------
//--- 010 Editor v8.0.1 Binary Template
//
// File: atip.bt
// Authors: Natalia Portillo
// Version: 1.0
// Purpose: Decoding of CD-R and CD-RW ATIP.
// Category: CD-R, CD-RW
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
typedef struct
{
ushort dataLength;
byte reserved1;
byte reserved2;
} scsiLengthHeader;
typedef struct
{
byte itwp : 4;
byte ddcd : 1;
byte referenceSpeed : 3;
byte zero : 1;
byte unrestrictedMedia : 1;
byte reserved : 6;
byte one : 1;
byte rewritable : 1;
byte subtype : 3;
byte validA1 : 1;
byte validA2 : 1;
byte validA3 : 1;
byte leadInStartMin;
byte leadInStartSec;
byte leadInStartFrame;
byte reserved2;
byte leadOutStartMin;
byte leadOutStartSec;
byte leadOutStartFrame;
byte reserved3;
byte A1[3];
byte reserved4;
byte A2[3];
byte reserved5;
byte A3[3];
byte reserved6;
byte S4[3];
byte reserved7;
} ATIP;
BigEndian();
scsiLengthHeader scsiHeader;
ATIP atip;

21
scsi_read_capacity.bt Normal file
View File

@@ -0,0 +1,21 @@
//------------------------------------------------
//--- 010 Editor v8.0.1 Binary Template
//
// File: scsi_read_capacity.bt
// Authors: Natalia Portillo
// Version: 0.1
// Purpose: Decoding of SCSI READ CAPACITY return
// Category: SCSI
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
typedef struct
{
uint blocks;
uint blocksize;
} ScsiReadCapacity;
BigEndian();
ScsiReadCapacity capacity;