Skip to content

Instantly share code, notes, and snippets.

View joel16's full-sized avatar
:octocat:

Joel joel16

:octocat:
  • Wolverhampton, UK
View GitHub Profile
@John-K
John-K / PSP HW Regs.md
Last active January 17, 2023 02:31
PSP 0xBCxxxxxx Register Descriptions

0xbc10003c

  • 0x1 - sceSysreg_driver_0x4841B2D2(int) (set), sceSysreg_driver_0x4E5C86AA (read, clear, restore)
    • also if (int == 0) reg &= 0xe0000000
  • 0x1 - sceSysregDoTimerEvent(0, 1 or 3) (set), sceSysregDoTimerEvent(0, 0 or 2) (clear)
  • 0x2 - sceSysregDoTimerEvent(1, 1 or 3) (set), sceSysregDoTimerEvent(1, 0 or 2) (clear)

0xbc100040

  • (>> 8) - sceSysregGetTachyonVersion
  • 0x100 - sceSysregSetAwEdramSize(arg1)
  • if (tachyonVersion >= 0x500000)
from idautils import *
from idaapi import *
from ida_name import *
from idc import *
from ida_hexrays import *
from ida_frame import *
from ida_struct import *
INHERITANCE = {
# Auto Object base classes.
https://github.com/xerpi/GhidraVitaLoader
@SciresM
SciresM / nx_bootloader_uncompress.c
Last active December 27, 2019 10:43
Quick and dirty NX bootloader uncompression code for 6.2.0+
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
typedef uint32_t u32;
typedef uint8_t u8;