byte2lba, lba2byte
Convert between LBA and byte
byte2lba disktype startlba nbytes
lba2byte disktype startlba nlbas
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 64 Disk Drive Programming manuals.
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.
04/30/1999 Changed format