Japanese
PROGRAMMER'S GUIDESimple CD simulator
BackForward
Simple CD simulator

3.Command explanation



■MFCAT

●Memory file combination tool MFCAT

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

option

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

-f< FLIST>
Instead of input filenames from command parameters, list files [ ]. In the list file, write one file name per line. No line should contain any characters other than file names.

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

output
A memory file is output.

function
Combine multiple files and create a memory file accessible by your CD library/file system. At this time, a header containing directory information (file name, size, etc.) is added to the beginning of each file.
In a file system, data in each file can be accessed by sequentially traversing this header from the beginning.

remarks
Input files are combined in the order specified.
File names are converted from lowercase to uppercase.
Wildcard expansion is not performed on input file names.

Example of use

  1. Generate [MFCAT.OUT] from [AFILE.DAT][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]
        ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾ ‾
    


■CDSIM

●CD simulator CDSIM

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

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

function
After startup, it polls the target box's SCSI driver for requests regarding CD-ROM data.
If there is a request, it will respond to the request.

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

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

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

Example of starting SUN (when using PORT-A/SCSI ID 2)

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

HP startup 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

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

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

The definition file is a text file in which one correspondence between a CD file name and a DOS file name is written in one line. File names are separated by spaces or tabs, and anything after a semicolon is a comment.
File identifiers 0, 1, 2, etc. 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 in one line
 :128 characters or less
* The file name must be in MS-DOS format of 8 characters + '.' + 3 characters.

Reference example
Definition of n files

CDFileName	DOSFileName	;FileIdentifier0[\n]
CDFileName	DOSFileName	;FileIdentifier1[\n]
CDFileName	DOSFileName[\n]
    ・
    ・
    ・
CDFileName	DOSFileName	;FileIdentifierN-1[\n]
[EOF]


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