Japanese
PROGRAMMER'S GUIDEFile system library
BackForward
file system library

Appendix A

Use of development support functions


A.1 Procedure for using memory files

To use memory files, you must perform the following tasks in the order listed.

●File data creation

Create a file that will become a memory file and convert it to a memory file. Conversion to memory files is performed using MFCAT.EXE.

●Memory file load

Set the memory file to the memory area. This is done using an ICE command. It must be done every time the contents of a memory area are destroyed.

●Target program load

Loads the program files being developed into the target.

●Memory file usage declaration

Before executing GFS_Init, set the memory start address in !gfsd_mmc/GFMC_base. This will get the SIMM directory information in GFS_Init. The initial value of !gfsd_mmc/GFMC_base is 0, and in this state SIMM directory information is not referenced.

GFMC_base is defined as:

Sint8 *GFMC_base = 0;

The variable GFMC_base is defined in both sega_gfs.lib and segadgfs.lib.
GFMC_base in sega_gfs.lib exists only for compatibility with segadgfs.lib. It does not affect file system operation.

Please refer to the CD Tools manual for MFCAT.EXE.


A.2 Procedures for using DOS files

To use DOS files, you must perform the following tasks in the order listed:

●Create a correspondence table file

Create a file that will become a DOS file, and create a correspondence table file between the file name on the CD-ROM and the file name on DOS.

●Boot

Boot the target, making sure the DIP switches are set to enable SCSI.

●Target program load

After confirming that the IBM-PC recognizes the target as a SCSI device, BREAK the target and load the target program.

●Run CDSIM.EXE

Run CDSIM.EXE on the IBM-PC.
For information on the compatibility table file and CDSIM.EXE, please refer to the CD Tools manual.


A.3 Notes

The following are precautions when using the development support function.

●How to temporarily restrict access

If you normally access both memory files and DOS files, to temporarily stop accessing the DOS files, set the target's DIP switch to not use SCSI and reboot.
Conversely, to access only DOS files, set !gfsd_mmc/GFMC_base to 0.

●Recommended file name access

When using debug files, it is recommended that you use file name access, since file identifiers may change due to changes in the file structure.

●Debug file directory information

The debug file directory information is set as follows:

 F.A.D.
:File identifier on debug file
 file number
:0
 gap size
:0
 unit size
:0

●Restrictions when using DOS files

Due to processing reasons, the DOS file extraction parameters can only transfer one sector at a time. Setting the retrieval parameter to a value other than 1 has no effect.

●Limitations on available functions

When the transfer mode is GFS_TMODE_SCU or when SCU-DMA is started in a transfer function, only the following functions can be used until the transfer is completed.
Since A-Bus access is prohibited during SCU_DMA transfer, use of other functions is prohibited.


BackForward
PROGRAMMER'S GUIDEFile system library
Copyright SEGA ENTERPRISES, LTD., 1997