forked from Sparagas/Silent-Hill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CD-ROM XA Mode 2, Form 2.bt
44 lines (44 loc) · 1.05 KB
/
CD-ROM XA Mode 2, Form 2.bt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//------------------------------------------------
//--- 010 Editor v14.0 Binary Template
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
// CD mode 2 binary template
struct SECTOR {
// Sync pattern
char sync [12] <bgcolor=cLtGray>;
// Header
struct HEADER {
// Minute of start address
uchar minute;
// Second of start address
uchar second;
// Frame of start address
uchar frame;
// Mode (should be 2)
uchar mode;
} header <bgcolor=cLtGray>;
// Subheader
struct SUBHEADER {
// File number
uchar file;
// Channel number
uchar channel;
// Submode
uchar submode;
// Coding information
uchar coding;
} subheader [2] <bgcolor=cLtGray>;
// Data
// Form 2
char data [2324] <bgcolor=cLtYellow>;
// Error detection code
int edc <bgcolor=cLtGray>;
} sector [FileSize() / 2352];