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

3.2 Defining the disk session structure


Figure 3.1 shows an overview of the disk session structure definition.
↑     Disc  output file name
|          Session  { CDROM|SEMIXA }                  ↑
|              LeadIn MODE1                   ←Lead In |
|                                                      |
|              EndLeadIn                               |
|                                                      |
|               SystemArea  System area file name      |
|                                                      |
|              Track  { MODE1 }               ←Track 1 |
|                :                                     S
D              EndTrack                                 E
I              Track  { MODE1 | MODE2|CDDA }  ←Track 2  S
S                :                                      S
K              EndTrack                                 I
|                                                      O
|              LeadOut { MODE1 | MODE2|CDDA } ←Leadout N        
|                  Empty 300                           |       
|              EndLeadOut                              ↓           
|          EndSession                                                     
↓      EndDisc                                                              
Figure 3.1 Disk session definition

 one
View
table
 Title

Command specifications

 Command

Starting disk definition

 Keyword

Disc

 No

2.1

Format
Disc dskfile
parameters
dskfile: Disk image file (extension is "DSK")
function
Begins disk definition.
remarks
none

 one
View
table
 Title

Command specifications

 Command

Finishing the disk definition

 Keyword

EndDisc

 No

2.2

Format
EndDisc
parameters
none
function
Finish the disk definition.
remarks
none

 one
View
table
 Title

Command specifications

 Command

Specifying catalog number

 Keyword

Catalog No.

 No

2.3

Format
CatalogNo digits
parameters
digits: Numeric string of up to 13 digits.
function
Define the catalog number.
remarks
This command is retained for compatibility. No need to write.
Catalog numbers are not reflected in disk images.

 one
View
table
 Title

Command specifications

 Command

Starting session definition

 Keyword

Session

 No

2.4

Format
Session disc type [filename]
parameters
disctype: Disc type (CDROM or SEMIXA)
filename: File name to output the disk image. Optional.
function
Begins session definition.
remarks
Parameter filename is kept for compatibility. No need to write.

 one
View
table
 Title

Command specifications

 Command

Ending session definition

 Keyword

EndSession

 No

2.5

Format
EndSession
parameters
none
function
Finish the session definition.
remarks

 one
View
table
 Title

Command specifications

 Command

Starting lead-in area definition

 Keyword

LeadIn

 No

2.6

Format
LeadIn trktype
parameters
trktype: Track type (only MODE1 can be specified)
function
Begin defining the lead-in area.
remarks
Currently, only MODE1 can be defined for the first track.

 one
View
table
 Title

Command specifications

 Command

End of lead-in area definition

 Keyword

EndLeadIn

 No

2.7

Format
EndLeadIn
parameters
none
function
Finish the lead-in area definition.

 one
View
table
 Title

Command specifications

 Command

Defining the system area

 Keyword

System Area

 No

2.8

Format
SystemArea filename
parameters
filename: Data file for system area.
function
Writes the specified file to the system area (00:02:00 to 00:02:15) specified by ISO9660.
remarks
Null data will be output for parts of the specified file that are less than 16 sectors (32768 bytes). If it exceeds 16 sectors, an error will occur.

 one
View
table
 Title

Command specifications

 Command

Starting the readout area definition

 Keyword

Lead Out

 No

2.9

Format
LeadOut trktype
parameters
trktype : Track type (MODE1, MODE2 or CDDA)
function
Begin defining the readout area.
remarks
Specify the track type in the lead-out area to be the same as the last track in the session.

 one
View
table
 Title

Command specifications

 Command

Finishing the readout area definition

 Keyword

EndLeadOut

 No

2.10

Format
EndLeadOut
parameters
none
function
Finish the leadout area definition.

 one
View
table
 Title

Command specifications

 Command

Defining null data for readout

 Keyword

Empty

 No

2.11

Format
Empty nsect
parameters
nsect: Number of output sectors of null data in the lead-out area.
function
Outputs null data for the specified number of sectors.
remarks
This command is left in place due to VCD emulator limitations. For reliable operation of the emulator, it is recommended to output 300 sectors or more.

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