Japanese
PROGRAMMER'S GUIDECD Builder Script Grammar
BackForward
CD Builder Script Grammar Manual

3.7 IOS file definition


3.7.1 Defining file attributes


one
View
table
 Title

Command specifications

 Command

Defining the first position within the disk

 Keyword

BeginTimeS

 No

7.1.1

Format
BeginTimeS relpos
parameters
relpos: Starting position to place the file (relative time from the start of the session)
function
Places the file starting at the specified position relpos.

one
View
table
 Title

Command specifications

 Command

Defining the end position within the disk

 Keyword

EndTimeS

 No

7.1.2

Format
EndTimeS relpos
parameters
relpos: End position to place the file (relative time from session start)
function
Places the file ending at the specified position relpos.

one
View
table
 Title

Command specifications

 Command

Defining the first position within an extent

 Keyword

Begin Time E

 No

7.1.3

Format
BeginTime E relpos
parameters
relpos: Starting position to place the file (relative time from the start of the extent)
function
Places the file starting at the specified position relpos.

one
View
table
 Title

Command specifications

 Command

Defining the end position within an extent

 Keyword

EndTimeE

 No

7.1.4

Format
EndTimeE relpos
parameters
relpos: End position to place the file (relative time from the start of the extent)
function
Places the file ending at the specified position relpos.

one
View
table
 Title

Command specifications

 Command

File number specification

 Keyword

File No.

 No

7.1.5

Format
FileNo fno
parameters
fno: File number (1 to 255)
function
Assigns a file number to the file.
remarks
Only MODE2 track files (CD-ROM XA standard) have meaning.
Set in the file number area of subheaders and directory records.

Note
If data with subheaders is used as a file source, the subheader information of the file source takes precedence. (Refer to the command SubHeader) At this time, specify the same file number as the subheader of the file source to avoid inconsistencies with the directory record.


one
View
table
 Title

Command specifications

 Command

Pack specification after channel interleaving

 Keyword

Pack

 No

7.1.6

Format
Pack
parameters
none
function
After channel interleaving, empty sectors (unused sectors) are removed.
remarks
Normally, specify Pack to use disk space efficiently.
If Pack is not specified, empty sectors will be included for the difference between the sector rate and bit rate.

Note

BeginTimeF and EndTimeF specifications are invalid. Also, if MinLength is specified, the file area will be reserved for the specified size.


one
View
table
 Title

Command specifications

 Command

Sector rate specification during channel interleaving

 Keyword

SectorRate

 No

7.1.7

Format
SectorRate [nsect]
parameters
nsect: Number of sectors consumed per second (0 to 65535, 150 if omitted)
function
Specifies the number of sectors consumed per second for the file.
If you specify 0 or 65535 for nsect, the sector rate that minimizes empty sectors (unused sectors) will be automatically calculated.
remarks
Empty sectors are included for the difference between sector rate and bit rate.

one
View
table
 Title

Command specifications

 Command

Definition of Trigger bit position in file

 Keyword

Trigger

 No

7.1.8

Format
Trigger relpos
parameters
relpos: Position to set the Trigger bit (relative time from the beginning of the file)
function
Sets the Trigger bit of the sector at the specified position.

one
View
table
 Title

Command specifications

 Command

Definition of EOR bit position within a file

 Keyword

Eors

 No

7.1.9

Format
Eors relpos
parameters
relpos: Position to set the EOR bit (relative time from the beginning of the file)
function
Sets the EOR bit of the sector at the specified position.

3.7.2 Defining directory record information


one
View
table
 Title

Command specifications

 Command

Defining the minimum file size

 Keyword

MinLength

 No

7.2.1

Format
MinLength len
parameters
len: Number of bytes (for files) or number of sectors (for directories)
function
Reserves space of the specified size on disk, regardless of the actual size of the file or directory.
As a result, even if the size of the file increases, it will not affect subsequent disk layouts as long as it is within the minimum size.
remarks
According to the ISO9660 standard, directory files are allocated on sector (2048 byte) boundaries.
Therefore, specify the number of sectors for directories.

one
View
table
 Title

Command specifications

 Command

Defining a file's invisible attribute

 Keyword

Attributes

 No

7.2.2

Format
Attributes atr
parameters
atr: Attribute of the file (HIDDEN, NOHIDDEN, RECORD, or NOTRECORD)
function
Sets the directory record's invisible attribute bit or extended attribute record bit.
remarks
This command is retained for compatibility. No need to write.

one
View
table
 Title

Command specifications

 Command

Definition of file recording date and time

 Keyword

Recording Date

 No

7.2.3

Format
RecordingDate date time
parameters
date: Recording date DD/MM/YYYY
time: Recording time hh:mm:ss:cc:gg
function
Set the recording date and time of the file.
remarks
Write the date and time in the following format. Hundredths of seconds are ignored.

DD/MM/YYYY …day/month/year
hh:mm:ss:cc:gg …Hour:Minute:Second:Hundredth of a second:GMT time difference*

* GMT time difference is the time difference from Greenwich Mean Time (in 15 minute units). In Japan, it is 36.


one
View
table
 Title

Command specifications

 Command

Owner ID definition (CD-ROM XA)

 Keyword

SysOwnerID

 No

7.2.4

Format
SysOwnerID number
parameters
number: Owner ID number
function
Set a value in the owner ID field of directory record system information.
remarks
This command is retained for compatibility. No need to write.

one
View
table
 Title

Command specifications

 Command

Definition of read permission attribute (CD-ROM XA)

 Keyword

SysReadAttributes

 No

7.2.5

Format
SysReadAttributes owner group world
parameters
owner: Owner attribute specification (OWNER or NOTOWNER)
group: Group attribute specification (GROUP or NOTGROUP)
world : World attribute specification (WORLD or NOTWORLD)
function
Sets the value in the read attribute bit of directory record system information.
remarks
This command is retained for compatibility. No need to write.

one
View
table
 Title

Command specifications

 Command

Defining execution permission attributes (CD-ROM XA)

 Keyword

SysExecuteAttributes

 No

7.2.6

Format
SysExecuteAttributes owner group world
parameters
owner: Owner attribute specification (OWNER or NOTOWNER)
group: Group attribute specification (GROUP or NOTGROUP)
world : World attribute specification (WORLD or NOTWORLD)
function
Set the value to the execute attribute bit of the directory record system information.
remarks
This command is retained for compatibility. No need to write.

one
View
table
 Title

Command specifications

 Command

Defining the same name in the secondary volume descriptor

 Keyword

SameName

 No

7.2.7

Format
SameName svdname
parameters
svdname: Same name
function
Set the file name (same name) used in the directory hierarchy controlled by the secondary volume descriptor (SVD) for the file.
remarks
Valid only when a secondary volume is defined.

BackForward
PROGRAMMER'S GUIDECD Builder Script Grammar
Copyright SEGA ENTERPRISES, LTD. 1997