Seite 321 von 340 ErsteErste ... 221 271 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 ... LetzteLetzte
Zeige Ergebnis 9.601 bis 9.630 von 10174

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!~...

  
  1. #9601
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    i know, any assembly tutorials tho, not reversing ones...

    anyways is that output from prxtool right?

    ~!SlasheR!~



  2. #9602
    QJ Gamer Green
    Points: 4.092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    508
    Points
    4.092
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slasher2661996 Beitrag anzeigen
    i know, any assembly tutorials tho, not reversing ones...

    anyways is that output from prxtool right?

    ~!SlasheR!~
    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.

  3. #9603
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von NoEffex Beitrag anzeigen
    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.
    whats the best mips desassembler?

    ~!SlasheR!~

  4. #9604
    QJ Gamer Green
    Points: 4.092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    508
    Points
    4.092
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slasher2661996 Beitrag anzeigen
    whats the best mips desassembler?

    ~!SlasheR!~
    I prefer ps2dis, but it uses some weird syntax on occasion. I don't know the best, as that's what I used for forever before I took up C.
    I gone and made that one power spoofer and that gay cheat device.

  5. #9605
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    googled, couldnt find a download link,

    could u post one plz

    ~!SlasheR!~

  6. #9606
    QJ Gamer Green
    Points: 4.092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    508
    Points
    4.092
    Level
    40
    Downloads
    0
    Uploads
    0
    I gone and made that one power spoofer and that gay cheat device.

  7. #9607
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    it says its only for ps1 & ps2
    can i still use it 4 psp ?

    ~!SlasheR!~

  8. #9608
    QJ Gamer Green
    Points: 4.092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    508
    Points
    4.092
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slasher2661996 Beitrag anzeigen
    it says its only for ps1 & ps2
    can i still use it 4 psp ?

    ~!SlasheR!~
    Yes, they pretty much have the same processor. I used it all the time successfully making game ram patches.
    I gone and made that one power spoofer and that gay cheat device.

  9. #9609
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    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!~

  10. #9610
    QJ Gamer Green
    Points: 4.092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    508
    Points
    4.092
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slasher2661996 Beitrag anzeigen
    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!~
    You read it and use asm knowledge to write a C/C++/D/Etc program out of it.
    I gone and made that one power spoofer and that gay cheat device.

  11. #9611
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    i want to patch it so it changes "Hello World" to "Hello something"

    can i do that?

    ~!SlasheR!~

  12. #9612
    QJ Gamer Green
    Points: 4.092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    508
    Points
    4.092
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von slasher2661996 Beitrag anzeigen
    i want to patch it so it changes "Hello World" to "Hello something"

    can i do that?

    ~!SlasheR!~
    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.

  13. #9613
    QJ Gamer Green
    Points: 8.459, Level: 62
    Level completed: 3%, Points required for next Level: 291
    Overall activity: 32,0%

    Registriert seit
    Apr 2007
    Beiträge
    886
    Points
    8.459
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    is it possible to allign text to the right
    Geändert von vodkkaa (01-25-2009 um 01:45 AM Uhr)

  14. #9614
    x(t)=x_0+v_0t+\frac{1}{2}
    Points: 6.726, Level: 53
    Level completed: 88%, Points required for next Level: 24
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Close to the end
    Beiträge
    208
    Points
    6.726
    Level
    53
    Downloads
    0
    Uploads
    0

    Standard

    %[-][+][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.

  15. #9615
    It's good to be free...
    Points: 10.420, Level: 67
    Level completed: 93%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Feb 2007
    Beiträge
    2.440
    Points
    10.420
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von vodkkaa Beitrag anzeigen
    is it possible to allign text to the right
    Yes, it definitely is.

    (We'll need a little more information to tell you how to do it)
    pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ

  16. #9616
    QJ Gamer Bronze
    Points: 5.594, Level: 48
    Level completed: 22%, Points required for next Level: 156
    Overall activity: 0%

    Registriert seit
    Aug 2008
    Ort
    thugz mansion
    Beiträge
    875
    Points
    5.594
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    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 Zitat von SuperBatXS
    I use my psp all the time in the plane. I was masturbating once while watching some lesbian videos when a fat lady beside me was sleeping and her really hot daughter next to her was getting ready for my dong to shove up her ding. Then, her daughter and I were about to go to the bathroom together but, the air hostess came to tell me i should stop right now. I swear this happened. I am never taking my psp to the plane again. Always got my iPod though...hehe. ;)

  17. #9617
    I'm back!
    Points: 8.236, Level: 61
    Level completed: 29%, Points required for next Level: 214
    Overall activity: 99,0%

    Registriert seit
    Feb 2007
    Ort
    England
    Beiträge
    902
    Points
    8.236
    Level
    61
    Downloads
    0
    Uploads
    0

    Standard

    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:

    Code:
    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
    -Aura

    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:/
    Last.fm | Deviant Art | First working OS picture

    Zitat Zitat von nickxab Beitrag anzeigen
    I will beat myself. :p

  18. #9618
    x(t)=x_0+v_0t+\frac{1}{2}
    Points: 6.726, Level: 53
    Level completed: 88%, Points required for next Level: 24
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Close to the end
    Beiträge
    208
    Points
    6.726
    Level
    53
    Downloads
    0
    Uploads
    0

    Standard

    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."

  19. #9619
    I'm back!
    Points: 8.236, Level: 61
    Level completed: 29%, Points required for next Level: 214
    Overall activity: 99,0%

    Registriert seit
    Feb 2007
    Ort
    England
    Beiträge
    902
    Points
    8.236
    Level
    61
    Downloads
    0
    Uploads
    0

    Standard

    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
    Last.fm | Deviant Art | First working OS picture

    Zitat Zitat von nickxab Beitrag anzeigen
    I will beat myself. :p

  20. #9620
    QJ Gamer Silver
    Points: 8.930, Level: 63
    Level completed: 60%, Points required for next Level: 120
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Switzerland
    Beiträge
    142
    Points
    8.930
    Level
    63
    My Mood
    Amused
    Downloads
    0
    Uploads
    0

    Standard

    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

  21. #9621
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Yeah, Kernel->kernel doesn't use syscalls, they jump directly.

  22. #9622
    QJ Gamer Silver
    Points: 8.930, Level: 63
    Level completed: 60%, Points required for next Level: 120
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Switzerland
    Beiträge
    142
    Points
    8.930
    Level
    63
    My Mood
    Amused
    Downloads
    0
    Uploads
    0

    Standard

    How do I make it?
    Thanks
    TN

  23. #9623
    Banned for LIFE
    Points: 18.744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    East London, England
    Beiträge
    2
    Points
    18.744
    Level
    86
    Downloads
    0
    Uploads
    0

    Standard

    Press Alt + F4

  24. #9624
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Total_Noob Beitrag anzeigen
    How do I make it?
    Thanks
    TN
    By hooking it. There is too many ways you can. You patch imports, exports, the function itself, etc.

  25. #9625
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Davee Beitrag anzeigen
    By hooking it. There is too many ways you can. You patch imports, exports, the function itself, etc.
    ive looked at the SDK docs, but cant find anything about patching things,

    any help?

    ~!SlasheR!~

  26. #9626
    QJ Gamer Green
    Points: 4.092, Level: 40
    Level completed: 72%, Points required for next Level: 58
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    508
    Points
    4.092
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Total_Noob Beitrag anzeigen
    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
    I don't think recovery mode is the name of the module.

    Also, on the 4.01 SDK, it looks like you have to add "&" before exit, ex.

    sctrlHENPatchSyscall(patc h, &exit);

    It's not in the SDK docs, and not on google(I looked), so I thought I'd be nice.
    I gone and made that one power spoofer and that gay cheat device.

  27. #9627
    QJ Gamer Silver
    Points: 8.475, Level: 62
    Level completed: 9%, Points required for next Level: 275
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    Perth, Scotland
    Beiträge
    1.094
    Points
    8.475
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von NoEffex Beitrag anzeigen
    I don't think recovery mode is the name of the module.

    Also, on the 4.01 SDK, it looks like you have to add "&" before exit, ex.

    sctrlHENPatchSyscall(patc h, &exit);

    It's not in the SDK docs, and not on google(I looked), so I thought I'd be nice.
    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.

  28. #9628
    QJ Gamer Gold
    Points: 13.727, Level: 76
    Level completed: 20%, Points required for next Level: 323
    Overall activity: 0%

    Registriert seit
    Apr 2007
    Beiträge
    1.493
    Points
    13.727
    Level
    76
    Downloads
    0
    Uploads
    0

    Standard

    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)

  29. #9629
    xMod.
    Points: 4.576, Level: 43
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%

    Registriert seit
    Oct 2008
    Ort
    Melbourne, Australia
    Beiträge
    675
    Points
    4.576
    Level
    43
    My Mood
    Daring
    Downloads
    0
    Uploads
    0

    Standard

    really?, i learn something everday!

    ~!SlasheR!~

  30. #9630
    QJ Gamer Green
    Points: 8.459, Level: 62
    Level completed: 3%, Points required for next Level: 291
    Overall activity: 32,0%

    Registriert seit
    Apr 2007
    Beiträge
    886
    Points
    8.459
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    whats the function to hard reset??
    Geändert von vodkkaa (01-31-2009 um 04:37 AM Uhr)


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:27 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .