PROGRAMMER'S GUIDECD builder script grammar
BackForward
CD Builder Script Grammar Manual

3.2 Definition of disk session structure


Figure 3.1 shows an overview of the disk session structure definition.
↑ Disc output file name | Session {CDROM | SEMIXA} ↑
| LeadIn MODE1 ← Leadin |
| |
| EndLeadIn |
| |
| SystemArea File name for system area |
| |
| Track {MODE1} ← Track 1 |
| : |
De EndTrack Say Track {MODE1 | MODE2 | CDDA} ← Track 2 ss: Shiku EndTrack | N | LeadOut {MODE1 | MODE2 | CDDA} ← Leadout |         
| Empty 300 | 
| EndLeadOut ↓ 
| EndSession                                                     
↓ End Disc                                                              
Figure 3.1 Disk session definition

 List
 Title

Command specifications

 Command

Start disk definition

 Keyword

Disc

 No

2.1

Form
Disc dskfile
Parameters
dskfile: Disk image file (extension is "DSK")
function
Start disk definition.
remarks
none

 List
 Title

Command specifications

 Command

End of disk definition

 Keyword

EndDisc

 No

2.2

Form
EndDisc
Parameters
none
function
Finish the disk definition.
remarks
none

 List
 Title

Command specifications

 Command

Specifying the catalog number

 Keyword

CatalogNo

 No

2.3

Form
CatalogNo digits
Parameters
digits: A string of numbers within 13 digits.
function
Define the catalog number.
remarks
This command is left for compatibility. No need to write.
The catalog number is not reflected in the disk image.

 List
 Title

Command specifications

 Command

Start session definition

 Keyword

Session

 No

2.4

Form
Session disctype [filename]
Parameters
disctype: Disc type (CDROM or SEMIXA)
filename: The file name to output the disk image. Optional.
function
Start defining the session.
remarks
The parameter filename is left for compatibility. No need to write.

 List
 Title

Command specifications

 Command

End of session definition

 Keyword

EndSession

 No

2.5

Form
EndSession
Parameters
none
function
Ends the session definition.
remarks

 List
 Title

Command specifications

 Command

Start of lead-in area definition

 Keyword

LeadIn

 No

2.6

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

 List
 Title

Command specifications

 Command

End of lead-in area definition

 Keyword

EndLeadIn

 No

2.7 2.7

Form
EndLeadIn
Parameters
none
function
Finishes the lead-in area definition.

 List
 Title

Command specifications

 Command

System area definition

 Keyword

System Area

 No

2.8

Form
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 is output where the specified file is less than 16 sectors (32768 bytes). If it exceeds 16 sectors, an error will occur.

 List
 Title

Command specifications

 Command

Start of lead-out area definition

 Keyword

LeadOut

 No

2.9

Form
LeadOut trktype
Parameters
trktype: Track type (MODE1, MODE2 or CDDA)
function
Start defining the lead-out area.
remarks
Specify the same track type as the last track in the session in the lead-out area.

 List
 Title

Command specifications

 Command

End of lead-out area definition

 Keyword

EndLeadOut

 No

2.10

Form
EndLeadOut
Parameters
none
function
Finishes the lead-out area definition.

 List
 Title

Command specifications

 Command

Definition of null data for readout

 Keyword

Empty

 No

2.11

Form
Empty nsect
Parameters
nsect: Number of output sectors of null data in the readout area.
function
Outputs null data for the specified number of sectors.
remarks
This command is left due to VCD emulator limitations. It is recommended to output 300 sectors or more for reliable operation of the emulator.

BackForward
PROGRAMMER'S GUIDECD builder script grammar
Copyright SEGA ENTERPRISES, LTD ,. 1997