Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Liu committed Jun 16, 2024
1 parent 0ddca93 commit 2934aef
Show file tree
Hide file tree
Showing 12 changed files with 261 additions and 279 deletions.
7 changes: 0 additions & 7 deletions docs/Utility/module.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/Utility/overview.md

This file was deleted.

14 changes: 11 additions & 3 deletions docs/libs/font.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ sceFontisElement?
0x9480

```cpp
/// param_1 SHIFT_JIS Code
undefined2 FUN_08884680(uint param_1)

{
Expand All @@ -160,16 +161,21 @@ undefined2 FUN_08884680(uint param_1)
uint uVar3;

param_1 = param_1 & 0xffff;
// Find in 0~0x2d
uVar1 = 0;
uVar2 = 0x2d;
if (DAT_08a33310 <= param_1) {
// Find in 0x2e <= index < 0x5a
uVar1 = 0x2e;
uVar2 = 0x5a;
if (param_1 <= DAT_08a33310) {
// At 0x2d
uVar3 = 0x2d;
goto LAB_088846d0;
}
}

// Get the index in the 2nd Table
uVar3 = FUN_08884724(param_1,uVar1,uVar2);
uVar3 = uVar3 & 0xffff;
LAB_088846d0:
Expand All @@ -178,13 +184,13 @@ LAB_088846d0:
//(
//(param_1 - *(ushort *)(&DAT_08a3325c + uVar3 * 4))
//+
// Next one at 0x8a3325e
// Table 2 at 0x8a3325e
(uint)*(ushort *)(&DAT_08a3325e + uVar3 * 4)
)
* 2);
}


/// param_1: SHIFT_JIS Code
uint FUN_08884724(ushort param_1,uint param_2,uint param_3)

{
Expand All @@ -194,15 +200,17 @@ uint FUN_08884724(ushort param_1,uint param_2,uint param_3)

param_3 = param_3 & 0xffff;
param_2 = param_2 & 0xffff;
// mid = (high+lo)/2;
uVar3 = param_3 + param_2 >> 1;
// high = mid - 1;
uVar1 = param_3 - 1 & 0xffff;
if ((param_3 != param_2) &&
((uVar2 = uVar3, param_1 < *(ushort *)(&DAT_08a3325c + uVar3 * 4) ||
(param_2 = uVar3 + 1 & 0xffff, uVar2 = param_3, uVar1 = uVar3,
*(ushort *)(&DAT_08a3325c + uVar3 * 4) < param_1)))) {
uVar1 = FUN_08884724(param_1,param_2,uVar2);
}
// param1==*(ushort *)(&DAT_08a3325c + uVar3 * 4)
// param1 >= *(ushort *)(&DAT_08a3325c + uVar3 * 4)
return uVar1;
}

Expand Down
Binary file removed docs/libs/libfont_dis.txt
Binary file not shown.
9 changes: 0 additions & 9 deletions docs/libs/load.md

This file was deleted.

84 changes: 0 additions & 84 deletions docs/libs/reverse.c

This file was deleted.

10 changes: 10 additions & 0 deletions docs/moduleload.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ restart and open

manage prx

# Load&Execution Library.
Load&Execute A PRX/BOOT.BIN... from another Executable File

You can pass some arguments to the main function of the program you are about to execute.

```C
int sceKernelLoadExec (const char *file, struct SceKernelLoadExecParam *param);
```
The PSP will reboot and execute the file you have selected. The screen will gone blank for a while. But you seem to have some choice to keep the screen on during the reboot process, according to what the official document says.
# 地址空间
sceModuleInfo
Expand Down
9 changes: 9 additions & 0 deletions docs/prx2stub.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,12 @@ __stub_module_\module:

.set pop
.endm


# Cooperating with different SDKs

`PSPSDK`是民间爱好者自发通过逆向工程研究得到的SDK。围绕着这套SDK,已经移植出多种库。`PSPSDK`随着PSP破解的发展不断迭代,从以前的`M33`格式到后来的格式。

目前,官方的SDK已经泄露在互联网上,通过在互联网档案馆搜寻不难得到。随着官方SDK的泄露,随之而来的是大量的官方文档,它们对于PSP的运作机理进行了很好的补充。作为初学者阅读这些文档有助于我们更好地使用`PSPSDK`。

事实上,现在`PSPSDK`的功能和配套软件在某些方面已经远远超过了官方SDK。但是`PSPSDK`少收录了部分系统库(系统调用)的函数,亦缺乏许多函数参数的解释。另外,官方SDK还收录了索尼开发的的部分第三方库。这些库能够使我们的程序中UI等的设计更接近当时PSP官方出品的程序。
Loading

0 comments on commit 2934aef

Please sign in to comment.