Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .set noat
- .set noreorder
- .data
- path: .asciiz "ms0:/PSP/SAVEDATA/XXXXXXXXX/h.bin"
- umd: .asciiz "disc0:/UMD_DATA.BIN"
- .text
- start:
- lui $s0, 0x0900
- move $s2, $ra /* Assuming start code address is stored in $ra */
- UmdPathFix:
- addiu $s3, $s2, path
- addiu $a0, $s2, umd
- li $a1, 1
- jal sceIoOpen
- li $a2, 31
- move $s1, $v0
- move $a0, $v0
- addiu $a1, $s3, 18 /* go to gameid beginning */
- jal sceIoRead
- li $a2, 5 /* read 5 first char */
- move $a0, $s1
- addiu $a1, $s3, 22 /* go to gameid nb */
- jal sceIoRead
- li $a2, 5 /* read 5 nb char */
- jal sceIoClose
- move $a0, $s1
- Loader:
- move $a0, $s3
- li $a1, 1
- jal sceIoOpen
- li $a2, 31
- move $s1, $v0
- move $a0, $v0
- move $a1, $s0
- jal sceIoRead
- lui $a2, 1
- jal sceIoClose
- move $a0, $s1
- jal sceKernelDcacheWritebackInvalidateAll
- nop
- jr $s0
- nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement