SHARE
TWEET

Spider-Man PS1 XA Extractor

Nicknine Oct 11th, 2019 (edited) 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Spider-Man (PS1)(SLUS-00875) - COMPILED.XA
  2. # Script for QuickBMS: https://aluigi.altervista.org/quickbms.htm
  3.  
  4. # Make sure the executable is in the same dir.
  5. open FDSE "SLUS_008.75" 1
  6. math BLOCK_TABLE_OFF = 0x088844
  7. math SOUND_TABLE_OFF = 0x0888E4
  8. get BNAME basename
  9.  
  10. for i = 0 < 79
  11.     goto BLOCK_TABLE_OFF 1
  12.     get BLOCK_SEC short 1
  13.     xmath BLOCK_OFF "(BLOCK_SEC << 4) * 0x930"
  14.    
  15.     savepos BLOCK_TABLE_OFF 1
  16.     goto SOUND_TABLE_OFF 1
  17.    
  18.     # 37800 Hz mono - 16 channels.
  19.     for j = 0 < 16
  20.         get SOUND_SECS short 1
  21.    
  22.         if SOUND_SECS != 0xFFFF
  23.             xmath SOUND_OFF "BLOCK_OFF + j * 0x930"
  24.             log MEMORY_FILE 0 0
  25.            
  26.             for k = 0 < SOUND_SECS
  27.                 xmath OFFSET "SOUND_OFF + k * 16 * 0x930"
  28.                 append
  29.                 log MEMORY_FILE OFFSET 0x930
  30.                 append
  31.             next k
  32.            
  33.             xmath SIZE "SOUND_SECS * 0x930"
  34.             string NAME p "%s_%d_%d.xa" BNAME i j
  35.             log NAME 0 SIZE MEMORY_FILE
  36.         endif
  37.     next j
  38.    
  39.     savepos SOUND_TABLE_OFF 1
  40. next i
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top