Japanese
PROGRAMMER'S GUIDEVirtual CD System
BackForward
Virtual CD System User's Manual

Chapter 1 Overview


1.1 Overview of Virtual CD Emulator

Virtual CD emulator is an MS-DOS program that runs on a PC compatible machine.
By communicating with the VCD I/F board inserted into the expansion slot of a PC compatible machine, it receives CD access commands sent from the target box, accesses MS-DOS files according to the commands, and accesses the CD drive. is realized in a pseudo manner.

The main features of the virtual CD emulator are briefly listed below.

There are three types of MS-DOS file formats that can be accessed:

(1) A collection of data files before becoming a CD image
This is an MS-DOS file that contains data before creating a CD image. (Hereafter, it will simply be referred to as the "data file.")
The virtual CD emulator determines the data file according to the access position of the CD access command received from the VCD I/F board, edits it to become a CD image, and sends it to the VCD I/F board.
As a result, the target box can receive data in the same format as it entered from the CD drive. Emulation in this case is called "direct DOS file access."
In this case, once you have the data to create the CD image, you can start emulation with simple preprocessing, but since the data is sent while being edited, it will be played back at the same timing as input from the original CD drive. You can not. Therefore, channel interleaving functions that require complex disk access cannot be supported in this mode of operation. Similarly, MPEG functionality cannot be supported.

(2) File containing the CD image as is
There are various format standards for CDs, and a file in which data is edited and written in a shape and length that conforms to those standards is called a "CD image file." The virtual CD emulator sends this "CD image file" as is to the I/F board. This requires creating a CD image before starting emulation.
This case is called "real-time emulation."
In this operating mode, complex sector allocation such as channel interleaving is performed before emulation starts, so there are no functional limitations like the ``direct DOS file access'' described in the previous section.

(3) CD image and data file for partially modifying it
This is an emulation that modifies only one data file, plays that modified data file, and performs a playback test on the other parts using CD image files. Emulation in this case is called "CD image partial update."

The virtual CD emulator determines which of these emulations to run based on the presence or absence of the file when the virtual CD emulator is started, and the parameters on the command line when starting the virtual CD emulator.
The file extension is used to identify the presence or absence of a file, and the body part is specified by the parameter on the command line when starting the virtual CD emulator.

To perform CD emulation, you will need a virtual CD emulator program and a preprocessing program to create a CD image.

1.2 General flow of work

Here we will explain the general steps to perform emulation work using a virtual CD emulator.
Before starting the virtual CD emulator, read the VCD I/F board edition and connect the cables. The terms described in the VCD I/F board edition are also used in this book, but as they are already understood, they are not explained here.
Additionally, the following settings for the VCD I/F board are required to operate the virtual CD emulator.

Figure-2. General flow of work

Figure 2 shows the general flow of the work, and the diagram is explained below. In the next chapter, we will work with more concrete examples.

(1) Environment settings
The task is to assign the settings of the VCD I/F board to the environment variable called VCDIO.
The settings on the virtual CD emulator program and VCD I/F board must be consistent. The required settings are the numbers of the three jumpers on the VCD I/F board. If there is a discrepancy between these values, the virtual CD emulator will not be able to communicate with the VCD I/F board. This setting is determined when the board is installed on a PC compatible machine, so if you assign a value to the environment variable with AUTOEXEC.BAT at this time, it will be automatically set every time the PC compatible machine is turned on. This environment setting will be done.

(2) Creation of materials, programs, etc.
Please prepare image data and programs to be placed on the CD in the form of MS-DOS files.

(3) CD location information description
Specify how MS-DOS files such as materials and programs are arranged on the CD.
There is a predetermined format for describing the composition of a CD, and you enter it using a text editor according to this format. This file is called a "script file" and its contents are called a "script."
Creating this script file will describe the CD location information. How to create this script file is explained in the " CD Builder User's Manual " .

(4) Creating CD configuration information file
Create a CD configuration information file when performing "direct DOS file access".
The CD configuration information file shows the correspondence between individual MS-DOS files and CD access positions (minutes, seconds, and frame values).
Start CD builder XBLD.EXE for direct DOS file access and create a CD configuration information file.

(5) Creation of CD image file
Create a CD image file when performing "real-time emulation".
Start the CD builder XBLD.EXE for real-time emulation and create a CD image file.

(6) Starting the virtual CD emulator
After completing steps (4) or (5) in the previous section, start the virtual CD emulator.
Whether (4) or (5) is started, the mode of emulation to be performed can be determined by the existence of the created file.
After starting the virtual CD emulator, operations will be mainly performed on the target box side. With virtual CD emulator, just check the playback status or messages.

(7) Correction work
If it is necessary to modify materials, programs, etc. as a result of emulation, we will use the respective creation tools to make the modifications.
In the case of "Direct DOS file access", perform step (4) again (if the file size after modification is the same, there is no need to perform step (4)).
For "Real-time emulation", repeat step (5) .

(8) CD image partial update
Use VCDUTL.EXE to partially update the CD image.
For partial CD image updates, there are two modes: a mode in which the CD image file is directly rewritten, and a mode in which real-time emulation is performed using CD image update information.


BackForward
PROGRAMMER'S GUIDEVirtual CD System
Copyright SEGA ENTERPRISES, LTD. 1997