i will that this hello world program run under the ps2.
The code is:
Code: Select all
#include "stdio.h";
void main()
{
printf("Hello World !!!\n");
printf("(C)2004 by ps2freak");
}
Code: Select all
#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;
}
Code: Select all
#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;
}
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.