PROGRAMMER'S GUIDESimple CD simulator
BackForward
Simple CD simulator

3. Command description



■ MFCAT

● Memory file combination tool MFCAT

Form
MFCAT [-o <OUTFILE>] -f <FLIST>
or
MFCAT [-o <OUTFILE>] <file1> <file2> ...

option

-o <OUTFILE>
Specify the output file name in [<OUTFILE>]. If omitted, it will be output to [MFCAT.OUT].

-f <FLIST>
Enter file name not from command parameters, but list file [ ] To get from. Write one file name per line in the list file. No line should contain any characters other than the file name.

<file1> <file2> ...
A list of input file names.

output
A memory file is output.

function
Combines multiple files to create a memory file accessible by the CD library / file system. At this time, add a header containing directory information (file name, size, etc.) to the beginning of each file.
In the file system, you can access the data in each file by tracing this header sequentially from the beginning.

remarks
The input files are combined in the order specified.
File names are converted from lowercase to uppercase.
Wildcards are not expanded for the input file name.

Example of use

  1. [AFILE.DAT] Generate [MFCAT.OUT] from [BFILE.DAT].

    C: \> MFCAT AFILE.DAT BFILE.DAT [RET]
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
    

  2. Generate [TEST.ROM] from the file specified by [FILE.LST].

    C: \> MFCAT -oTEST.ROM -fFILE.LST [RET]
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    


■ CD SIM

● CD simulator CDSIM

Form
CDSIM [-f ]
CDSIM -i <tty_dev_name> -o <SCSI_dev_name> [-f <FILE_NAME>]

option
-f <FILE_NAME>
Definition file name of CD file name and DOS file name

function
After booting, it polls the target box SCSI driver for requests for CD-ROM data.
If there is a request, the response process for that request is executed.

How to exit
Press the [ESC] key to exit.
For the workstation version, press [CTRL] + [C].

Example of use
Launch [CDSIM.DAT] as a definition file.

C: \> CDSIM -fCDSIM.DAT [RET]
    ~~~~~~~~~~~~~~~~~~~

SUN boot example (when using PORT-A / SCSI ID 2)

CD SIM -i / dev / ttya -o / dev / rsd2a [RET]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

HP boot example (when using PORT-0 / SCSI ID 5)

CD SIM -i / dev / tty00 -o / dev / dsk / d201d5s0 [RET]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


● Definition file format of CD file name and DOS file name

Form
<CD file name> <DOS file name> [; <comment>] [\ n]

<CD file name> <UNIX file name> [; <comment>] [\ n]

The definition file is a text file that describes one correspondence between the CD file name and the DOS file name on one line. File names are separated by spaces or tabs, and comments after the semicolon.
File identifiers 0, 1, 2 ... are assigned from the beginning.

remarks
Character limit
 CD file name
 : 12 characters or less
 DOS file name
 : 64 characters or less (including path name)
 Maximum number of digits per line
 : 128 characters or less
* The file name should be in MS-DOS format with 8 characters +'.' + 3 characters.

Reference example
Definition of n files

CD file name DOS file name; file identifier 0 [\ n]
CD file name DOS file name; file identifier 1 [\ n]
CD file name DOS file name [\ n]
・
・
・
CD file name DOS file name; file identifier n-1 [\ n]
[EOF]


BackForward
PROGRAMMER'S GUIDESimple CD simulator
Copyright SEGA ENTERPRISES, LTD., 1997