forked from Sparagas/Silent-Hill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CD-ROM Mode 1.bt
36 lines (36 loc) · 919 Bytes
/
CD-ROM Mode 1.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
//------------------------------------------------
//--- 010 Editor v14.0 Binary Template
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
// CD mode 1 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 1)
uchar mode;
} header <bgcolor=cLtGray>;
// Data
char data [2048] <bgcolor=cLtYellow>;
// Error detection code
int edc <bgcolor=cLtGray>;
// Reserved
char reserved [8] <bgcolor=cLtGray>;
// Error correction code
char ecc [276] <bgcolor=cLtGray>;
} sector [FileSize() / 2352];