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

## byte2lba
lba2byte

Syntax

    byte2lba disktype startlba nbytes
    lba2byte disktype startlba nlbas

Explanation
They convert between LBA and bytes. With the N64 Disk Drive, block size differs depending on the block type (LBA or bytes). These commands perform the conversion. To learn more about block types, please see Chapter 11, "Hardware Specifications," of the N64 Disk Drive Programmer's Guide.
The byte2lba tool converts byte size to LBA size. That is, for a disk of type disktype, it calculates and displays the number of LBAs in the nbytes from the start of the block specified by startlba.
The lba2byte tool converts LBA size to byte size. That is, for a disk of type disktype, it calculates and displays the number of bytes in the nlbas blocks from the start of the block specified by startlba.
See Also
LeoByteToLBA
LeoLBAToByte

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