Advertisement
Guest User

Untitled

a guest
Mar 30th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. offset_psar (pbp_buf+0x24) <-offset for np_header
  2. LBA start (np_header+0x54)
  3. LBA end (np_header+0x64)
  4. block_size (np_header+0x0c)
  5. lba_size (end-start+1)
  6. total_blocks (lba_size+block_size-1)/block_size
  7. offset_table (np_header+0x6c) <-offset for np_table
  8.  
  9. tp (np_table+block*32)
  10.  
  11. everything in big endian, read it backwards
  12.  
  13. tp[4] is block offset relative to np_header
  14. tp[5] is block size in bytes
  15.  
  16. block_locat (offset_psar+tp[4]) <- location of block X where X is block number in tp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement