N64 Disk Drive (Leo) Functions/Tool Commands

Note: The N64 Disk Drive environment must be installed in order to use these functions.

Initialization Functions

LeoCreateLeoManager Creates and starts the device driver called the leo manager (boot from disk).
LeoCJCreateLeoManager Creates and starts the device driver called the leo manager (Game Pak boot - Japanese version).
LeoCACreateLeoManager Creates and starts the device driver called the leo manager (Game Pak boot - U.S. version).

OS Functions

osDriveRomInit Returns information concerning the required hardware settings when using the N64 Disk Drive ROM.
osGetMemSize Checks for the memory expansion pak (used with N64 Disk Drive).-> Moved to OS functions

Asynchronous Functions

LeoSpdlMotor Controls the N64 Disk Drive motor and heads.
LeoReadWrite Reads and writes to N64 Disk Drive.
LeoSeek Issues the seek command to N64 Disk Drive.
LeoReadDiskID Gets the disk ID.
LeoReadRTC Reads the time of the internal RTC.
LeoSetRTC Sets the time of the internal RTC.

Synchronous Functions

LeoByteToLBA Converts byte size to LBA size.
LeoLBAToByte Converts LBA size to byte size.
LeoReadCapacity Calculates the usable disk space.
LeoInquiry Checks the version number of the hardware and software.

Font Functions

LeoGetKAdr Gets the storage offset address for a kanji character from the shift JIS code sjis.
LeoGetAAdr Gets the storage offset address for an ASCII character from the character code code.
LeoGetAAdr2 Gets the storage offset address for an ASCII character from the character information data ccode.

Other Important Functions

LeoReset Stops execution of subsequent leo manager commands and clears the command queue.
LeoResetClear Cancels the N64 Disk Drive reset state.
LeoClearQueue Clears the Leo Manager command queue.
LeoBootGame Reboots a game.
LeoDriveExist Checks whether N64 Disk Drive is connected to the console.

Special Functions

LeoModeSelectAsync Alters the N64 Disk Drive mode-switching time.
LeoRezero Recalibrates N64 Disk Drive.
LeoTestUnitReady Checks the state of N64 Disk Drive.

Tool Commands

asccode Obtains the character information data about an ASCII character.
byte2lba Converts byte size to LBA size.
lba2byte Converts LBA size to byte size.
calcncc Calculates the NCC (Nintendo Check Code).
makedisk Creates N64 Disk Drive images and related ELF object files.
n64mdisk Produces the master data from the created game.
ramstart Gets the start LBA of the N64 Disk Drive RAM region.

Deleted Functions (Please take note)

LeoModeSelect
LeoReset