Appendices Leo Functions


This is the outline of functions in the Leo Library.

Initializer Functions
Functions to create a device driver called Leo Manager

LeoCreateLeoManager Start an N64 Disk Drive game
LeoCJCreateLeoManager Start a Japanese Game Pak game
LeoCACreateLeoManager Start an American Game Pak game


Asynchronous Functions
Actual processing is done within a different thread from the one that brought up the function. Also, with this function, processing is done asynchronous to the thread that was brought up.

LeoSpdlMotor Control the drive's motor and the position of the head
LeoReadWrite Perform reads and writes from the N64 DD
LeoSeek Issue the Seek command for the 64DD
LeoReadDiskID Get the disk ID
LeoReadRTC Read the time from the RTC
LeoSetRTC Set the time in RTC


Synchronous Functions
Functions to be processed within the threads brought up

LeoByteToLBA Convert from byte to LBA
LeoLBAToByte Convert from LBA into byte
LeoReadCapacity Calculate the usable disk space
LeoInquiry Check the version of the N64 Disk Drive hardware and the software.


Font-Use Functions
Functions to get the stored address for font data in the ROM built within the 64DD

LeoGetKAdr Get the storage offset address for a kanji character specified by the shift-JIS code in the sjis argument
LeoGetAAdr Get the storage offset address for the ASCII character specified by the character code in the code argument
LeoGetAAdr2 Get the storage offset address for the ASCII character specified by the character information data in the ccode argument


Other Functions
Other Important Functions

LeoReset Interrupt the command being executed and clear the command queue.
LeoResetClear Cancel the N64 Disk Drive reset state
LeoClearQueue Clear the Leo Manager's command queue
LeoBootGame Executes a reboot


Special Functions
Functions with use limitations and not for general use

LeoModeSelectAsync Provide a way to alter the wait-time specified for changes between the active,standby, and sleep modes to meet the needs of the game
LeoRezero Issue the recalibration command to the N64 Disk Drive
LeoTestUnitReady Check the state of the N64 Disk Drive