From 092d2036f6e8f2abea8ca60d5ad6c3078989e473 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 29 Nov 2017 15:18:09 +0000 Subject: [PATCH] Added 010 Editor templates. --- templates/atip | 55 +++++++++++++++++++++++++++++++++ templates/scsi_read_capacity.bt | 21 +++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 templates/atip create mode 100644 templates/scsi_read_capacity.bt diff --git a/templates/atip b/templates/atip new file mode 100644 index 00000000..471534da --- /dev/null +++ b/templates/atip @@ -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; \ No newline at end of file diff --git a/templates/scsi_read_capacity.bt b/templates/scsi_read_capacity.bt new file mode 100644 index 00000000..08c75afd --- /dev/null +++ b/templates/scsi_read_capacity.bt @@ -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; \ No newline at end of file