forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

simple hello world, can someone help me ?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
ps2freak



Joined: 22 Jul 2004
Posts: 4

PostPosted: Thu Jul 22, 2004 4:33 am    Post subject: simple hello world, can someone help me ? Reply with quote

hello,

i will that this hello world program run under the ps2.
The code is:

Code:

#include "stdio.h";

void main()
{
     printf("Hello World !!!\n");
     printf("(C)2004 by ps2freak");
}


i have found an example in the ps2sdk directory:
Code:

#include <tamtypes.h>
#include <sifcmd.h>
#include <kernel.h>
#include <sifrpc.h>
#include "sio.h"

int main()
{   
   SifInitRpc(0);
/*
   init_scr();
   scr_printf("Hello, world!\n"); // hello world in the screen
*/
   printf("Hello, world!\n");
   nprintf("Hello, again, from Naplink RPC!\n");
   
   sio_init(115200, 0, 0, 0, 0);
   sio_printf("Hello from EE SIO!\n");

   /* Return to the bootloader or PS2 browser. */
   return 0;
}


this code i have edit into the following:
Code:

#include <tamtypes.h>
#include <sifcmd.h>
#include <kernel.h>

int main()
{   
   SifInitRpc(0);

   printf("Hello, world!\n");
   printf("(C)2004 by ps2freak");

   /* Return to the bootloader or PS2 browser. */
   return 0;
}

Ist this correct ?

my system is winxp and i have visual c++ 6.0 standard

the ps2sdk is under C:\ps2sdk

How can i compile this program for a ps2 system ?

thanks.
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Thu Jul 22, 2004 4:48 am    Post subject: Reply with quote

Okay. I have to tell you that you are a bit getting on my nerves.

Please, please, oh pretty please with sugar on top, go READ the other posts on the forum, go READ the various documentations around the website (which is http://ps2dev.org in case you missed something) before posting dumb posts.

First, big hint: the toolchain. This beast is mandatory to get a PS2 compiler. No, you can't compile PS2 code using Microsoft Visual Studio.
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
ps2freak



Joined: 22 Jul 2004
Posts: 4

PostPosted: Thu Jul 22, 2004 4:54 am    Post subject: Reply with quote

hmm very shit support here.

now i have files for visual studio 6 and they works finde. thanks and goodbye. :lol:
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Thu Jul 22, 2004 5:49 am    Post subject: Reply with quote

its not a kindergarten live with it, if you are told to read up, go read, or dont bother asking.
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Jul 22, 2004 6:01 am    Post subject: Reply with quote

(C)2004 by ooPo
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group