This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sceSblSmSchedProxyGetStatus(u32 sm_handle, u32 *out_buf) | |
{ | |
// Check global status var | |
u32 state = SMSCHED_STATUS; | |
// SmSched is not initialized | |
if (state != 0x01) | |
return 0x800F0426; | |
// NULL pointer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ROM:005161C0 ANDEQ R0, R0, R0 | |
ROM:005161C4 ANDEQ R0, R0, R0 | |
ROM:005161C8 CLREX | |
ROM:005161CC STR LR, [SP,#-8] | |
ROM:005161D0 MRS LR, SPSR | |
ROM:005161D4 STR LR, [SP,#-4] | |
ROM:005161D8 SUB SP, SP, #8 | |
ROM:005161DC CMP R12, #0x500 -> Max R12 value is 0x500 :( | |
ROM:005161E0 BCS loc_516208 | |
ROM:005161E4 CMP R12, #0x100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct { | |
char name[0x100]; | |
void* data; | |
u32 size; | |
u32 unk; | |
u8 hash[0x14]; | |
u8 padding[0x0C]; | |
} prsh_section; | |
typedef struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x10000000: 12 34 56 78 9A BC DE F0 12 34 56 78 9A BC DE F0 | |
... | |
0x100003F0: 12 34 56 78 9A BC DE F0 12 34 56 78 9A BC DE F0 | |
0x10000400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
... | |
0x10005A40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
0x10005A50: 00 00 00 00 | |
0x10005A54: PRSH XOR checksum | |
0x10005A58: "PRSH" // magic | |
0x10005A5C: 0x00000001 // version (0 or 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: "boot_info" | |
Address: 0x10008000 | |
Size: 0x00000058 | |
UNK: 0x80000000 | |
Name: "mcp_crash_region" | |
Address: 0x100F7F60 | |
Size: 0x000080A0 | |
UNK: 0x80000000 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x00000000: 0x00000001 // Always 1 (set by boot1 on coldboot) | |
0x00000004: 0xA6000000 // Boot flags (0x80 means data is set) | |
0x00000008: 0x00000000 // Boot state | |
0x0000000C: 0x00000001 // Boot count (increased by boot1 on reset) | |
0x00000010: 0x00100000 // Set to 0 by boot1 on coldboot | |
0x00000014: 0x00000000 // Set to 0 by boot1 on coldboot | |
0x00000018: 0xFFFFFFFF // Set to -1 by boot1 on coldboot | |
0x0000001C: 0xFFFFFFFF // Set to -1 by boot1 on coldboot | |
0x00000020: 0xFFFFFFFF // Set to -1 by boot1 on coldboot | |
0x00000024: 0xFFFFFFFF // Set to -1 by boot1 on coldboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Do some boring stuff | |
... | |
// Decrypt PRSH/PRST with Starbuck ancast key | |
sub_D400320(0x10000400, 0x7C00, iv); | |
// Parse PRSH/PRST | |
sub_D40B030(0x10000400, 0x7C00); | |
// Locate or create new "boot_info" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0D40AC6C MOVS R0, #0 | |
0D40AC6E POP {R1-R3} | |
0D40AC70 MOV R11, R2 | |
0D40AC72 MOV SP, R3 | |
0D40AC74 BX R1 |