![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Code with weird numbers can someone please translate? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Code with wierd numbers can someone please translate? here it is: Code: int installPatch() { SceUID fd; fd = sceIoOpen("patch.bin", ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Code with wierd numbers can someone please translate?
here it is: Code:
int installPatch()
{
SceUID fd;
fd = sceIoOpen("patch.bin", PSP_O_RDONLY, 0777);
if (fd < 0)
return 0;
sceIoRead(fd, (void *)0x883e0000, 10*1024);
sceIoClose(fd);
// Redirect system bootstrap (sceLoadExec module, "game" mode)
// c0 88 01 3c lui $at, 0x88c0 -> 3e 88 01 3c lui $at, 0x883e
// 09 f8 20 00 jalr $ra, $at
_sh(0x883e, 0x88069684);
// The same here, for "vsh" and "updater" modes (sceLoadExec
// module loads to a different location in those modes)
_sh(0x883e, 0x880bce84);
//sceKernelDcacheWritebackAll();
return 1;
}
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there. Just see some of my work. PM me for GFX. |
|
|
|
|
|
|
#7 |
![]() likes kittens....awww....
Join Date: Sep 2006
Real First Name: Erik
Location: Detroit
Just Played: Call of Duty:World at War
Posts: 628
Trader Feedback: 0
|
http://kedem.cs.duke.edu/cps104/Hand...%20tutorial%22
When you steal code, make sure that you understand the code you are stealing. |
|
|
|
|
|
#8 |
|
Can someone read it (whatever wierd code it is)
I M not stealing I just want to learn how it works? lol I got it from the source of NO-KXPLOIT PATCHER by the way -= Double Post =- Thanks pspgamer12
__________________
Need a GFX Guy for EBOOT ICONS, BACkGROUNDS?? I can help you there. Just see some of my work. PM me for GFX. Last edited by pspfreak9; 11-24-2006 at 04:57 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#9 |
![]() ![]() Developer
|
That's C/C++ code. At a wild guess, it reads a value in the .bin file and possibly reads or writes to a memory address.
Or, you can read the comments: // Redirect system bootstrap (sceLoadExec module, "game" mode) // c0 88 01 3c lui $at, 0x88c0 -> 3e 88 01 3c lui $at, 0x883e // 09 f8 20 00 jalr $ra, $at // The same here, for "vsh" and "updater" modes (sceLoadExec // module loads to a different location in those modes) _sh(0x883e, 0x880bce84); |
|
|
|
![]() |
| Tags |
| code , numbers , translate , weird |
| Thread Tools | |
|
|