3.3 gwrite
gwrite is a batch file that writes games to disk. It is created by makedisk (see Section 3.1) and mild (see Section 3.2). It can be executed using the < command (< is a command that runs the commands contained in the specified file) as follows.
><gwrite
When gwrite is executed, the command leowrite, which is contained in gwrite, is executed several times. Each leowrite execution corresponds to a segment and writes a segment in rom image to a specified LBA. The general syntax of leowrite is as follows.
>leowrite -L 7 -w 125072-125311 -t 0 rom
This command means to write from a file named rom, beginning at an offset of 125072 bytes from the beginning of the file to 125311 bytes (one segment), to a disk of type 0, beginning from LBA 7. Disk type is discussed in detail in "Chapter 11, 64DD Hardware Specifications." It is sufficient here to understand that 1 of 7 types can be selected for each disk, the type corresponding to the size of the writable disk area. Type 0 is one such type.
leowrite is discussed in greater detail in "APPENDIX D."