Skip to content

Commit 709cae0

Browse files
author
Cameron Cooper
committed
initial commit
0 parents  commit 709cae0

File tree

239 files changed

+44681
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+44681
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*~
2+
EBOOT.PBP
3+
*.o
4+
outpatch
5+
out
6+
sound.map

Arkanoid.avi

5.8 MB
Binary file not shown.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Arkanoid
2+
3+
Here is my first release of Arkanoid for the PSP. To play Arkanoid, turn
4+
your PSP 90 degrees and use the up and down keys to move the paddle back
5+
and forth. To fire a ball use the left trigger. Before you can play, you
6+
must "insert" a coin by pressing the right trigger.
7+
8+
Hope you enjoy it.
9+
10+
Thanks to Nem, ps2dev, Fluff and Koopa.
11+

_clib.c

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// clib-mimic
2+
3+
4+
#include "_clib.h"
5+
6+
7+
8+
void _strcpy(char *d,const char *s)
9+
{
10+
for (; *s!=0; ++s, ++d) *d=*s;
11+
*d=0;
12+
}
13+
14+
void _strcat(char *d,const char *s)
15+
{
16+
for (; *d!=0; ++d) ;
17+
for (; *s!=0; ++s, ++d) *d=*s;
18+
*d=0;
19+
}
20+
21+
void _strncpy(char *d,const char *s,int n)
22+
{
23+
for (; *s!=0 && n>0; ++s, ++d, --n) *d=*s;
24+
*d=0;
25+
}
26+
27+
28+
char *_strchr(const char *_s, int c)
29+
{
30+
char *s=(char *)_s;
31+
for (; *s!=0; s++) {
32+
if (*s==(char)c) return s;
33+
}
34+
return NULL;
35+
}
36+
37+
unsigned int _strlen(const char *s)
38+
{
39+
unsigned int r=0;
40+
for (; *s!=0; ++s, ++r) ;
41+
return r;
42+
}
43+
44+
45+
void _memset(void *d, const long s, unsigned long n)
46+
{
47+
for (; n>0; n--) *(((char *)d)++)=s;
48+
}
49+
50+
int _memcmp(const void *s1, const void *s2, unsigned long n)
51+
{
52+
for (; n>0; n--) {
53+
if (*(((unsigned char *)s1))>*(((unsigned char *)s2))) return 1;
54+
if (*(((unsigned char *)s1)++)<*(((unsigned char *)s2)++)) return -1;
55+
}
56+
return 0;
57+
}
58+
59+
void _memcpy(void *d, const void *s, unsigned long n)
60+
{
61+
for (; n>0; n--) {
62+
(*(((unsigned char *)d)++)=*(((unsigned char *)s)++));
63+
}
64+
}
65+
66+

_clib.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// clib-mimic
2+
3+
#ifndef _CLIB_MIMIC_H_INCLUDED
4+
#define _CLIB_MIMIC_H_INCLUDED
5+
6+
#ifndef NULL
7+
#define NULL (0)
8+
#endif
9+
10+
11+
void _strcpy(char *d,const char *s);
12+
void _strcat(char *d,const char *s);
13+
void _strncpy(char *d,const char *s,int n);
14+
char *_strchr(const char *s, int c);
15+
unsigned int _strlen(const char *s);
16+
17+
void _memset(void *d, const long s, unsigned long n);
18+
int _memcmp(const void *s1, const void *s2, unsigned long n);
19+
void _memcpy(void *d, const void *s, unsigned long n);
20+
21+
22+
#endif //_CLIB_MIMIC_H_INCLUDED

0 commit comments

Comments
 (0)