Guest User

Untitled

a guest
Jan 4th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. /*** SPU ***/
  2. il $3,0
  3.  
  4. loop:
  5. lqd $4,0($3) //Read 4 Bytes of LS
  6. wrch ch28,$4 //Write 4 Bytes of LS to Mailbox
  7. ai $3,$3,4 //Increase LS Pointer
  8. br loop //Start again...
  9.  
  10. /*** PPU ***/
  11. FILE* pFile = fopen("/dev_usb000/LS.bin","wb"); //Create file to dump LS to
  12. for(int i=0;i<65536;i++){ //65536*4 = 256KB
  13. while (!(sys_raw_spu_mmio_read(id, SPU_MBox_Status) & 0x01)); //Anything to dump?
  14. unsigned long LS = sys_raw_spu_mmio_read(id, SPU_Out_MBox); //Read Mailbox
  15. fwrite(LS,1,4,pFile); //Write Mailbox to file
  16. }
  17. fclose(pFile); //Close file
Add Comment
Please, Sign In to add comment