An open API service indexing awesome lists of open source software.

https://github.com/filfreire/hello-world-psp

A hello world like app for the Sony Playstation Portable handheld videogame system (PSP)
https://github.com/filfreire/hello-world-psp

playstation-portable psp-game psp-sdk

Last synced: about 1 month ago
JSON representation

A hello world like app for the Sony Playstation Portable handheld videogame system (PSP)

Awesome Lists containing this project

README

        

## hello-world-psp

A hello world like app for the Sony Playstation Portable handheld videogame system (PSP).

## Prerequisites

Setup `pspdev` toolchain, [see docs](https://psp-dev.org/doku.php?id=tutorial:toolchain_setup).

You can use [Docker image](https://github.com/filfreire/pspdev-docker) of [pspdev](https://github.com/pspdev/pspdev). There's helper script that uses aliases this container in this repo:

```shell
sudo cp pspdev-docker /usr/local/bin
```

## How to build
- Clone this repo and `cd` into the repo folder.
- If you used the `docker` alternative, run:

```shell
psp-docker make
```

You should see an output similar to:

```shell
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -D_PSP_FW_VERSION=500 -c -o main.o main.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -D_PSP_FW_VERSION=500 -L. -L/usr/local/pspdev/psp/sdk/lib -specs=/usr/local/pspdev/psp/sdk/lib/prxspecs -Wl,-q,-T/usr/local/pspdev/psp/sdk/lib/linkfile.prx main.o /usr/local/pspdev/psp/sdk/lib/prxexports.o -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o Tutorial.elf
psp-fixup-imports Tutorial.elf
psp-prxgen Tutorial.elf Tutorial.prx
pack-pbp EBOOT.PBP PARAM.SFO NULL \
NULL NULL NULL \
NULL Tutorial.prx NULL
[0] 316 bytes | PARAM.SFO
[1] 0 bytes | NULL
[2] 0 bytes | NULL
[3] 0 bytes | NULL
[4] 0 bytes | NULL
[5] 0 bytes | NULL
[6] 86842 bytes | Tutorial.prx
[7] 0 bytes | NULL
```

## How to run

- You can either run it on an emulator like [`PPSSPP`](http://ppsspp.org/downloads.html)
- If your PSP is modded to run homebrew software (e.g. runs on Custom Firmware), you can copy paste the `EBOOT.PBP` file to your PSP memory card, following a path like: `PSP/GAME//EBOOT.PBP`

End result should look similar to this:

![psp_example](./psp_example.jpg)

## Resources

- [hello world on psp-dev.org](https://psp-dev.org/doku.php?id=tutorial:hello_world)
- [psp dev forums c programming tutorials](http://forums.qj.net/psp-development-forum/158366-tut-beginner-c-programming-tutorials.html)
- [pspdev github page](https://github.com/pspdev)