al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
makediskFormatmakedisk [-D name[=def]] [-l dir] [-U name] [-d] [-m] [-o] [-b bootstrap filename] [-h header filename] [-s romsize] [-f filldata] [-C clockrate] [-t type] [-p pif2 bootstrap filename] [-f romfile] specfileCommand Line Options Except for the -t option, which is explained below, the meanings of the options are the same as those for makerom tool.
It creates the N64 Disk Drive disk image and its related ELF object file. Specifically, makedisk is used in place of makerom when you are creating disk games instead of Game Paks. The makedisk tool performs three main operations:
Linking Segments Based on the spec File Specifications The makedisk tool differs from makerom in two ways concerning the spec file specifications:
The following example shows how the lba specification is used. �.. beginseg name "road" lba 100 flags OBJECT number TEXTURE_SEGMENT include "road.o" endseg �..The lba specification only specifies segments stored on the disk. A "segment stored on the disk" is a segment of non-zero size in the ROM image. For example, segments from the color frame buffer and the Z-Buffer are only maintained in RDRAM, so no space is secured in ROM. Therefore, if this type of segment were specified with lba an error would be returned. Conversely, an error would arise if a ROM image segment of non-zero size were not specified with lba. The lba specification specifies which LBA to write the segment to on the disk. The format can be any of these:
The gwrite file is the batch file for writing games to the disk. It can be executed using the < instruction in the Partner command window. (The < instruction executes the commands written in a specified file.) Generating Disk-Use Symbols For example, to know the storage LBA for the texture segment on the disk, write the following into the program to have makedisk resolve the symbols: extern char_textureSegmentRomStart[ ], _textureSegmentRomEnd[] These will be displayed respectively as [texture segment starting LBA] and [texture segment ending LBA + 1]. See Also makerom leowrite
|