byte2lba byte2lba (tool command)

byte2lba, lba2byte

Converts between LBA and bytes

Syntax

byte2lba disktype startlba nbytes

lba2byte disktype startlba nlbas

Description

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 size, please see "Chapter 11: Hardware Specifications," of the N64 Disk Drive Programming Manual.

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

Revision History

04/30/1999 Changed Format