PROGRAMMER'S GUIDECD builder script grammar
■ | Advance
CD Builder Script Grammar Manual

1. 1. Introduction


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

 Physical format
 …… CD standard (RED BOOK, YELLOW BOOK), CD-ROM XA standard
 Logical format
 …… ISO9660 standard, CD-ROM XA standard
 MPEG format
 …… ISO 11172 standard
 Saturn format
 …… Sega Saturn DISC format standard specifications

1.1 Features

It has the following features corresponding to the Sega Saturn disc format.

(1) Physical format
It supports the CD-ROM standard and the CD-ROM XA standard.
The CD-ROM XA standard supports a format called "SEMIX A".
(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 supports expansion with the CD-ROM XA standard.

(3) Interleave support
You can write various interleaved structures corresponding to file numbers and channel numbers.

(4) MPEG support
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 data layout on a CD.
The 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 Parameter 1 Parameter 2… │ └───────────────────────────┘

(2) Comment
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 inserted. (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 terms used in this document are listed below.

ISO file
Files on ISO9660 disc image

DOS file
Files on DOS used for build

File source
DOS file that is the input source of the ISO file

File attributes
Attribute of file on disk image

Directory attributes
Attributes of the file or directory recorded in the directory record

Source attributes
File source attributes

extent
Indicates the range of consecutive sectors on the disk.
A sector sequence consisting of multiple files interleaved.

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

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

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

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

 DD / MM / YYYY
 … Day / month / year
 hh: mm: ss: cc: gg
 … Hour: Minutes: Seconds: 1 / 100th of a second: GMT time difference

The GMT time difference is the time difference from Greenwich Mean Time (in 15-minute units).
It will be 36 in Japan.

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: frame)

■ | Advance
PROGRAMMER'S GUIDECD builder script grammar
Copyright SEGA ENTERPRISES, LTD ,. 1997