N64® Functions Menu

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

Nintendo® Confidential

## leowrite

Syntax

    leowrite [-sfvih] [-L LBA] [-t Type]
             [-w [srart]-end]] [-a address]
             [-l idfile] [-A argfile] file

Explanation
It writes the specified file onto the N64 Disk Drive disk.
In a Partner system, you can execute a series of leowrite commands as a script, such as gwrite generated by the makedisk tool. (However, an argument with an asterisk (*) cannot be used in a Partner system even if using the script.)
Command Line Options

- -L LBA Specifies the location on the disk where writing is to begin. The default location is 0.
- -t Type Specifies the type of disk being used. The disk type cannot be changed by default.
- -s * Specifies that the first 4K bytes in the specified file is not to be written. This is because the first 4K bytes contain the boot program for a Game Pak with a ROM image and it is not necessary to write it onto the N64 Disk Drive disk.
- -w [start]-[end] Specifies the part of the file to be written by offset.
- -a address Specifies the IPL address. The N64 Disk Drive boot program writes the first loaded program into this location in RDRAM, and the it jumps there.
- -f Formats disks compulsorily.
- -l * Displays disk information:
  - Disk type
  - Loading address
  - IPL size
  - ID
- -v * Displays the version number of leowrite.
- -l idfile * Writes the first 32 bytes of idfile into the system area as ID. However, instead of factory line No. and the date of creation, the name of the machine, which did the writing and its date is written.
- -A argFile * Specifies the argument file (argFile). The argument files are composed by each line of argument to be used. When this parameter is specified, the leowrite tool ignores the other arguments and uses the arguments specified in argument file, line by line.
  For example, if the following two lines are specified in the argument file:

      -L 0 -w 4096-125071 -a 0x80000400 -t 0 rom
      -L 7 -w 125072-125311 -t 0 rom

  then leowrite does the same thing as it would do if you had specified the following two leowrite command lines:

      leowrite -L 0 -w 4096-125071 -a 0x80000400 -t 0 rom
      leowrite -L 7 -w 125072-125311 -t 0 rom

  By using the argument file, you can speed up execution of the leowrite tool. To create the argument file, you can use option -A of the makedisk tool.
- -h * Outputs a simple help file.

If both the -s and -w options are specified at the same time, the first one listed is used. The second one is ignored.
Files

- /usr/sbin/leowrite is the execution file
- /usr/lib/PR/leowrrom is the program for the N64 control deck
- /tmp/_hostfile is the temporary file (If TMPDIR is defined, it will be created there)

See Also
makedisk

Nintendo® Confidential Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.
Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated March 1998