Japanese
PROGRAMMER'S GUIDECD Builder Script Grammar
■ | Go forward
CD Builder Script Grammar Manual

1. Introduction


This document describes the external specifications of the script syntax for the CD builder "XBLD" for Sega Saturn.
This script complies with the following standards. Please refer to each standard for detailed description information.

 physical format
 ...CD standard (RED BOOK, YELLOW BOOK), CD-ROM XA standard
 logical format
 ...ISO9660 standard, CD-ROM XA standard
 MPEG format
 ...ISO11172 standard
 saturn format
 ...SEGA Saturn DISC format standard specifications

1.1 Features

Compatible with the Sega Saturn disc format, it has the following features:

(1) Physical format
Compatible with CD-ROM and CD-ROM XA standards.
The CD-ROM XA standard corresponds to a format called "SEMIXA".
(In SEMIXA format, the first track is MODE1, and the second and subsequent tracks are MODE2.)

(2) Logical file format
It complies with the ISO9660 standard and also supports expansion with the CD-ROM XA standard.

(3) Interleaving compatible
Various interleaving structures can be described that correspond to file numbers and channel numbers.

(4) MPEG compatible
It supports MPEG system layer streams, MPEG video, and MPEG audio streams that comply with the ISO11172 standard.

1.2 Basics

(1) Command line format
A script is a collection of command lines that specify the arrangement of data on a CD.
A command line consists of a keyword followed by zero or more parameters.
Keywords and parameters are separated by one or more whitespace characters (spaces or tabs).
Also, keywords are not case sensitive.

┌────────────────────────────────┐ │Keyword Parameter1 Parameter2 … │ └────────────────────────────────┘

(2) Comments
Anything from the semicolon (;) to the end of the line is treated as a comment.
However, in order to distinguish it from the semicolon that precedes the version number of the ISO file name, one or more blank characters shall be placed. (excluding the semicolon at the beginning of the line)

" example "
 File SAMPLE;1
 ← "1" is interpreted as a file version number.
 File SAMPLE ;1
 ← "1" is interpreted as a comment.

1.3 Definition of terms

The following terms are used in this document.

ISO file
Files on ISO9660 disk image

DOS file
Files on DOS used for build

file source
DOS file that is the input source for the ISO file

file attributes
Attributes of files on disk images

directory attributes
Attributes of a file or directory recorded in a directory record

source attribute
File source attributes

extent
Shows a range of contiguous sectors on a disk.
A sector arrangement made up of multiple interleaved files.

null data
Data consisting of binary zeros (00H).

empty sector
A sector whose user data area consists of null data.

volume descriptor track
First track of the session. In addition to the normal file itself, file logical structures such as volume descriptors, path tables, and directory records are recorded.

Date Time
Write in the format DD/MM/YYYY hh:mm:ss:cc:gg.

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

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

relative time
Indicates the location of files and extents.
Describe the position from the beginning of the session, extent, file, etc. in FAD or time format.

Number of sectors ...FAD format
mm:ss:ff …Time format (mm: minutes, ss: seconds, ff: frames)

■ | Go forward
PROGRAMMER'S GUIDECD Builder Script Grammar
Copyright SEGA ENTERPRISES, LTD. 1997