Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*** SPU ***/
- il $3,0
- loop:
- lqd $4,0($3) //Read 4 Bytes of LS
- wrch ch28,$4 //Write 4 Bytes of LS to Mailbox
- ai $3,$3,4 //Increase LS Pointer
- br loop //Start again...
- /*** PPU ***/
- FILE* pFile = fopen("/dev_usb000/LS.bin","wb"); //Create file to dump LS to
- for(int i=0;i<65536;i++){ //65536*4 = 256KB
- while (!(sys_raw_spu_mmio_read(id, SPU_MBox_Status) & 0x01)); //Anything to dump?
- unsigned long LS = sys_raw_spu_mmio_read(id, SPU_Out_MBox); //Read Mailbox
- fwrite(LS,1,4,pFile); //Write Mailbox to file
- }
- fclose(pFile); //Close file
Add Comment
Please, Sign In to add comment