┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Application ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ File system library ┃ ┃ (compatible with IOS9660) ┃ ┃ ┌──────────────────────╂┐ ┃●Logical file │●CD block replacement ┃│ ┃ access function │ function using a ┃│ ┃●Immediate return│ simple CD simulator ┃│ ┃ type access │ ┃│ ┃ function │ ┃│ ┗━━━━━━━━━━━━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━┛│ ┏━━━━━━━━━━━━━┓ │┏━━━━━━━━━━┓ │ ┃CD ┃ │┃SCSI ┃ │ ┃communication┃ │┃driver ┃ │ ┃interface ┃ │┃ ┃ │ ┗━━━━━━━━━━━━━┛ │┗━━━━━━━━━━┛ │ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━│━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━│━ ┏━━━━━━━━━━━┓ │┏━━━━━━━━━━┓ ┏━━━━━━━━┓│ ┃CD block ┃ │┃IBM PC HDD┃ ┃SIMM ┃│ ┃●CD file ┃ │┃●DOS file ┃ ┃●Memory ┃│ ┃ ┃ │┃ ┃ ┃ file ┃│ ┗━━━━━━━━━━━┛ │┗━━━━━━━━━━┛ ┗━━━━━━━━┛│ │ │ └───────────────────────┘
memory file
DOS file
CD file
Create a binary file to be placed on the CD.
Use [MFCAT.EXE] to combine multiple files and create a memory file.
Load the memory file into RAM on the target.
Use the CD file system library to read files from memory files in RAM on the target in the same way you read files from a CD.
┌──────┐ ┌─────────┐ ┌──────┐ ┌──────┐ ├──────┤ │Compiler │ ├──────┤ ┌───────┐ ├──────┤ │Source├──→│Assembler│──→│Load │──→│ROF2BIN│──→│Binary│ │ │ │Linker │ │module│ └───────┘ │module│ └──────┘ └─────────┘ └──────┘ └──┬───┘ ┌─────────────────────────────────────────┘ ┌──────┐ │ ┌──────┐ ├──────┤ │ ┌─────────┐ ├──────┤ │Binary│─┼→│MFCAT │──→│Memory│ │module│ │ └─────────┘ │File │ └──────┘ │ └──────┘ │ ┌──────┐ │ ├──────┤ │ │Binary├─┘ │module│ └──────┘
Compile, assemble, and link source files to create a SYSROF format load module.
Convert to binary module with ROF2BIN.
Repeat steps 1 and 2 to create multiple files that you want to load from the memory file as CD-ROM files.
Use MFCAT to combine multiple files to create a memory file.
Start the BOOT ROM.
:rs[RET] ** RESET IN BY E700! :g[RET] ** PC = 060027XX
Press [Ctrl-C] when the logo appears.
PC= PR= MACH= R0-7 R8-15 RUN-TIME= +++:BREAKE KEY
Load the target program and memory file according to the format of the ICE file read command.
Set the start address of the memory file to make the file system library recognize that the memory file is loaded.
Search the address of [_GFMC_base] from the map file of the target program and set there the address where the memory file was loaded.
Executes the target program from the start address.
Create a binary file to be placed on the CD.
Start by typing CDSIM.EXE at the MS-DOS prompt.
Use the CD file system library to read files from a SCSI hard disk in the same way you read files from a CD.
Start the BOOT ROM.
:rs[RET] ** RESET IN BY E700! :g[RET] ** PC = 060027XX
Press [Ctrl-C] when the logo appears.
PC= PR= MACH= R0-7 R8-15 RUN-TIME= +++:BREAKE KEY
Power on or reset your PC.
The following message appears during startup:
In particular, make sure that the message "SEGA SATURN XXXX" is output.
AHA-1540/1542/1640 APSI Manager for DOS Version 3.XX Omitted Host Adapter #0 - SCSI IS 1 - LUN 0: SEGA SATURN XXXX The following omitted
Load the target program according to the format of the ICE file read command.
If you also use the SIMM system at the same time, load and configure the memory file at this time.
Executes the target program from the start address.
Launch [CDSIM.EXE] in the appropriate directory.