C/C++ Programming Help Thread
This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; i know, any assembly tutorials tho, not reversing ones... anyways is that output from prxtool right? ~!SlasheR!~...
-
01-24-2009, 04:54 PM #9601xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
i know, any assembly tutorials tho, not reversing ones...
anyways is that output from prxtool right?
~!SlasheR!~
-
01-24-2009, 04:59 PM #9602
There are a number of outputs.
Off the top of my head, the main ones for reversing are
--elfout your_.prx > your_.elf
and
-w your_.prx > your_.xml
the -w is mainly for people like me who don't have any good mips disassemblers, while elf works best with people who can use things like ps2dis.I gone and made that one power spoofer and that gay cheat device.
-
01-24-2009, 05:03 PM #9603xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
-
01-24-2009, 05:07 PM #9604
-
01-24-2009, 05:12 PM #9605xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
googled, couldnt find a download link,
could u post one plz
~!SlasheR!~
-
01-24-2009, 05:14 PM #9606I gone and made that one power spoofer and that gay cheat device.
-
01-24-2009, 05:19 PM #9607xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
it says its only for ps1 & ps2
can i still use it 4 psp ?
~!SlasheR!~
-
01-24-2009, 05:22 PM #9608
-
01-24-2009, 05:25 PM #9609xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
so ive got the *.elf from my *.prx that i coded,
now what do i look 4 if i want to change something in it,
~!SlasheR!~
-
01-24-2009, 05:26 PM #9610
-
01-24-2009, 05:28 PM #9611xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
i want to patch it so it changes "Hello World" to "Hello something"
can i do that?
~!SlasheR!~
-
01-24-2009, 05:30 PM #9612
You generally don't need to convert it to elf to do that, you'd just need to use a hex editor, and make sure it's in overwrite mode, not insert.
It's what ps3news did to everyone way back, he changed the credits on everything.
Anyhow, I don't think this little topic is really C/C++ help anymore, so I think we should get back to that :).I gone and made that one power spoofer and that gay cheat device.
-
01-24-2009, 09:27 PM #9613
is it possible to allign text to the right
Geändert von vodkkaa (01-25-2009 um 01:45 AM Uhr)
-
01-25-2009, 05:55 AM #9614x(t)=x_0+v_0t+\frac{1}{2}
- Registriert seit
- Dec 2005
- Ort
- Close to the end
- Beiträge
- 208
- Points
- 6.726
- Level
- 53
- Downloads
- 0
- Uploads
- 0
%[-][+][0-9][.0-9][lL][dxXuofeEgGcs]
|| | | | | |
|| | | | | +- format char, see below
|| | | | +----- long modifier, ignored
|| | | +----------- decimals
|| | +---------------- field length
|| +------------------- plus sign
|+---------------------- leftalign
+----------------------- percent sign, starts format specifier
- The percent sign always starts the format specifiert. Two consecutive %'s could be used to literally generate a single %
- A "-" aligns output left (usually, it's right-aligned).
- A "+" outputs a plus sign for positive numbers (usually, it is suppressed).
- The field length specifies the overall field length. If the formatted value is shorter, it will be padded with blanks, if it longer, it will remain unchanged.
- The number of decimals specifies the length of the fractional part for
- "d": integer value in decimal format.
- "x": integer value in hexadecimal format (letters in lowercase).
- "X": integer value in hexadecimal format (letters in uppercase).
- "u": absolute integer value in decimal format. Result will always be positive.
- "o": integer value in octal format.
- "f": floating point value in fixed format (xxx.yyyyyy).
- "e": floating point value in scientific format (0.yyyyyye+zzz).
- "E": floating point value in scientific format (0.yyyyyyE+zzz).
- "g": same as "f" for absolute values not smaller than 0.001 and not greater or equal than 1000. Otherwise, same as "e".
- "G": same as "f" for absolute values not smaller than 0.001 and not greater or equal than 1000. Otherwise, same as "E".
- "c": single character.
- "s": String.
-
01-25-2009, 03:23 PM #9615It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
-
01-25-2009, 04:22 PM #9616QJ Gamer Bronze
- Registriert seit
- Aug 2008
- Ort
- thugz mansion
- Beiträge
- 875
- Points
- 5.594
- Level
- 48
- Downloads
- 0
- Uploads
- 0
I just realised that i cant just fcopy from ms0:/ to flash0:/
Soo how do i go about putting files from the ms0: to the f0.
Zitat von SuperBatXS
-
01-25-2009, 04:58 PM #9617I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
How would I go about building a makefile to compile an entire project spread over multiple modules? Sort of like:
Compile module 1.
Build exports for module 1.
Compile module 2.
Build exports for module 2.
Compile main app.
Move main app to folder "app".
Move modules 1 and 2 to "app/modules".
Leave a nice message for the hell of it
Would it also redo the exports every cycle (as there doesn't appear to be any checking on export building), in which case should I do something like:
-AuraCode:make release: #build entire project and build release folder make project: #build entire project make modules: #build only the modules make main: #build only the main make exports: #Re-create all exports
EDIT:
@BlackBurd:
Write your own copying function, its what I had to do for Project4, simply open the file on ms0:/ and create the file on flash0:/ then malloc about a mb, and stream the content from ms0:/ to flash0:/
-
01-25-2009, 08:42 PM #9618x(t)=x_0+v_0t+\frac{1}{2}
- Registriert seit
- Dec 2005
- Ort
- Close to the end
- Beiträge
- 208
- Points
- 6.726
- Level
- 53
- Downloads
- 0
- Uploads
- 0
Auraomega, something along the lines of this.
Code:all: src-folder/project.prx src-folderB/eboot.pbp mkdir -p release cp src-folder/project.prx release/project cp src-folder/eboot.pbp release/project prx: make -C src-folder -f makefile_prx eboot: make -C src-folder -f makefile_pbp clean: make -C src-folder clean echo "all done, Have fun."
-
01-26-2009, 07:28 AM #9619I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
tinmanx, my makefile knowledge is limited to single builds, but from what I can see that calls on other makefiles as well (correct me if I'm wrong)? I'm looking for a way to keep everything in a single makefile, if this is the only method available then I'll use this by all means, but it would be nice to only have to change 1 file if instead of 2 (,or 3, or more).
Thanks again.
-Aura
-
01-26-2009, 08:33 AM #9620QJ Gamer Silver
- Registriert seit
- Oct 2008
- Ort
- Switzerland
- Beiträge
- 142
- Points
- 8.930
- Level
- 63
- My Mood
-
- Downloads
- 0
- Uploads
- 0
I have a problem to hook sceKernelExitVSHVSH.
My code doesn't work.Code:int patchexit() { if(sceKernelFindModuleByName("Recovery mode")) { patch = sctrlHENFindFunction("sceLoadExec", "LoadExecForKernel", 0xa3d5e142); sctrlHENPatchSyscall(patch , exit); sceKernelDcacheWritebackAll(); sceKernelIcacheClearAll(); } }
I hope you can help me
TN
-
01-26-2009, 10:50 AM #9621QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
Yeah, Kernel->kernel doesn't use syscalls, they jump directly.
-
01-26-2009, 11:23 AM #9622QJ Gamer Silver
- Registriert seit
- Oct 2008
- Ort
- Switzerland
- Beiträge
- 142
- Points
- 8.930
- Level
- 63
- My Mood
-
- Downloads
- 0
- Uploads
- 0
How do I make it?
Thanks
TN
-
01-26-2009, 11:37 AM #9623Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
Press Alt + F4
-
01-26-2009, 11:39 AM #9624QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
-
01-30-2009, 02:17 PM #9625xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
-
01-30-2009, 03:22 PM #9626
I gone and made that one power spoofer and that gay cheat device.
-
01-30-2009, 07:17 PM #9627QJ Gamer Silver
- Registriert seit
- Sep 2006
- Ort
- Perth, Scotland
- Beiträge
- 1.094
- Points
- 8.475
- Level
- 62
- Downloads
- 0
- Uploads
- 0
Have a look. "LoadExecForKernel".
He is trying to patch a kernel->kernel syscall, which doesn't exist. Syscalls are used for usermode to call a function that resides in kernel memory. The information for these syscalls is stored in vector memory, where they are changed by sctrlHENPatchSyscall to redirect to another function. That's why when you call the same function in your kernel app, it works correctly; as it is not linked by syscall but by a direct jump.
You won't find patching in the SDK and if you do, it will be outdated.
-
01-31-2009, 01:32 AM #9628
Except that recovery is usermode, and that that function is only exported to kernel mode. Hence, it isn't even importing that function at all. It imports the bridged function contained in SystemControl, sctrlKernelExitVSHVSH. You should be able to syscall patch that one.
Geändert von Bubbletune (01-31-2009 um 04:08 AM Uhr)
-
01-31-2009, 01:52 AM #9629xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
really?, i learn something everday!
~!SlasheR!~
-
01-31-2009, 04:20 AM #9630
whats the function to hard reset??
Geändert von vodkkaa (01-31-2009 um 04:37 AM Uhr)


LinkBack URL
About LinkBacks
Mit Zitat antworten



Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum