Forum: PS2 Homebrew/Dev & Emu Scene - Topics relating to homebrew PS2 development and emulation. Stay current and up to date on the latest homebrew releases from the best devs on the scene.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: printf help
  

Results 1 to 5 of 5
  1. #1 Question printf help 
    jcarelek is offline Registered User
    Join Date
    Jul 2010
    Posts
    5
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I'm using the ps2sdk from ps2dev.org and I was wondering how I can redirect the output of printf to my TV. I am able to compile and run some of the sample programs such as 'cube'. However the hello program doesn't display anything and I think that's because the output is directed over the network by default. How can i change this so that it displays on my TV screen instead? Thanks for your help.
    Reply With Quote  

  2. #2  
    leonidas is offline Member
    Join Date
    Apr 2008
    Posts
    98
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    3
    Quote Originally Posted by jcarelek View Post
    I'm using the ps2sdk from ps2dev.org and I was wondering how I can redirect the output of printf to my TV. I am able to compile and run some of the sample programs such as 'cube'. However the hello program doesn't display anything and I think that's because the output is directed over the network by default. How can i change this so that it displays on my TV screen instead? Thanks for your help.
    Hi,
    I´m a newbie coder myself so I like to see other people trying to learn how to code for the ps2.
    the printf function is just for network I think.
    if you want the text to appear on the screen use the scr_printf function
    init_scr();
    scr_printf("Hello, world!\n");

    oh ya. i think you have to put this also

    #include <debug.h>

    and in the makefile add -ldebug to EE_Libs
    Reply With Quote  

  3. #3  
    jcarelek is offline Registered User
    Join Date
    Jul 2010
    Posts
    5
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Thanks, that worked! I only know how to do basic things in C. Do you know a good place where I can find documentation and tutorials on things specific to PS2? For example, I'd like to learn how to create and display graphics and animations.
    Reply With Quote  

  4. #4  
    SoulSlayer is offline Member
    Join Date
    Jun 2009
    Posts
    103
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Im not a programmer or anything, so I don't know how much help any of this will be but...

    http://ps2dev.org/ps2/Tutorials - a list of tutorials on the PS2DEV site

    In my opinion, one of the best ways to learn something is to see how other people have done it, so you could try looking at some of the homebrew programs source code and example source code.

    http://ps2dev.org/ps2/Code - PS2DEV's list of example code

    EDIT;
    I guess you could try reading some of the things found here; http://forums.ps2dev.org/viewtopic.php?t=11523

    Also, the PS2DEV forums MIGHT help you; http://forums.ps2dev.org/viewforum.p...fb7000731830f0
    Reply With Quote  

  5. #5  
    SP193's Avatar
    SP193 is offline The fallen spartan...
    Join Date
    May 2009
    Location
    シンガポール
    Posts
    1,992
    Downloads
    0
    Uploads
    0
    Mentioned
    14 Post(s)
    Tagged
    3 Thread(s)
    Likes Given
    33
    Likes Received
    232
    Thanks, that worked! I only know how to do basic things in C. Do you know a good place where I can find documentation and tutorials on things specific to PS2? For example, I'd like to learn how to create and display graphics and animations.
    There is a lack of proper documentation for the PS2SDK, but you can look at the other completed projects hosted at the PS2DEV SVN.

    Alternatively, you can ask some of the more experienced programmers here and @ PS2DEV, but please keep in mind that not all of them are always available.
    Unmodified SCPH-77006 with SM 3.6
    SCPH-39006 with M-chip modchip, SCPH-10281 NA and refurb Seagate 80GB HDD
    SCPH-10000 v1.00 with SCPH-10190 PCMCIA NA and SCPH-20400 HDD unit
    PS2ESDL v0.823B

    やっほー 汗がひかる♪
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •