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)
- Host: GitHub
- URL: https://github.com/filfreire/hello-world-psp
- Owner: filfreire
- Created: 2021-01-03T16:02:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-31T18:20:17.000Z (almost 2 years ago)
- Last Synced: 2025-04-15T15:13:28.365Z (about 1 month ago)
- Topics: playstation-portable, psp-game, psp-sdk
- Language: C
- Homepage:
- Size: 108 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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:

## 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)