ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
helloworld.c
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
11
#include <stdio.h>
12
#include <
tamtypes.h
>
13
#include <
sifrpc.h
>
14
#include <
debug.h
>
15
#include <unistd.h>
16
17
int
main
(
int
argc,
char
*argv[])
18
{
19
SifInitRpc
(0);
20
init_scr
();
21
22
scr_printf
(
"Hello, World!\n"
);
23
24
// After 5 seconds, clear the screen.
25
sleep
(5);
26
scr_clear
();
27
28
// Move cursor to 20, 20
29
scr_setXY
(20, 20);
30
scr_printf
(
"Hello Again, World!\n"
);
31
32
sleep
(10);
33
34
return
0;
35
}
debug.h
init_scr
void init_scr(void)
Definition:
scr_printf.c:185
scr_setXY
void scr_setXY(int x, int y)
Definition:
scr_printf.c:297
scr_printf
void scr_printf(const char *,...)
Definition:
scr_printf.c:252
scr_clear
void scr_clear(void)
Definition:
scr_printf.c:313
main
int main(int argc, char *argv[])
Definition:
helloworld.c:17
sifrpc.h
SifInitRpc
void SifInitRpc(int mode)
sleep
unsigned int sleep(unsigned int seconds)
Definition:
sleep.c:98
tamtypes.h
ee
debug
samples
helloworld
helloworld.c
Generated on Thu Feb 11 2021 11:42:21 for ps2sdk by
1.9.2