In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
416 bytes added ,  21:51, 20 January 2024
Line 109: Line 109:  
| 0x04
 
| 0x04
 
| 2
 
| 2
| Address Base Unit
+
| Address Unit Base
 
| 13
 
| 13
 
|-
 
|-
Line 117: Line 117:  
| 13
 
| 13
 
|}
 
|}
 +
 +
The Address Unit is obtained by raising 2 to the power of the address unit base: pow(2,address_unit_base) or just <code>1<<address_unit_base</code>
    
==== Extends ====
 
==== Extends ====
Line 138: Line 140:  
| 0x00000684
 
| 0x00000684
 
|}
 
|}
 +
 +
The start address and length of an extend needs to be multiplied by the address unit obtained from the header to obtain the byte address, which can be divided by the lba size to obtain the lba address:
 +
start_lba = start_address * pow(2,address_unit_base) / lba_size
    
==== Footer ====
 
==== Footer ====
 
The extends are followed by one byte with varying values, which is also ignored by HAI-IOS
 
The extends are followed by one byte with varying values, which is also ignored by HAI-IOS
5

edits

Navigation menu