Japanese
SGL User's ManualData exchange
BackForward
Passing data

3. How to burn a CD-ROM


This chapter describes how to burn user-created games to CD-ROM.

3-1. Work flow

The CD-ROM is created in the PC DOS English mode environment. Therefore, file names are subject to DOS restrictions and can be up to 8 characters + 3 characters.

In order to burn a user-created game onto a CD-ROM, you need to have IP, programs, and data in binary format.

Figure 3-1 shows the basic flow of creating a CD-ROM, and Figure 3-2 shows the files required when creating a CD-ROM.

Figure 3-1 Flow of CD-ROM creation


Figure 3-2 CD-ROM creation flow and files

3-2. Creating IP

What is IP>

The IP is written to the system area of the CD-ROM disk and is used by applications to use the Saturn boot system. IP is required for all CD-ROM program discs.
(Not required for data disks).
Details of the IP are described in “DISC Format Standards, Boot System” in the Programmer's Guide.

IP configuration

IP consists of boot code and application initial program.
The boot code consists of an ID code such as the game name, a security code provided by Sega, and an area code.
The application initial program is placed immediately after the area code and is executed immediately after the area code is executed. From then on, the program progresses under the control of the application.

Table 3-1 IP configuration

structure size remarks
IP
 Boot Code
 System ID
100H
 Game name, product number, version, etc.
 Security code
D00H
 security code
 Area Code
 20H~100H
 area code
Application Initial
Program
 20H~71E0H
Initial program, file system, etc.

For details on how to create an IP, please refer to “Programmer's Guide Boot System ”.

3-3. Build

Build is the preprocessing performed to burn all binary files (IP, programs, data, etc.) prepared by the user onto a CD-ROM. The build creates the TOC information file and disk image file needed to burn the CD-ROM.
Run the build using the following steps:

1) Prepare the files you want to burn to CD-ROM
Prepare all the files you want to write to the CD-ROM on your PC's disk. The file location is specified in the script file, so it can be anywhere. The file name must be up to 12 characters (including periods) with 8 characters and 3 characters for the extension. CDDA files must be ordered in Intel format (little endian). For Motorola format (big endian), perform a byte swap. (“SWAP.EXE” is a byte swap program for DOS.)

2) Securing a work area
Prepare a work area to generate a CD-ROM disk image. Requires at least the same capacity as the total file capacity. Perform all subsequent file creation and execution in this area. (Moves the current directory.)

3) Deciding on the project name
This is used as the body of the MS-DOS file name, so please keep it within 8 characters.
Here, we will use “sample” as an example.

4) Create script file
Please create a script file using an appropriate editor while referring to Sample Program 1 (Listing 3-1). The file name should be the project name with the extension "scr" added.
In this case, it is “sample.scr” .
The directory where you create the script file should be the directory where you will execute the "VCDBUILD" command to generate the disk configuration information file and disk image file.

5) Generating disk configuration information file and disk image file
Start the preprocessing program “vcdbuild.exe”.
The parameter is “vcdbuild sample” here.
As a result, a disk configuration information file and a disk image file are generated.
Here, “sample.rti” and “sample.dsk” are generated.

6) Generate TOC file
Start the TOC file generation program “vcdmktoc.exe” . Give the body part (project name) of the RTI file as a parameter.
In this case, it is “vcdmktoc samle” .
This results in a TOC file.
Here, “sample.toc” is generated.

Listing 3-1 Sample program 1 (Creating script file “sample.scr”)

Disc  sample.dsk
     Session CDROM
            LeadIn MODE1
            EndLeadIn
            SystemArea e:\ip.bin

            Track MODE1
                  Volume ISO9660 sample.pvd  This is the specified part of the volume descriptor set.
                         PrimaryVolume 0:2:16   The bold text part is the basic volume descriptor that will be output.
                         EndPrimaryVolume        
                   EndVolume

                   File ASAMPLE.BIN
                        FileSource e:\mode1\asample.bin   These four lines are one file.
                        EndFileSource
                   EndFile
                   File ASAMPLE1.BIN
                        FileSource e:\mode1\asample1.bin
                        EndFileSource
                   EndFile
                   File ASAMPLE2.BIN
                        FileSource e:\mode1\asample2.bin
                        EndFileSource
                   EndFile

                       ............   If the files continue, add them as well.

                   PostGap 150          EndTrack

            Track CDDA                          These five lines correspond to one CDDA song.
                   Pause 150
                   FileSource e:\cdda\samp_cd1.dat
                   EndFileSource
            EndTrack
            Track CDDA
                   Pause 150
                   FileSource e:\cdda\samp_cd2.dat
                   EndFileSource
            EndTrack
            Track CDDA
                   Pause 150
                   FileSource e:\cdda\samp_cd2.dat
                   EndFileSource
            EndTrack

                       ............   If the song continues, add it as well.

            LeadOut CDDA      It is not possible to specify that CDDA is not included.
                   Empty 500
            EndLeadOut
     EndSession
EndDisc

3-4. Burning the CD-ROM

Insert the CD-ROM into the CD writer and start it by typing the CD writer command as follows:

“segacdw.exe”

The parameters to be set are as follows.

    segacdw [-s #] [-i #] [-t] ProjectName

   -s  … Specify the write speed.
         Specify 1 (constant speed), 2 (double speed), or 4 (quadruple speed).
         The default is 4x speed.
   -i  … Specify the SCSI ID number of the CD writer.
         Default is 5.
   -t  … Test mode performs a writing test.
         (It is not written to the actual CD-ROM.)

For example, parameter settings are

“segacdw -s 2 sample”

It becomes. In this case, the project name “sample” will be written to the CD writer with SCSI ID number 5 at double speed.
We recommend that you first perform the actual writing in test mode, and if there are no errors, proceed with the actual writing.
If you want to run test mode, in this example,

segacdw -s 2 -t sample

It becomes.


BackForward
SGL User's ManualData exchange
Copyright SEGA ENTERPRISES, LTD., 1997